summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sord.pc.in6
-rwxr-xr-xwafbin87718 -> 87343 bytes
-rw-r--r--wscript17
3 files changed, 13 insertions, 10 deletions
diff --git a/sord.pc.in b/sord.pc.in
index 981e3f8..4705fc3 100644
--- a/sord.pc.in
+++ b/sord.pc.in
@@ -3,8 +3,8 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: libsord
+Name: Sord
Version: @SORD_VERSION@
Description: A lightweight C library for storing RDF statements in memory.
-Libs: -L${libdir} -lsord
-Cflags: -I${includedir}
+Libs: -L${libdir} -lsord-@SORD_MAJOR_VERSION@
+Cflags: -I${includedir}/sord-@SORD_MAJOR_VERSION@
diff --git a/waf b/waf
index 86ffb67..0b6e94c 100755
--- a/waf
+++ b/waf
Binary files differ
diff --git a/wscript b/wscript
index d6c4340..af0c593 100644
--- a/wscript
+++ b/wscript
@@ -5,7 +5,8 @@ from waflib.extras import autowaf as autowaf
import waflib.Logs as Logs, waflib.Options as Options
# Version of this package (even if built as a child)
-SORD_VERSION = '0.1.0'
+SORD_VERSION = '0.2.0'
+SORD_MAJOR_VERSION = '0'
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -39,8 +40,8 @@ def configure(conf):
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB',
atleast_version='2.0.0', mandatory=True)
- autowaf.check_pkg(conf, 'serd', uselib_store='SERD',
- atleast_version='0.1.0', mandatory=True)
+ autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
+ atleast_version='0.2.0', mandatory=True)
conf.env['BUILD_TESTS'] = Options.options.build_tests
conf.env['BUILD_UTILS'] = True
@@ -64,11 +65,13 @@ def configure(conf):
def build(bld):
# C/C++ Headers
- bld.install_files('${INCLUDEDIR}/sord', bld.path.ant_glob('sord/*.h'))
- bld.install_files('${INCLUDEDIR}/sord', bld.path.ant_glob('sord/*.hpp'))
+ includedir = '${INCLUDEDIR}/sord-%s/sord' % SORD_MAJOR_VERSION
+ bld.install_files(includedir, bld.path.ant_glob('sord/*.h'))
+ bld.install_files(includedir, bld.path.ant_glob('sord/*.hpp'))
# Pkgconfig file
- autowaf.build_pc(bld, 'SORD', SORD_VERSION, [])
+ autowaf.build_pc(bld, 'SORD', SORD_VERSION, SORD_MAJOR_VERSION, [],
+ {'SORD_MAJOR_VERSION' : SORD_MAJOR_VERSION})
# Library
obj = bld(features = 'c cshlib',
@@ -76,7 +79,7 @@ def build(bld):
includes = ['.', './src'],
export_includes = ['.'],
name = 'libsord',
- target = 'sord',
+ target = 'sord-%s' % SORD_MAJOR_VERSION,
vnum = SORD_LIB_VERSION,
install_path = '${LIBDIR}',
libs = [ 'm' ],