diff options
Diffstat (limited to 'main/fcgi/APKBUILD')
-rw-r--r-- | main/fcgi/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/fcgi/APKBUILD b/main/fcgi/APKBUILD new file mode 100644 index 000000000..fc208006c --- /dev/null +++ b/main/fcgi/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> +pkgname=fcgi +pkgver=2.4.0 +pkgrel=0 +pkgdesc="FAST CGI(fcgi) is a language independent, high performant extension to CGI" +url="http://www.fastcgi.com" +license="GPL" +depends="uclibc" +makedepends="" +subpackages="$pkgname-dev" +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" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + for i in ../*.patch; do + msg "Applying $i" + patch -p1 < $i || return 1 + done + + export LIBS="$LIBS -lm" + + # 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 + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared + make || return 1 + make DESTDIR="$pkgdir" install + +} + +md5sums="d15060a813b91383a9f3c66faf84867e fcgi-2.4.0.tar.gz +d2654525f06451c99b8cdd4cc00a963b 20-fcgi-2.4.0-clientdata-pointer.patch +f26b536786f70b30a2d91c83d56e944c 30-fcgi-2.4.0-html-updates.patch" |