From a0e2cc32738a82ac50aa0fce2f64691456425d55 Mon Sep 17 00:00:00 2001 From: Andrey Slusar Date: Tue, 14 Feb 2006 11:22:34 +0000 Subject: Fix works on 4.x systems. PR: ports/92421 Approved by: maintainer timeout(18 days) --- comms/gammu-devel/Makefile | 11 ++++++++++- comms/gammu/Makefile | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 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 + 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 +.include diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile index ddbb4810dd9e..9a92e897621b 100644 --- a/comms/gammu/Makefile +++ b/comms/gammu/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 + 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 +.include -- cgit v1.2.3