ports/92421: [PATCH] comms/gammu: fix works on 4.x systems
Andrey Slusar
anray at FreeBSD.org
Fri Jan 27 13:40:06 UTC 2006
>Number: 92421
>Category: ports
>Synopsis: [PATCH] comms/gammu: fix works on 4.x systems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 27 13:40:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Andrey Slusar
>Release: FreeBSD 6.0-STABLE i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Jan 12 02:56:04 EET 2006 anray at santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
Note: maintainer(kirill at solaris.ru) CC'ed.
On FreeBSD < 5.0 change format %zd -> %d and %zi -> %i.
>How-To-Repeat:
>Fix:
--- gammu.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/comms/gammu/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 19 Jan 2006 17:03:21 -0000 1.16
+++ Makefile 23 Jan 2006 01:21:45 -0000
@@ -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 @@
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>
--- gammu.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list