lilv/lilv-0.4.2-serdlib.patch
2011-06-06 18:19:50 +00:00

46 lines
2.0 KiB
Diff

Index: serd-0.4.2/wscript
===================================================================
--- serd-0.4.2/wscript.orig 2011-06-03 18:51:51.952991193 +0200
+++ serd-0.4.2/wscript 2011-06-03 18:59:52.762991134 +0200
@@ -10,7 +10,7 @@ import waflib.Logs as Logs, waflib.Optio
# Version of this package (even if built as a child)
SERD_VERSION = '0.4.2'
-SERD_MAJOR_VERSION = '0'
+SERD_MAJOR_VERSION = ''
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -53,10 +53,10 @@ def configure(conf):
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
conf.write_config_header('serd-config.h', remove=False)
- conf.env['INCLUDES_SERD'] = ['%s/serd-%s' % (conf.env['INCLUDEDIR'],
+ conf.env['INCLUDES_SERD'] = ['%s/serd%s' % (conf.env['INCLUDEDIR'],
SERD_MAJOR_VERSION)]
conf.env['LIBPATH_SERD'] = [conf.env['LIBDIR']]
- conf.env['LIB_SERD'] = ['serd-%s' % SERD_MAJOR_VERSION];
+ conf.env['LIB_SERD'] = ['serd%s' % SERD_MAJOR_VERSION];
autowaf.display_msg(conf, "Utilities", str(conf.env['BUILD_UTILS']))
autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
@@ -85,7 +85,7 @@ def build(bld):
obj.source = lib_source
obj.includes = ['.', './src']
obj.name = 'libserd'
- obj.target = 'serd-%s' % SERD_MAJOR_VERSION
+ obj.target = 'serd%s' % SERD_MAJOR_VERSION
obj.vnum = SERD_LIB_VERSION
obj.install_path = '${LIBDIR}'
obj.cflags = [ '-fvisibility=hidden', '-DSERD_SHARED', '-DSERD_INTERNAL' ]
Index: serd-0.4.2/serd.pc.in
===================================================================
--- serd-0.4.2/serd.pc.in.orig 2011-05-26 01:50:40.000000000 +0200
+++ serd-0.4.2/serd.pc.in 2011-06-03 19:12:32.480991006 +0200
@@ -7,4 +7,4 @@ Name: Serd
Version: @SERD_VERSION@
Description: Lightweight RDF syntax library
Libs: -L${libdir} -l@LIB_SERD@
-Cflags: -I${includedir}/serd-@SERD_MAJOR_VERSION@
+Cflags: -I${includedir}/serd