blob: 750ad011730b9fec96c82bd7b77ce306c7b227af (
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
|
# 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
}
|