ports/92421: [PATCH] comms/gammu: fix works on 4.x systems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ports/92421: [PATCH] comms/gammu: fix works on 4.x systems

Andrey Slusar-2

>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 [hidden email]:/usr/obj/usr/src/sys/ANRAY i386
       
>Description:
        Note: maintainer([hidden email]) 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:
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ports/92421: [PATCH] comms/gammu: fix works on 4.x systems

Edwin Groothuis-2
Synopsis: [PATCH] comms/gammu: fix works on 4.x systems

State-Changed-From-To: open->feedback
State-Changed-By: edwin
State-Changed-When: Fri Jan 27 13:44:21 UTC 2006
State-Changed-Why:
Awaiting maintainers feedback

http://www.freebsd.org/cgi/query-pr.cgi?pr=92421
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ports/92421: [PATCH] comms/gammu: fix works on 4.x systems

Andrey Slusar-2
In reply to this post by Andrey Slusar-2
Synopsis: [PATCH] comms/gammu: fix works on 4.x systems

Responsible-Changed-From-To: freebsd-ports-bugs->anray
Responsible-Changed-By: anray
Responsible-Changed-When: Fri Jan 27 21:43:19 UTC 2006
Responsible-Changed-Why:
I'll take it.

http://www.freebsd.org/cgi/query-pr.cgi?pr=92421
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"