2002-04-23 20:14:31 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: gsmlib
|
|
|
|
# Date created: Apr 24, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gsmlib
|
2003-01-03 20:13:14 +00:00
|
|
|
PORTVERSION= 1.10
|
2004-02-04 04:36:30 +00:00
|
|
|
PORTREVISION= 2
|
2002-04-23 20:14:31 +00:00
|
|
|
CATEGORIES= comms
|
|
|
|
MASTER_SITES= http://www.pxh.de/fs/gsmlib/download/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= A library to access GSM mobile phones through GSM modems
|
2002-04-23 20:14:31 +00:00
|
|
|
|
2004-08-18 18:15:53 +00:00
|
|
|
USE_GNOME= gnometarget lthack
|
2003-04-26 22:32:46 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2003-01-03 20:13:14 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-04-23 20:14:31 +00:00
|
|
|
USE_GMAKE= yes
|
2005-05-31 16:41:49 +00:00
|
|
|
USE_LIBTOOL_VER=15
|
2003-01-03 20:13:14 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2002-04-23 20:14:31 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
MAN1= gsmctl.1 gsmpb.1 gsmsendsms.1 gsmsmsstore.1
|
|
|
|
MAN7= gsminfo.7
|
|
|
|
MAN8= gsmsmsd.8
|
|
|
|
|
2003-01-03 20:13:14 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \
|
2004-04-10 17:26:55 +00:00
|
|
|
${PTHREAD_CFLAGS}
|
2003-01-03 20:13:14 +00:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
2004-08-18 18:15:53 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2004-07-11 11:07:01 +00:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2004-08-16 02:33:05 +00:00
|
|
|
.endif
|
|
|
|
|
2003-01-03 20:13:14 +00:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|<malloc\.h>|<stdlib.h>|g'
|
|
|
|
|
2004-08-18 18:15:53 +00:00
|
|
|
.include <bsd.port.mk>
|