summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-08 03:39:25 +0000
committerDavid Robillard <d@drobilla.net>2012-02-08 03:39:25 +0000
commit53953ed0269a184178e024458c70dbc7abafdb19 (patch)
treee70b053e2601113c900d35467c5e47428d131113
parentda432dede09224eba86ccc1892722a977f69156d (diff)
downloadlilv-53953ed0269a184178e024458c70dbc7abafdb19.tar.gz
lilv-53953ed0269a184178e024458c70dbc7abafdb19.tar.bz2
lilv-53953ed0269a184178e024458c70dbc7abafdb19.zip
Ensure correct dependencies are in pkg-config file (always urid, state only if available).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3977 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--lilv.pc.in2
-rw-r--r--wscript6
2 files changed, 6 insertions, 2 deletions
diff --git a/lilv.pc.in b/lilv.pc.in
index 3a171ec..53098f5 100644
--- a/lilv.pc.in
+++ b/lilv.pc.in
@@ -6,6 +6,6 @@ includedir=@INCLUDEDIR@
Name: Lilv
Version: @LILV_VERSION@
Description: Simple C library for hosting LV2 plugins
-Requires: lv2core lv2-lv2plug.in-ns-ext-state
+Requires: lv2core @LILV_PKG_DEPS@
Libs: -L${libdir} -l@LIB_LILV@ -ldl
Cflags: -I${includedir}/lilv-@LILV_MAJOR_VERSION@
diff --git a/wscript b/wscript
index 9edb255..b469ff3 100644
--- a/wscript
+++ b/wscript
@@ -170,8 +170,12 @@ def build(bld):
bld.install_files(includedir, bld.path.ant_glob('lilv/*.hpp'))
# Pkgconfig file
+ pkg_deps = 'lv2-lv2plug.in-ns-ext-urid'
+ if bld.is_defined('HAVE_LV2_STATE'):
+ pkg_deps += ' lv2-lv2plug.in-ns-ext-state'
autowaf.build_pc(bld, 'LILV', LILV_VERSION, LILV_MAJOR_VERSION, [],
- {'LILV_MAJOR_VERSION' : LILV_MAJOR_VERSION})
+ {'LILV_MAJOR_VERSION' : LILV_MAJOR_VERSION,
+ 'LILV_PKG_DEPS' : pkg_deps})
lib_source = '''
src/collections.c