diff options
author | nork <nork@FreeBSD.org> | 2003-02-02 14:07:26 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-02-02 14:07:26 +0000 |
commit | aad2d599cda2fec6125b618a1e3bb6ec733962e0 (patch) | |
tree | 21d4be91fc89ad64154c1e8e9a97bb55cc549614 /graphics/gts | |
parent | 12a61ce36cc8fa377513d131c991827e637b8456 (diff) | |
download | FreeBSD-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/Makefile | 13 |
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} |