summaryrefslogtreecommitdiff
path: root/misc/wmwork
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:40:33 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:40:33 +0000
commit6971c64172ca96c93e6feb46bb79230598f33c3f (patch)
tree5e49342f94d34ec73ae1062bd9c8abb00391f3f2 /misc/wmwork
parentConditionalize libgnugetopt dependencies. (diff)
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/Makefile14
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>