diff options
Diffstat (limited to 'graphics/Mesa3/Makefile')
-rw-r--r-- | graphics/Mesa3/Makefile | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/graphics/Mesa3/Makefile b/graphics/Mesa3/Makefile index f69e81c2c6d6..6a3ab8afd701 100644 --- a/graphics/Mesa3/Makefile +++ b/graphics/Mesa3/Makefile @@ -6,7 +6,7 @@ # PORTNAME= Mesa -PORTVERSION= 3.2 +PORTVERSION= 3.2.1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ ftp://iris.ssec.wisc.edu/pub/Mesa/ \ @@ -24,7 +24,6 @@ LIB_DEPENDS= ggi.2:${PORTSDIR}/graphics/libggi CONFIGURE_ARGS+=--with-ggi=${LOCALBASE} .endif -GLVER= 14 GLUTVER= 3 USE_X_PREFIX= yes USE_LIBTOOL= yes @@ -32,9 +31,36 @@ USE_GMAKE= yes CONFIGURE_ENV+= GLVER="${GLVER}" GLUTVER="${GLUTVER}" PLIST_SUB= GLVER="${GLVER}" GLUTVER="${GLUTVER}" +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 3 +SUB_GL= src +INCLUDE_GL= include +GLVER= 14 +PLIST_SUB+= XFREE3:="" +.else +SUB_GL= +INCLUDE_GL= +GLVER= 1 +PLIST_SUB+= XFREE3:="@comment " +MAKE_ENV= INCLUDES="-I${X11BASE}/include -I${WRKSRC}/include -DGLCALLBACKPCAST=\*" +MAKE_ARGS= -e +.endif + +MAKE_ENV+= SUB_GL=${SUB_GL} \ + INCLUDE_GL=${INCLUDE_GL} + +pre-patch: + @${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure + post-install: .for lib in GL GLU @${LN} -sf ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/libMesa${lib}.so .endfor +.if ${XFREE86_VERSION} > 3 + @${MKDIR} ${PREFIX}/include/GL + @cd ${WRKSRC}/include/GL && \ + ${INSTALL_DATA} glu.h glut.h ${PREFIX}/include/GL +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |