summaryrefslogtreecommitdiffstats
path: root/libmicrohttpd/Pkgfile
blob: af32dadae4c8e558b8fd8fb8a7a84e06dae38c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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: gnutls,libgcrypt

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
	rm $PKG/usr/share/info/dir

	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
}