Date: Fri, 27 Jan 2006 15:33:19 +0200 From: Andrey Slusar <anray@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: kirill@solaris.ru Subject: ports/92421: [PATCH] comms/gammu: fix works on 4.x systems Message-ID: <E1F2Tj5-000Gwl-Qn@santinel.home.ua> Resent-Message-ID: <200601271340.k0RDe5Qk015882@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386 >Description: Note: maintainer(kirill@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1F2Tj5-000Gwl-Qn>