Ticket #42640: patch-gnokii-intltool-0.51.diff

File patch-gnokii-intltool-0.51.diff, 2.0 KB (added by dbevans (David B. Evans), 8 years ago)

Patch to fix build with intltool 0.51, libical

  • Portfile

     
    55
    66name                gnokii
    77version             0.6.31
     8revision            1
    89categories          comms
    910platforms           darwin
    1011maintainers         mpal1+bugzilla@ieee.org
     
    3031                    sha256  8f5a083b05c1a66a3402ca5cd80084e14c2c0632c991bb53b03c78e9adb02501
    3132
    3233depends_build       port:intltool \
    33                     port:pkgconfig
     34                    port:pkgconfig \
     35                    port:autoconf \
     36                    port:automake \
     37                    port:libtool
     38
    3439depends_lib         port:gettext \
    3540                    port:iso-codes \
    3641                    port:libical \
     
    3742                    port:libusb-compat \
    3843                    port:readline
    3944
     45# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
     46
    4047post-patch {
     48    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
    4149    reinplace "s|/etc/gnokiirc|${prefix}/etc/gnokiirc|" ${worksrcpath}/common/cfgreader.c
    4250    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Docs/sample/gnokiirc
    4351}
    4452
     53configure.cmd       ./autogen.sh
     54
    4555configure.ldflags-append \
    4656                    -lintl -lglib-2.0
     57
    4758configure.args      --enable-security \
    4859                    --disable-smsd \
    4960                    --with-libiconv-prefix=${prefix} \
  • files/autogen.sh

     
     1#!/bin/sh -e
     2
     3if [ "`uname -s`"x = "Darwin"x ]; then
     4        glibtoolize -c -f
     5else
     6        libtoolize -c -f
     7fi
     8glib-gettextize -f -c
     9intltoolize --force --copy --automake
     10AC_LOCAL_FLAGS="-I m4/"
     11if [ "`uname -s`"x = "FreeBSD"x ]; then
     12        AC_LOCAL_FLAGS="${AC_LOCAL_FLAGS} -I /usr/local/share/aclocal"
     13fi
     14aclocal ${AC_LOCAL_FLAGS}
     15autoheader -I m4/
     16automake --add-missing
     17autoconf
     18./configure "$@"