aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gsmlib
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-04-27 06:32:46 +0800
committernork <nork@FreeBSD.org>2003-04-27 06:32:46 +0800
commita07773bfcb822860ba0b3a6ce0f54e5bfe854f0e (patch)
tree96b0746b9f57dcb7f2134fb75d05e260eb96d826 /comms/gsmlib
parent004ed0f9a63d7b22c9b99fc26fdd1283c7a815ac (diff)
downloadfreebsd-ports-gnome-a07773bfcb822860ba0b3a6ce0f54e5bfe854f0e.tar.gz
freebsd-ports-gnome-a07773bfcb822860ba0b3a6ce0f54e5bfe854f0e.tar.zst
freebsd-ports-gnome-a07773bfcb822860ba0b3a6ce0f54e5bfe854f0e.zip
Utilize USE_GETOPT_LONG.
PR: ports/51360 Submitted by: Ports Fury
Diffstat (limited to 'comms/gsmlib')
-rw-r--r--comms/gsmlib/Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/comms/gsmlib/Makefile b/comms/gsmlib/Makefile
index 8db3d6001879..0960e5c07f35 100644
--- a/comms/gsmlib/Makefile
+++ b/comms/gsmlib/Makefile
@@ -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'