Conditionalize gnugetopt dependencies.
PR: ports/47333 Submitted by: Ports Fury
This commit is contained in:
parent
ab64f335b2
commit
3708567e96
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74484
@ -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 ; \
|
||||
|
Loading…
Reference in New Issue
Block a user