summaryrefslogtreecommitdiffhomepage
path: root/files/libxml2/bin
diff options
context:
space:
mode:
Diffstat (limited to 'files/libxml2/bin')
-rw-r--r--files/libxml2/bin/%[_target]-xml2-config7
1 files changed, 7 insertions, 0 deletions
diff --git a/files/libxml2/bin/%[_target]-xml2-config b/files/libxml2/bin/%[_target]-xml2-config
new file mode 100644
index 00000000..fe809143
--- /dev/null
+++ b/files/libxml2/bin/%[_target]-xml2-config
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+PREFIX=""; [ ${PREFIX:="${0%/*}"} = "${0}" ] && PREFIX="."; PREFIX="${PREFIX:+${PREFIX}/}..";
+case "${1}" in
+--cflags) printf "-I${PREFIX}/include/libxml2\n"; ;;
+--libs) printf "-L${PREFIX}/lib -lxml2 -lz -llzma -lpthread -lm\n"; ;;
+esac;