aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gbm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gbm/Makefile')
-rw-r--r--graphics/gbm/Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/graphics/gbm/Makefile b/graphics/gbm/Makefile
index c2c08e15fa97..66e4f31ea171 100644
--- a/graphics/gbm/Makefile
+++ b/graphics/gbm/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gbm
PORTVERSION= ${MESAVERSION}
-PORTREVISION= ${GBM_REVISION}
+PORTREVISION= 0
CATEGORIES= graphics
COMMENT= gbm library
@@ -19,23 +19,12 @@ USE_XORG= x11 xau xcb xdmcp
USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \
xshmfence
-BUILD_WRKSRC= ${WRKSRC}/src/gbm
-INSTALL_WRKSRC= ${WRKSRC}/src/gbm
-
.include <bsd.port.options.mk>
-.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
-
-.if defined(WITH_NEW_MESA)
-GBM_REVISION= 0
-.else
-GBM_REVISION= 0
-.endif
-
-pre-build:
-.if defined(WITH_NEW_MESA)
- @cd ${WRKSRC}/src/mapi/ && ${MAKE_CMD} ${_MAKE_JOBS}
-.else
- @cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS}
-.endif
+.include "${.CURDIR}/../../graphics/libGL/Makefile.common"
+
+MESA_BUILD_WRKSRC= src/mapi src/gbm
+MESA_INSTALL_WRKSRC= src/gbm
+
+.include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
.include <bsd.port.mk>