diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2013-05-24 21:32:38 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2013-05-24 21:32:38 +0000 |
commit | f150089c5e5672d92e35942b3a20f48140d829a6 (patch) | |
tree | 543e7fd2b47427537847b7fea7b5e2f502bf1065 | |
parent | 384eac357ab66efe7be61a66b330790f733abdda (diff) | |
download | ports-f150089c5e5672d92e35942b3a20f48140d829a6.tar.gz ports-f150089c5e5672d92e35942b3a20f48140d829a6.zip |
Notes
-rw-r--r-- | audio/xmms2/Makefile | 4 | ||||
-rw-r--r-- | audio/xmms2/files/patch-src-clients-lib-xmmsclient-glib-wscript | 34 | ||||
-rw-r--r-- | audio/xmms2/files/patch-src-clients-lib-xmmsclient-wscript | 34 | ||||
-rw-r--r-- | audio/xmms2/files/patch-src-include-wscript | 22 | ||||
-rw-r--r-- | audio/xmms2/files/patch-src-include-xmmsclient-xmmsclient++-coll.h | 11 | ||||
-rw-r--r-- | audio/xmms2/files/patch-wscript | 18 |
6 files changed, 118 insertions, 5 deletions
diff --git a/audio/xmms2/Makefile b/audio/xmms2/Makefile index c4343ad3d8e6..adb8efddb6c8 100644 --- a/audio/xmms2/Makefile +++ b/audio/xmms2/Makefile @@ -3,7 +3,7 @@ PORTNAME?= xmms2 PORTVERSION= 0.8 -PORTREVISION?= 1 +PORTREVISION?= 2 DISTVERSIONSUFFIX=DrO_o CATEGORIES?= audio MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20${DISTVERSIONSUFFIX} @@ -389,8 +389,10 @@ do-build: do-install: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./waf install --without-ldconfig +.if !defined(XMMS2_SLAVE) if [ ! -d ${DATADIR}/scripts/startup.d ]; then \ ${MKDIR} ${DATADIR}/scripts/startup.d;\ fi +.endif .include <bsd.port.mk> diff --git a/audio/xmms2/files/patch-src-clients-lib-xmmsclient-glib-wscript b/audio/xmms2/files/patch-src-clients-lib-xmmsclient-glib-wscript new file mode 100644 index 000000000000..4d2b61ae2e2a --- /dev/null +++ b/audio/xmms2/files/patch-src-clients-lib-xmmsclient-glib-wscript @@ -0,0 +1,34 @@ +--- src/clients/lib/xmmsclient-glib/wscript.orig 2013-05-24 16:43:51.815281865 +0200 ++++ src/clients/lib/xmmsclient-glib/wscript 2013-05-24 17:00:04.966198019 +0200 +@@ -1,19 +1,21 @@ + from waftools import tool + + def build(bld): +- obj = bld(features='c cshlib', +- target = 'xmmsclient-glib', +- includes = '../../../.. ../../../include', +- source = 'xmmsclient-glib.c', +- uselib = 'glib2', +- use = 'xmmsclient', +- vnum = '1.0.0' +- ) ++ if bld.env.BUILD_XMMS2D: ++ obj = bld(features='c cshlib', ++ target = 'xmmsclient-glib', ++ includes = '../../../.. ../../../include', ++ source = 'xmmsclient-glib.c', ++ uselib = 'glib2', ++ use = 'xmmsclient', ++ vnum = '1.0.0' ++ ) + +- tool.add_install_flag(bld, obj) ++ tool.add_install_flag(bld, obj) + + def configure(conf): +- conf.env.XMMS_PKGCONF_FILES.append(('xmms2-client-glib', '-lxmmsclient-glib')) ++ if not conf.options.without_xmms2d: ++ conf.env.XMMS_PKGCONF_FILES.append(('xmms2-client-glib', '-lxmmsclient-glib')) + + return True + diff --git a/audio/xmms2/files/patch-src-clients-lib-xmmsclient-wscript b/audio/xmms2/files/patch-src-clients-lib-xmmsclient-wscript new file mode 100644 index 000000000000..9f6901520127 --- /dev/null +++ b/audio/xmms2/files/patch-src-clients-lib-xmmsclient-wscript @@ -0,0 +1,34 @@ +--- src/clients/lib/xmmsclient/wscript.orig 2013-05-24 16:42:05.810273309 +0200 ++++ src/clients/lib/xmmsclient/wscript 2013-05-24 17:00:19.345205807 +0200 +@@ -25,19 +25,21 @@ + else: + source.extend(["visualization/dummy.c"]) + +- obj = bld(features = 'c cshlib', +- target = 'xmmsclient', +- includes = '../../../.. ../../../include ../../../includepriv', +- source = source, +- uselib = 'socket time', +- use = 'xmmsipc xmmssocket xmmsutils xmmstypes xmmsvisualization', +- vnum = '6.0.0' +- ) ++ if bld.env.BUILD_XMMS2D: ++ obj = bld(features = 'c cshlib', ++ target = 'xmmsclient', ++ includes = '../../../.. ../../../include ../../../includepriv', ++ source = source, ++ uselib = 'socket time', ++ use = 'xmmsipc xmmssocket xmmsutils xmmstypes xmmsvisualization', ++ vnum = '6.0.0' ++ ) + +- tool.add_install_flag(bld, obj) ++ tool.add_install_flag(bld, obj) + + def configure(conf): +- conf.env.XMMS_PKGCONF_FILES.append(("xmms2-client", "-lxmmsclient")) ++ if not conf.options.without_xmms2d: ++ conf.env.XMMS_PKGCONF_FILES.append(("xmms2-client", "-lxmmsclient")) + + conf.check_cc(function_name="semtimedop", + header_name=["sys/types.h", "sys/ipc.h", "sys/sem.h"], diff --git a/audio/xmms2/files/patch-src-include-wscript b/audio/xmms2/files/patch-src-include-wscript new file mode 100644 index 000000000000..4352004271fa --- /dev/null +++ b/audio/xmms2/files/patch-src-include-wscript @@ -0,0 +1,22 @@ +--- src/include/wscript.orig 2011-10-20 21:26:08.000000000 +0200 ++++ src/include/wscript 2013-05-24 17:17:24.643159743 +0200 +@@ -2,12 +2,13 @@ + + def build(bld): + # FIXME: This is a test that should work. +- for d in bld.path.ant_glob('**', dir=True, src=False): +- rpath = d.path_from(bld.path) +- bld.recurse(rpath) +- f = d.ant_glob('*.h') +- if f: +- bld.install_files(os.path.join(bld.env.INCLUDEDIR, 'xmms2', rpath), f) ++ if bld.env.BUILD_XMMS2D: ++ for d in bld.path.ant_glob('**', dir=True, src=False): ++ rpath = d.path_from(bld.path) ++ bld.recurse(rpath) ++ f = d.ant_glob('*.h') ++ if f: ++ bld.install_files(os.path.join(bld.env.INCLUDEDIR, 'xmms2', rpath), f) + + #paths = ['xmms', 'xmmsc', 'xmmsclient', 'xmmsclient/xmmsclient++'] + #for p in paths: diff --git a/audio/xmms2/files/patch-src-include-xmmsclient-xmmsclient++-coll.h b/audio/xmms2/files/patch-src-include-xmmsclient-xmmsclient++-coll.h new file mode 100644 index 000000000000..08137388bf26 --- /dev/null +++ b/audio/xmms2/files/patch-src-include-xmmsclient-xmmsclient++-coll.h @@ -0,0 +1,11 @@ +--- src/include/xmmsclient/xmmsclient++/coll.h.orig 2013-05-24 12:04:02.505430442 +0200 ++++ src/include/xmmsclient/xmmsclient++/coll.h 2013-05-24 12:07:11.694426120 +0200 +@@ -612,7 +612,7 @@ + + template< typename keyT, typename valT > + AbstractElement< keyT, valT >::AbstractElement( const Coll& coll, keyT index ) +- : coll_ (coll), index_( index ) ++ : coll_ ( const_cast< Coll& >( coll ) ), index_( index ) + { + xmmsv_coll_ref( coll_.getColl() ); + } diff --git a/audio/xmms2/files/patch-wscript b/audio/xmms2/files/patch-wscript index 1580805f6694..b443ce0d1226 100644 --- a/audio/xmms2/files/patch-wscript +++ b/audio/xmms2/files/patch-wscript @@ -1,6 +1,16 @@ --- wscript.orig 2011-10-20 21:26:08.000000000 +0200 -+++ wscript 2012-05-06 18:28:07.902349353 +0200 -@@ -295,9 +295,6 @@ ++++ wscript 2013-05-24 16:57:29.409207485 +0200 +@@ -131,7 +131,8 @@ + VERSION = bld.env.VERSION + ) + +- bld.install_files('${SHAREDDIR}', "mind.in.a.box-lament_snipplet.ogg") ++ if bld.env.BUILD_XMMS2D: ++ bld.install_files('${SHAREDDIR}', "mind.in.a.box-lament_snipplet.ogg") + + bld.add_post_fun(shutdown) + +@@ -295,9 +296,6 @@ conf.msg("uncommited changed", changed and "yes" or "no") conf.env.VERSION = "%s (git commit: %s%s)" % (BASEVERSION, nam, dirty) @@ -10,7 +20,7 @@ if conf.options.with_profiling: conf.env.with_profiling = True conf.env.append_unique('CFLAGS', ['--coverage']) -@@ -330,7 +327,7 @@ +@@ -330,7 +328,7 @@ conf.env.PKGCONFIGDIR = conf.options.pkgconfigdir Logs.pprint('Normal', conf.env.PKGCONFIGDIR) #XXX What is it ? else: @@ -19,7 +29,7 @@ if conf.options.config_prefix: for d in conf.options.config_prefix: -@@ -339,6 +336,8 @@ +@@ -339,6 +337,8 @@ conf.env.prepend_value('LIBPATH', os.path.join(d, 'lib')) conf.env.prepend_value('CPPPATH', os.path.join(d, 'include')) |