aboutsummaryrefslogtreecommitdiffstats
path: root/main/ldns
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-02 09:41:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-04 10:44:37 +0000
commit734f83d5d7d47ebcec77c9c5485c77054ca6c8e6 (patch)
tree3213b2807d01d657f18e7c36cb7074662338f169 /main/ldns
parent56af471aba0bc8d5224db81048590ee0db2bab7b (diff)
downloadaports-734f83d5d7d47ebcec77c9c5485c77054ca6c8e6.tar.bz2
aports-734f83d5d7d47ebcec77c9c5485c77054ca6c8e6.tar.xz
main/ldns: provide pkg-config file
Diffstat (limited to 'main/ldns')
-rw-r--r--main/ldns/APKBUILD18
1 files changed, 17 insertions, 1 deletions
diff --git a/main/ldns/APKBUILD b/main/ldns/APKBUILD
index 412792afd7..f3cd8d4519 100644
--- a/main/ldns/APKBUILD
+++ b/main/ldns/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ldns
pkgver=1.6.17
-pkgrel=0
+pkgrel=1
pkgdesc="Lowlevel DNS(SEC) library"
url="http://nlnetlabs.nl/projects/ldns/"
arch="all"
@@ -60,6 +60,22 @@ package() {
make -C examples DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
+ mkdir -p "$pkgdir"/usr/lib/pkgconfig
+ cat > "$pkgdir"/usr/lib/pkgconfig/libldns.pc<<EOF
+prefix=/usr
+exec_prefix=\${prefix}
+libdir=\${exec_prefix}/lib
+includedir=\${prefix}/include
+
+Name: ldns
+Description: Library for DNS programming
+URL: http://www.nlnetlabs.nl/projects/ldns
+Version: $pkgver
+Requires.private: libcrypto
+Libs: -L\${libdir} -lldns
+Libs.private: -lcrypto
+Cflags: -I\${includedir}
+EOF
}
drill() {