summaryrefslogtreecommitdiffstats
path: root/net/openh323/Makefile
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2001-03-15 11:25:10 +0000
committerroger <roger@FreeBSD.org>2001-03-15 11:25:10 +0000
commitf04c180c32a0a95459abd24712740c038902cbdd (patch)
treeabd747113dd5ecc5cab1e85b209b86ad42beaa9d /net/openh323/Makefile
parentf0759490a095cfb2acc3199e2915fdba5e13ace4 (diff)
downloadFreeBSD-ports-f04c180c32a0a95459abd24712740c038902cbdd.zip
FreeBSD-ports-f04c180c32a0a95459abd24712740c038902cbdd.tar.gz
Add compiler option -DNO_XWINDOWS to build the port without
X support. Requested by several people
Diffstat (limited to 'net/openh323/Makefile')
-rw-r--r--net/openh323/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/openh323/Makefile b/net/openh323/Makefile
index e554e12..d63256e 100644
--- a/net/openh323/Makefile
+++ b/net/openh323/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