summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Mesa3/Makefile4
-rw-r--r--graphics/mesagl/Makefile4
-rw-r--r--graphics/xpm/Makefile4
3 files changed, 12 insertions, 0 deletions
diff --git a/graphics/Mesa3/Makefile b/graphics/Mesa3/Makefile
index a8200a941dbe..1e392a66c048 100644
--- a/graphics/Mesa3/Makefile
+++ b/graphics/Mesa3/Makefile
@@ -53,6 +53,10 @@ MAKE_ARGS= -e
MAKE_ENV+= SUB_GL="${SUB_GL}" \
INCLUDE_GL=${INCLUDE_GL}
+.ifdef USE_MESA
+.error You have `USE_MESA' variable defined either in environment or in make(1) arguments. Please undefine and try again.
+.endif
+
pre-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
diff --git a/graphics/mesagl/Makefile b/graphics/mesagl/Makefile
index a8200a941dbe..1e392a66c048 100644
--- a/graphics/mesagl/Makefile
+++ b/graphics/mesagl/Makefile
@@ -53,6 +53,10 @@ MAKE_ARGS= -e
MAKE_ENV+= SUB_GL="${SUB_GL}" \
INCLUDE_GL=${INCLUDE_GL}
+.ifdef USE_MESA
+.error You have `USE_MESA' variable defined either in environment or in make(1) arguments. Please undefine and try again.
+.endif
+
pre-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
diff --git a/graphics/xpm/Makefile b/graphics/xpm/Makefile
index 75e75820c880..664258448671 100644
--- a/graphics/xpm/Makefile
+++ b/graphics/xpm/Makefile
@@ -18,6 +18,10 @@ INSTALLS_SHLIB= yes
MAN1= cxpm.1 sxpm.1
+.ifdef USE_XPM
+.error You have `USE_XPM' variable defined either in environment or in make(1) arguments. Please undefine and try again.
+.endif
+
post-install:
@ranlib ${PREFIX}/lib/libXpm.a