2013-03-27 00:21:30 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
|
2010-06-07 21:12:50 +08:00
|
|
|
pkgname=libmicrohttpd
|
2013-03-27 00:21:30 +08:00
|
|
|
pkgver=0.9.25
|
2011-01-07 09:22:56 +08:00
|
|
|
pkgrel=1
|
2010-06-07 21:12:50 +08:00
|
|
|
pkgdesc="a small C library that is supposed to make it easy to run an HTTP server as part of another application."
|
2013-03-27 00:21:30 +08:00
|
|
|
arch=('x86_64')
|
2010-06-07 21:12:50 +08:00
|
|
|
url="http://www.gnu.org/software/libmicrohttpd/"
|
|
|
|
license=('LGPL')
|
2011-01-07 09:22:56 +08:00
|
|
|
options=(!libtool)
|
|
|
|
depends=('gnutls')
|
2011-06-24 10:35:05 +08:00
|
|
|
install=libmicrohttpd.install
|
2013-03-27 00:21:30 +08:00
|
|
|
source=("ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz")
|
|
|
|
md5sums=('4f3b8ccd50e7133283f2aec5cc21620f')
|
2010-06-07 21:12:50 +08:00
|
|
|
|
|
|
|
build() {
|
2011-01-07 09:22:56 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2013-03-27 00:21:30 +08:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--enable-largefile \
|
|
|
|
--enable-curl \
|
|
|
|
--enable-messages \
|
|
|
|
--with-pic
|
2011-01-07 09:22:56 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
2013-03-27 00:21:30 +08:00
|
|
|
|
2011-01-07 09:22:56 +08:00
|
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/platform.h \
|
|
|
|
${pkgdir}/usr/include/$pkgname/platform.h
|
|
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/plibc/plibc.h \
|
|
|
|
${pkgdir}/usr/include/$pkgname/plibc.h
|
|
|
|
sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $pkgdir/usr/lib/pkgconfig/libmicrohttpd.pc
|
2010-06-07 21:12:50 +08:00
|
|
|
}
|