diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 14:40:33 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 14:40:33 +0000 |
commit | 6971c64172ca96c93e6feb46bb79230598f33c3f (patch) | |
tree | 5e49342f94d34ec73ae1062bd9c8abb00391f3f2 /misc/wmwork | |
parent | bcfcc8239df60a7d9299bcf0c2a51fa7493c40bf (diff) | |
download | ports-6971c64172ca96c93e6feb46bb79230598f33c3f.tar.gz ports-6971c64172ca96c93e6feb46bb79230598f33c3f.zip |
Conditionalize libgnugetopt dependencies.
PR: ports/47751
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=74503
Diffstat (limited to 'misc/wmwork')
-rw-r--r-- | misc/wmwork/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/misc/wmwork/Makefile b/misc/wmwork/Makefile index c0475cc9edfc..6be4d10d9fd5 100644 --- a/misc/wmwork/Makefile +++ b/misc/wmwork/Makefile @@ -13,8 +13,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}.orig MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt - WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src USE_X_PREFIX= yes @@ -22,9 +20,17 @@ USE_XPM= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lgnugetopt" +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" MAN1= wmwork.1 +CPPFLAGS+= -I${X11BASE}/include +LDFLAGS+= -L${X11BASE}/lib + +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lgnugetopt +.endif + .include <bsd.port.mk> |