2013-04-30 00:27:05 +02:00
|
|
|
# Created by: ijliao
|
2002-04-23 22:14:31 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gsmlib
|
2003-01-03 21:13:14 +01:00
|
|
|
PORTVERSION= 1.10
|
2010-05-31 04:01:56 +02:00
|
|
|
PORTREVISION= 5
|
2002-04-23 22:14:31 +02:00
|
|
|
CATEGORIES= comms
|
2011-07-01 11:20:08 +02:00
|
|
|
MASTER_SITES= DEBIAN
|
|
|
|
#TODO: examine the Debian patches, and changes in the Mandrake
|
|
|
|
#gsmlib-1.11-0.2mdv2007.0.src.rpm, for use in this port
|
|
|
|
DISTFILES= gsmlib_1.10.orig.tar.gz
|
2002-04-23 22:14:31 +02:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-10-30 06:09:22 +01:00
|
|
|
COMMENT= Library to access GSM mobile phones through GSM modems
|
2002-04-23 22:14:31 +02:00
|
|
|
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= lthack
|
2013-10-30 06:09:22 +01:00
|
|
|
USES= gmake
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-08-15 00:55:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-04-23 22:14:31 +02:00
|
|
|
|
2011-07-01 11:20:08 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \
|
|
|
|
${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
|
2003-01-03 21:13:14 +01:00
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
2004-08-18 20:15:53 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2004-08-16 04:33:05 +02:00
|
|
|
.endif
|
|
|
|
|
2003-01-03 21:13:14 +01:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|<malloc\.h>|<stdlib.h>|g'
|
|
|
|
|
2004-08-18 20:15:53 +02:00
|
|
|
.include <bsd.port.mk>
|