[142631] trunk/dports/comms/gnokii
devans at macports.org
devans at macports.org
Sat Dec 12 06:34:30 PST 2015
Revision: 142631
https://trac.macports.org/changeset/142631
Author: devans at macports.org
Date: 2015-11-17 14:31:56 -0800 (Tue, 17 Nov 2015)
Log Message:
-----------
gnokii: reconfigure using upstream autogen.sh for intltool 0.51 compatibility, update dependencies, obfuscate maintainer email, add license, +bluetooth support only available on OS X 10.6 and earlier, increment revision to ensure building with latest libical (#34162, #42640, maintainer timeout).
Modified Paths:
--------------
trunk/dports/comms/gnokii/Portfile
Added Paths:
-----------
trunk/dports/comms/gnokii/files/
trunk/dports/comms/gnokii/files/autogen.sh
Modified: trunk/dports/comms/gnokii/Portfile
===================================================================
--- trunk/dports/comms/gnokii/Portfile 2015-11-17 21:54:26 UTC (rev 142630)
+++ trunk/dports/comms/gnokii/Portfile 2015-11-17 22:31:56 UTC (rev 142631)
@@ -5,9 +5,11 @@
name gnokii
version 0.6.31
+revision 1
+license GPL-2+
categories comms
platforms darwin
-maintainers mpal1+bugzilla at ieee.org
+maintainers ieee.org:mpal1+bugzilla
description Tools to manipulate Nokia and other mobile phones.
long_description gnokii provides tools and a user space driver for use \
with mobile phones under Linux, various unices and \
@@ -30,20 +32,30 @@
sha256 8f5a083b05c1a66a3402ca5cd80084e14c2c0632c991bb53b03c78e9adb02501
depends_build port:intltool \
- port:pkgconfig
+ port:pkgconfig \
+ port:autoconf \
+ port:automake \
+ port:libtool
+
depends_lib port:gettext \
port:iso-codes \
port:libical \
port:libusb-compat \
port:readline
+# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
+
post-patch {
+ xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
reinplace "s|/etc/gnokiirc|${prefix}/etc/gnokiirc|" ${worksrcpath}/common/cfgreader.c
reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Docs/sample/gnokiirc
}
+configure.cmd ./autogen.sh
+
configure.ldflags-append \
-lintl -lglib-2.0
+
configure.args --enable-security \
--disable-smsd \
--with-libiconv-prefix=${prefix} \
@@ -57,11 +69,17 @@
}
}
-# bluetooth does not work anymore on recent versions of Mac OS X, see #34162
-variant bluetooth description {Enable support for bluetooth (broken on Mac OS X >=10.7)} {
- configure.args-replace --disable-bluetooth --enable-bluetooth
- platform macosx {
- configure.ldflags-append -framework IOBluetooth
+
+platform macosx {
+ configure.ldflags-append -framework CoreFoundation
+
+ # bluetooth does not work anymore on Mac OS X version 10.7+, see #34162, #42640
+
+ if {${os.major} < 11} {
+ variant bluetooth description {Enable support for bluetooth (broken on Mac OS X >=10.7)} {
+ configure.args-replace --disable-bluetooth --enable-bluetooth
+ configure.ldflags-append -framework IOBluetooth
+ }
}
}
@@ -71,7 +89,3 @@
}
default_variants +x11
-
-platform macosx {
- configure.ldflags-append -framework CoreFoundation
-}
Added: trunk/dports/comms/gnokii/files/autogen.sh
===================================================================
--- trunk/dports/comms/gnokii/files/autogen.sh (rev 0)
+++ trunk/dports/comms/gnokii/files/autogen.sh 2015-11-17 22:31:56 UTC (rev 142631)
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+if [ "`uname -s`"x = "Darwin"x ]; then
+ glibtoolize -c -f
+else
+ libtoolize -c -f
+fi
+glib-gettextize -f -c
+intltoolize --force --copy --automake
+AC_LOCAL_FLAGS="-I m4/"
+if [ "`uname -s`"x = "FreeBSD"x ]; then
+ AC_LOCAL_FLAGS="${AC_LOCAL_FLAGS} -I /usr/local/share/aclocal"
+fi
+aclocal ${AC_LOCAL_FLAGS}
+autoheader -I m4/
+automake --add-missing
+autoconf
+./configure "$@"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/ea9d7e0d/attachment.html>
More information about the macports-changes
mailing list