mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
40 lines
888 B
Makefile
40 lines
888 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gsmlib
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 5
|
|
CATEGORIES= comms
|
|
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
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Library to access GSM mobile phones through GSM modems
|
|
|
|
USE_GNOME= lthack
|
|
USES= gmake
|
|
USE_AUTOTOOLS= libtool
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \
|
|
${PTHREAD_CFLAGS}
|
|
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|<malloc\.h>|<stdlib.h>|g'
|
|
|
|
.include <bsd.port.mk>
|