aboutsummaryrefslogtreecommitdiff
path: root/comms/gammu-devel
diff options
context:
space:
mode:
authorAndrey Slusar <anray@FreeBSD.org>2006-02-14 11:22:34 +0000
committerAndrey Slusar <anray@FreeBSD.org>2006-02-14 11:22:34 +0000
commita0e2cc32738a82ac50aa0fce2f64691456425d55 (patch)
treee65ed38a5fe438e6da4b8512dadcbe9c7df55a62 /comms/gammu-devel
parent1f7b85d1413993b18c7b9bf2faed898084a92784 (diff)
downloadports-a0e2cc32738a82ac50aa0fce2f64691456425d55.tar.gz
ports-a0e2cc32738a82ac50aa0fce2f64691456425d55.zip
Notes
Diffstat (limited to 'comms/gammu-devel')
-rw-r--r--comms/gammu-devel/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/comms/gammu-devel/Makefile b/comms/gammu-devel/Makefile
index ddbb4810dd9e..9a92e897621b 100644
--- a/comms/gammu-devel/Makefile
+++ b/comms/gammu-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gammu
PORTVERSION= 1.04.0
+PORTREVISION= 1
CATEGORIES= comms
MASTER_SITES= http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/
@@ -26,10 +27,18 @@ PORTDOCS= *
CONFIGURE_ARGS= --disable-bluerfsearch
CONFIGURE_ENV= CFLAGS="${CFLAGS} -fPIC"
+.include <bsd.port.pre.mk>
+
post-patch:
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's|%zd|%d|g' -e 's|%zi|%i|g' \
+ ${WRKSRC}/common/phone/at/atgen.c \
+ ${WRKSRC}/common/phone/obex/obexgen.c \
+ ${WRKSRC}/gammu/depend/nokia/dct3trac/wmx-gsm.c
+.endif
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's@ installdocs@@g' \
${WRKSRC}/cfg/Makefile.glo
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>