mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Conditionalize libgnugetopt dependencies.
PR: ports/47761 Submitted by: Ports Fury
This commit is contained in:
parent
870046c5d2
commit
086f0b15da
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74513
@ -14,11 +14,16 @@ EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
|
||||
USE_IMAKE= yes
|
||||
USE_XPM= yes
|
||||
USE_REINPLACE= yes
|
||||
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
|
||||
.if !exists(/usr/include/getopt.h)
|
||||
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.for file in system.wmmount.eg system.wmmount.sh
|
||||
|
@ -5,9 +5,9 @@
|
||||
XPMLIB = -lXpm
|
||||
|
||||
-LOCAL_LIBRARIES = $(XPMLIB) $(XLIB)
|
||||
+LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) -lgnugetopt -L${LOCALBASE}/lib
|
||||
+LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) $(LDFLAGS)
|
||||
+
|
||||
+EXTRA_INCLUDES = -I${LOCALBASE}/include
|
||||
+EXTRA_INCLUDES = $(CPPFLAGS)
|
||||
|
||||
SRCS = dockapp.c wmmount.c
|
||||
OBJS = dockapp.o wmmount.o
|
||||
|
Loading…
Reference in New Issue
Block a user