mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Utilize USE_GETOPT_LONG.
PR: ports/51360 Submitted by: Ports Fury
This commit is contained in:
parent
ced4d92504
commit
e921a63f74
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79704
@ -16,6 +16,7 @@ COMMENT= A library to access GSM mobile phones through GSM modems
|
||||
|
||||
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
||||
|
||||
USE_GETOPT_LONG= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_LIBTOOL= yes
|
||||
@ -31,11 +32,6 @@ CPPFLAGS= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \
|
||||
${PTHREAD_CFLAGS}
|
||||
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
||||
|
||||
.if !exists(/usr/include/getopt.h)
|
||||
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
LDFLAGS+= -lgnugetopt
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|<malloc\.h>|<stdlib.h>|g'
|
||||
|
Loading…
Reference in New Issue
Block a user