From 448c45576e8678a32d4978ee9335b993b2dff100 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 17 Oct 2014 22:01:25 +0000 Subject: Force PIC for shared object, fixes build on amd64. Bump revision. --- graphics/mypaint/Makefile | 4 ++-- graphics/mypaint/distinfo | 3 ++- graphics/mypaint/patches/patch-lib_SConscript | 12 ++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 graphics/mypaint/patches/patch-lib_SConscript (limited to 'graphics/mypaint') diff --git a/graphics/mypaint/Makefile b/graphics/mypaint/Makefile index e728ea77cc5..585858f6840 100644 --- a/graphics/mypaint/Makefile +++ b/graphics/mypaint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.17 2014/05/09 07:37:07 wiz Exp $ +# $NetBSD: Makefile,v 1.18 2014/10/17 22:01:25 joerg Exp $ DISTNAME= mypaint-1.0.0 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= graphics MASTER_SITES= http://download.gna.org/mypaint/ EXTRACT_SUFX= .tar.bz2 diff --git a/graphics/mypaint/distinfo b/graphics/mypaint/distinfo index b3e4c691268..56dfbdccc80 100644 --- a/graphics/mypaint/distinfo +++ b/graphics/mypaint/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.5 2012/12/19 11:25:31 ryoon Exp $ +$NetBSD: distinfo,v 1.6 2014/10/17 22:01:25 joerg Exp $ SHA1 (mypaint-1.0.0.tar.bz2) = 5f9221304bb8becd642b00d94af947edf1e18844 RMD160 (mypaint-1.0.0.tar.bz2) = 6d3ff0f5c16e18b006f6449e9591067bd29ed3c5 Size (mypaint-1.0.0.tar.bz2) = 36748957 bytes SHA1 (patch-SConstruct) = 374416991833fd3cb4f99f66cefee96e45e45161 +SHA1 (patch-lib_SConscript) = f075c48ffa1fcc7671f080f7125c186c9cc4392a SHA1 (patch-lib_colorchanger__crossed__bowl.hpp) = b64b8695fe8b787df94ddc588a714b991954084b diff --git a/graphics/mypaint/patches/patch-lib_SConscript b/graphics/mypaint/patches/patch-lib_SConscript new file mode 100644 index 00000000000..27339e76adc --- /dev/null +++ b/graphics/mypaint/patches/patch-lib_SConscript @@ -0,0 +1,12 @@ +$NetBSD: patch-lib_SConscript,v 1.1 2014/10/17 22:01:25 joerg Exp $ + +--- lib/SConscript.orig 2014-10-17 20:31:31.000000000 +0000 ++++ lib/SConscript +@@ -17,6 +17,6 @@ if sys.platform == "win32": # there 's a + elif sys.platform == "darwin": + module = env.SharedLibrary('_mypaintlib', Split(src), SHLIBPREFIX="", SHLIBSUFFIX=".so") + else: +- module = env.SharedLibrary('_mypaintlib', Split(src), SHLIBPREFIX="") ++ module = env.SharedLibrary('_mypaintlib', Split(src), SHLIBPREFIX="", CCFLAGS = ['-O2', '-fPIC']) + + Return('module') -- cgit v1.2.3