diff options
Diffstat (limited to 'main/fcgi/APKBUILD')
-rw-r--r-- | main/fcgi/APKBUILD | 59 |
1 files changed, 44 insertions, 15 deletions
diff --git a/main/fcgi/APKBUILD b/main/fcgi/APKBUILD index 2b30b364fe..c48a156ef1 100644 --- a/main/fcgi/APKBUILD +++ b/main/fcgi/APKBUILD @@ -2,37 +2,45 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=fcgi pkgver=2.4.0 -pkgrel=5 +pkgrel=6 pkgdesc="FAST CGI(fcgi) is a language independent, high performant extension to CGI" url="http://www.fastcgi.com" arch="all" license="GPL" depends="" -makedepends="" -subpackages="$pkgname-dev" +makedepends="libtool" +subpackages="$pkgname-dev $pkgname++:xx" source="http://www.fastcgi.com/dist/${pkgname}-${pkgver}.tar.gz -20-fcgi-2.4.0-clientdata-pointer.patch -30-fcgi-2.4.0-html-updates.patch" + configure.patch + fcgi-2.4.0-gcc44_fixes.patch + fcgi-2.4.0-Makefile.am-CPPFLAGS.patch + 20-fcgi-2.4.0-clientdata-pointer.patch + 30-fcgi-2.4.0-html-updates.patch" -build() { +prepare() { cd "$srcdir/$pkgname-$pkgver" - - for i in ../*.patch; do - msg "Applying $i" - patch -p1 < $i || return 1 + for i in $source; do + case $i in + *.patch) msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1;; + esac done - - export LIBS="$LIBS -lm" + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in + + libtoolize --force && aclocal && autoconf && automake --add-missing +} - # seems like there is no way to disable c++ from configure script - # the row below helps us to build even if g++ is installed on system - export CXX=false +build() { + cd "$srcdir/$pkgname-$pkgver" + export LIBS="-lm" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-shared + # work around parallel build issue + make -C libfcgi libfcgi.la || return 1 make || return 1 } @@ -43,6 +51,27 @@ package() { } +xx() { + pkgdesc="FCGI c++ library" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*++* "$subpkgdir"/usr/lib/ +} + md5sums="d15060a813b91383a9f3c66faf84867e fcgi-2.4.0.tar.gz +6d6d15f05721284b63b173ab6e728ecb configure.patch +2e72c834db21da6af3f77dd2b36727a2 fcgi-2.4.0-gcc44_fixes.patch +8c07165aed574b853326ae25fe9af291 fcgi-2.4.0-Makefile.am-CPPFLAGS.patch d2654525f06451c99b8cdd4cc00a963b 20-fcgi-2.4.0-clientdata-pointer.patch f26b536786f70b30a2d91c83d56e944c 30-fcgi-2.4.0-html-updates.patch" +sha256sums="66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9 fcgi-2.4.0.tar.gz +5dfa0465d08b4d87e4e30caefa3702c73e8f7eb634f584305fccd3b63ee65e24 configure.patch +c31eb921a662b53401a88caafbadb16b02ae809d25d0b6d8b1ac96d20803e9d5 fcgi-2.4.0-gcc44_fixes.patch +df132dec038246ce9526f311c5d00ec103427111722c476f78069d7f1386529f fcgi-2.4.0-Makefile.am-CPPFLAGS.patch +27936406b5fcb13096bbdd80ee7eb0cf262e5c2b983e79e41d17a3cd17387683 20-fcgi-2.4.0-clientdata-pointer.patch +df8b2eb4c017fedf6f27a5650e2f4f5636e66ec7d02d20a50282edbc8d636c69 30-fcgi-2.4.0-html-updates.patch" +sha512sums="38164d11112e834b30c6f809da4e184021e8d22ec8db2c49ad827895a75b99dc1824b94831304aa0ae1174176fe64d02a12882b1a00b780119600bdc39a90927 fcgi-2.4.0.tar.gz +57ae87e526c6fbc39b81b93b0fa2d159315f4d06f9a58053a5636bb3377955c3d92024f2363af483bf4c22b7f3c888d1f1505e265f77e8a1b690740cf5909959 configure.patch +6dafc960c30c1c9f5e09eff0fa71a0202265e063b9ccc56b82d58961f4a2e290734dcea06bd45ea58abc5a394db6edbaed4ccac5dc1fcfa22f0595917fa24243 fcgi-2.4.0-gcc44_fixes.patch +04886b4aa5fab4aca7ef8834b73c1b8d899fcfd8072934a9b337913306335e53e5b24069af6c7e7ac37272bb6bbd9fe0eb82704255a58c344fb964846f925255 fcgi-2.4.0-Makefile.am-CPPFLAGS.patch +c5339ae940994daeec4cf8030933ca2ab5a00651b91eb5d2ff3b871673b5a62646bfb8e81c190ad6d83015fcf59df4076bc745f097ddcada220ca0dc4a05db6a 20-fcgi-2.4.0-clientdata-pointer.patch +79abe9f43150b3163e92030cc9afbee90f69f04bd487254d187abda6fa3484623f605394c96eeb6fd4203d2b06f7e771c9b46f9c21b03cde1aa043da9b3e8d5e 30-fcgi-2.4.0-html-updates.patch" |