aboutsummaryrefslogtreecommitdiff
path: root/comms/gsmlib/Makefile
blob: 8db3d60018790cd6b030840f53e7ba9aae10fa0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ex:ts=8
# Ports collection makefile for:	gsmlib
# Date created:			Apr 24, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	gsmlib
PORTVERSION=	1.10
CATEGORIES=	comms
MASTER_SITES=	http://www.pxh.de/fs/gsmlib/download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A library to access GSM mobile phones through GSM modems

LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext

USE_REINPLACE=	yes
USE_GMAKE=	yes
USE_LIBTOOL=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB=	yes

MAN1=	gsmctl.1 gsmpb.1 gsmsendsms.1 gsmsmsstore.1
MAN7=	gsminfo.7
MAN8=	gsmsmsd.8

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'

.include <bsd.port.mk>