aboutsummaryrefslogtreecommitdiffstats
path: root/x11-servers/driglide/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers/driglide/Makefile')
-rw-r--r--x11-servers/driglide/Makefile28
1 files changed, 18 insertions, 10 deletions
diff --git a/x11-servers/driglide/Makefile b/x11-servers/driglide/Makefile
index a56537c835a9..c01d8dc398fa 100644
--- a/x11-servers/driglide/Makefile
+++ b/x11-servers/driglide/Makefile
@@ -15,26 +15,34 @@ MASTER_SITE_SUBDIR= anholt/driglide/
MAINTAINER= ports@FreeBSD.org
COMMENT= Libraries to support 3dfx Voodoo3/4/5/Banshee with the DRI
-USE_BZIP2= yes
-USE_X_PREFIX= yes
+USE_BZIP2= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= automake:14 autoconf:253 libtool:15
-AUTOMAKE_ARGS= -a
-USE_GMAKE= yes
-MAKE_ARGS= PREPROCESSOR=/usr/bin/cpp
+AUTOMAKE_ARGS= -a
+USE_GMAKE= yes
+MAKE_ARGS= PREPROCESSOR=/usr/bin/cpp
# Not yet ported to Alpha.
-ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS= i386
# Glide DOES NOT work with CFLAGS greater than -O2
CFLAGS+= -O
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure.in
- @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/h3/glide3/src/Makefile.am
- @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/h5/glide3/src/Makefile.am
+ @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' \
+ ${WRKSRC}/configure.in \
+ ${WRKSRC}/h3/glide3/src/Makefile.am \
+ ${WRKSRC}/h5/glide3/src/Makefile.am
+ @${REINPLACE_CMD} -e \
+ 's|(float \*)pointers +=|pointers += sizeof(float *) *|' \
+ ${WRKSRC}/h3/glide3/src/gaa.c \
+ ${WRKSRC}/h3/glide3/src/gdraw.c \
+ ${WRKSRC}/h3/glide3/src/distrip.c \
+ ${WRKSRC}/h5/glide3/src/gaa.c \
+ ${WRKSRC}/h5/glide3/src/gdraw.c \
+ ${WRKSRC}/h5/glide3/src/distrip.c
pre-configure:
- @cd $(WRKSRC) && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal
+ @cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal
@${REINPLACE_CMD} -e '/^_LT_AC_SHELL_INIT/d' ${WRKSRC}/aclocal.m4
.include <bsd.port.mk>