diff options
-rw-r--r-- | extra/iaxmodem/APKBUILD | 23 | ||||
-rw-r--r-- | extra/iaxmodem/nocxx.patch | 15 |
2 files changed, 27 insertions, 11 deletions
diff --git a/extra/iaxmodem/APKBUILD b/extra/iaxmodem/APKBUILD index ff1e42b5..f1f2b21c 100644 --- a/extra/iaxmodem/APKBUILD +++ b/extra/iaxmodem/APKBUILD @@ -2,23 +2,27 @@ # Maintainer: Cameron Banta <cbanta@gmail.com> pkgname=iaxmodem pkgver=1.2.0 -pkgrel=0 +pkgrel=1 pkgdesc="Softmodem for hylafax that connects to VOIP gateway with IAX" url="http://iaxmodem.sourceforge.net/" license="GPL" -depends="uclibc tiff uclibc++" -makedepends="tiff-dev uclibc++-dev" +depends="uclibc tiff" +makedepends="tiff-dev" install= subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + nocxx.patch" build() { cd "$srcdir/$pkgname-$pkgver" - export CXX=g++-uc + + # purge usless C++ check + patch lib/libiax2/configure < ../nocxx.patch || return 1 + ./configure make || return 1 install -m755 -s -D "$srcdir/$pkgname-$pkgver/iaxmodem" \ - "$pkgdir/sbin/iaxmodem" + "$pkgdir/usr/sbin/iaxmodem" mkdir -p "$pkgdir/etc/iaxmodem" mkdir -p "$pkgdir/var/log/iaxmodem" @@ -44,10 +48,7 @@ build() { install -m644 -D "$srcdir/$pkgname-$pkgver/config.ttyIAX" \ "$pkgdir/usr/share/doc/$pkgname/config.ttyIAX" - # install -m755 -D "$srcdir"/$pkgname.initd \ - # "$pkgdir"/etc/init.d/$pkgname - # install -m644 -D "$srcdir"/$pkgname.confd \ - # "$pkgdir"/etc/conf.d/$pkgname } -md5sums="f8b26cfeed188e5c1dcbc5ae5ef923b3 iaxmodem-1.2.0.tar.gz" +md5sums="f8b26cfeed188e5c1dcbc5ae5ef923b3 iaxmodem-1.2.0.tar.gz +28513788ba4d556ccd538867dc6205ab nocxx.patch" diff --git a/extra/iaxmodem/nocxx.patch b/extra/iaxmodem/nocxx.patch new file mode 100644 index 00000000..beb1ab90 --- /dev/null +++ b/extra/iaxmodem/nocxx.patch @@ -0,0 +1,15 @@ +--- a/configure 2004-12-07 21:34:23.205172545 +0000 ++++ b/configure 2004-12-07 21:37:17.726654782 +0000 +@@ -5148,10 +5148,8 @@ + : + else + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check +-See \`config.log' for more details." >&5 +-echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check +-See \`config.log' for more details." >&2;} +- { (exit 1); exit 1; }; } ++See \`config.log' for more details." >&5;} ++ { echo "C++ sucks, ignoring ..." >&5; }; } + fi + + ac_ext=cc |