diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2010-09-16 00:02:15 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2010-09-21 08:29:51 +0000 |
commit | 9c46f5fad1b8fa29e528b84b60fdaef532a57904 (patch) | |
tree | e66584d1e9ee3536f68b8d392c9887599ef986e0 /main/libmicrohttpd | |
parent | 24be1951a98b755e268c933bc8363dc7abf0162d (diff) | |
download | aports-9c46f5fad1b8fa29e528b84b60fdaef532a57904.tar.bz2 aports-9c46f5fad1b8fa29e528b84b60fdaef532a57904.tar.xz |
main/libmicrohttpd: new apkbuild
(cherry picked from commit ee0778efefbad0b116936c6658963c22a5eeb3df)
Diffstat (limited to 'main/libmicrohttpd')
-rw-r--r-- | main/libmicrohttpd/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/libmicrohttpd/APKBUILD b/main/libmicrohttpd/APKBUILD new file mode 100644 index 000000000..3c5fb9da0 --- /dev/null +++ b/main/libmicrohttpd/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=libmicrohttpd +pkgver=0.9.0 +pkgrel=0 +pkgdesc="a small C library that is supposed to make it easy to run an HTTP server as part of another application." +url="http://www.gnu.org/software/libmicrohttpd/" +license="GPL" +depends= +makedepends="curl-dev libgcrypt-dev" +install= +subpackages="$pkgname-dev $pkgname-doc" +source="ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-largefile \ + --enable-curl \ + --enable-messages + + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/platform.h \ + ${pkgdir}/usr/include/platform.h + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/plibc.h \ + ${pkgdir}/usr/include/plibc.h +} + +md5sums="9c0d681ee88cdbe332919e102ad27953 libmicrohttpd-0.9.0.tar.gz" |