aboutsummaryrefslogtreecommitdiff
path: root/graphics/gts
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:07:26 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:07:26 +0000
commita0e2b016d3fc780210c8a09234e9fefd80bf2c4c (patch)
tree3d9712f22fb47815f055f1b3f64dec7a50c8db12 /graphics/gts
parent6f3a6e4534aa8979f5e3255876b084c3c522c543 (diff)
downloadports-a0e2b016d3fc780210c8a09234e9fefd80bf2c4c.tar.gz
ports-a0e2b016d3fc780210c8a09234e9fefd80bf2c4c.zip
Conditionalize libgnugetopt dependencies.
PR: ports/47741 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74493
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 cdaea52193e3..ec987463a319 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}