summaryrefslogtreecommitdiffstats
path: root/graphics/gts
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-02-02 14:07:26 +0000
committernork <nork@FreeBSD.org>2003-02-02 14:07:26 +0000
commitaad2d599cda2fec6125b618a1e3bb6ec733962e0 (patch)
tree21d4be91fc89ad64154c1e8e9a97bb55cc549614 /graphics/gts
parent12a61ce36cc8fa377513d131c991827e637b8456 (diff)
downloadFreeBSD-ports-aad2d599cda2fec6125b618a1e3bb6ec733962e0.zip
FreeBSD-ports-aad2d599cda2fec6125b618a1e3bb6ec733962e0.tar.gz
Conditionalize libgnugetopt dependencies.
PR: ports/47741 Submitted by: Ports Fury
Diffstat (limited to 'graphics/gts')
-rw-r--r--graphics/gts/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/graphics/gts/Makefile b/graphics/gts/Makefile
index cdaea52..ec98746 100644
--- a/graphics/gts/Makefile
+++ b/graphics/gts/Makefile
@@ -14,17 +14,22 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-
USE_GNOMENG= yes
USE_GNOME= glib12
USE_LIBTOOL= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
OpenPOWER on IntegriCloud