diff options
author | nork <nork@FreeBSD.org> | 2003-02-02 21:35:12 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-02-02 21:35:12 +0800 |
commit | 9bcb7f060ecdc7f3243212aaa2a605eeb72d484b (patch) | |
tree | 99b05159df76918d10357e10ecd4e2e40448aa15 /graphics | |
parent | 77d317aee6b725d479f18401eae64b3c45e981a1 (diff) | |
download | freebsd-ports-graphics-9bcb7f060ecdc7f3243212aaa2a605eeb72d484b.tar.gz freebsd-ports-graphics-9bcb7f060ecdc7f3243212aaa2a605eeb72d484b.tar.zst freebsd-ports-graphics-9bcb7f060ecdc7f3243212aaa2a605eeb72d484b.zip |
Conditionalize gnugetopt dependencies.
PR: ports/47333
Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gliv/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/graphics/gliv/Makefile b/graphics/gliv/Makefile index eb608648f41..f9d96182932 100644 --- a/graphics/gliv/Makefile +++ b/graphics/gliv/Makefile @@ -12,8 +12,7 @@ MASTER_SITES= http://gliv.tuxfamily.org/ MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \ - gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2 +LIB_DEPENDS= gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2 RUN_DEPENDS= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick USE_BZIP2= yes @@ -25,9 +24,13 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" MAN1= gliv.1 -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 -lgnugetopt \ - ${PTHREAD_LIBS} +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} +LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 ${PTHREAD_LIBS} + +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +LDFLAGS+= -lgnugetopt +.endif post-patch: @${REINPLACE_CMD} -e 's|LDFLAGS="[\$$]CFLAGS|LDFLAGS="\$$LDFLAGS|g ; \ |