diff options
Diffstat (limited to 'extra/libmicrohttpd/Pkgfile')
-rwxr-xr-x | extra/libmicrohttpd/Pkgfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/libmicrohttpd/Pkgfile b/extra/libmicrohttpd/Pkgfile new file mode 100755 index 000000000..750ad0117 --- /dev/null +++ b/extra/libmicrohttpd/Pkgfile @@ -0,0 +1,32 @@ +# Description: Petite bibliotheque C censé faciliter l'execution d'un serveur HTTP dans une autre aplication. +# URL: http://www.gnu.org/software/libmicrohttpd/ +# Maintainer: NuTyX packager team +# Packager: lesibel at free dot fr +# Depends on: gnutls,libgcrypt +# Run on: + +name=libmicrohttpd +version=0.9.16 +release=1 +source=( ftp://ftp.gnu.org/gnu/libmicrohttpd/$name-$version.tar.gz) + +build() { + cd $name-* + ./configure --prefix=/usr \ + --disable-dependency-tracking \ + --enable-largefile \ + --enable-curl --enable-messages \ + --with-pic + make + make DESTDIR=$PKG install + + install -Dm644 $SRC/$name-$version/src/include/platform.h \ + $PKG/usr/include/$name/platform.h + + install -Dm644 $SRC/$name-$version/src/include/plibc/plibc.h \ + $PKG/usr/include/$pkgname/plibc.h + + sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' \ + $PKG/usr/lib/pkgconfig/libmicrohttpd.pc +} + |