summaryrefslogtreecommitdiffstats
path: root/net/opal3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/opal3/Makefile')
-rw-r--r--net/opal3/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/opal3/Makefile b/net/opal3/Makefile
index e554e12..d63256e 100644
--- a/net/opal3/Makefile
+++ b/net/opal3/Makefile
@@ -20,13 +20,21 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_NEWGCC= yes
USE_BISON= yes
+
+# If the user compiles with make -DNO_XWINDOWS do not include X support
+.if !defined(NO_XWINDOWS)
USE_XLIB= yes
+.endif
+
USE_GMAKE= yes
ALL_TARGET= opt
MAKE_ENV= PWLIBDIR=${WRKDIR}/pwlib \
OPENH323DIR=${WRKDIR}/openh323
THE_MACHTYPE= ${ARCH:S/i386/x86/}
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${THE_MACHTYPE} OSRELEASE=${OSVERSION} CPLUS=${CXX}
+.if defined(NO_XWINDOWS)
+MAKE_ARGS+= NO_XWINDOWS=1
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/samples/simple/obj_${OPSYS}_${THE_MACHTYPE}_r/simph323 ${PREFIX}/bin
OpenPOWER on IntegriCloud