1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix build on systems without /usr/include/getopt.h (4.x).

Submitted by:	kris
This commit is contained in:
Maxim Sobolev 2003-01-26 18:06:46 +00:00
parent af9b77d5a3
commit 8f66818e0f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74038

View File

@ -31,6 +31,11 @@ MAKE_ENV= PTHREAD_LDFLAGS="${PTHREAD_LDFLAGS}" \
PTHREAD_LDFLAGS+= -llstdc++ -llsupc++
.endif
.if !exists(/usr/include/getopt.h)
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
PTHREAD_LDFLAGS+= -lgnugetopt
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sip/b2b/bin.nodebug.FreeBSD.i386/b2bua \
${PREFIX}/bin