[132232] trunk/dports/graphics/gdk-pixbuf2
devans at macports.org
devans at macports.org
Tue Jan 27 08:14:45 PST 2015
Revision: 132232
https://trac.macports.org/changeset/132232
Author: devans at macports.org
Date: 2015-01-27 08:14:44 -0800 (Tue, 27 Jan 2015)
Log Message:
-----------
gdk-pixbuf2: patch configure.ac to add configuration item --enable-relocations to make application bundle relocation support introduced in 2.31.2 optional, default is no, add +bundle variant to enable if desired (#46685).
Modified Paths:
--------------
trunk/dports/graphics/gdk-pixbuf2/Portfile
Added Paths:
-----------
trunk/dports/graphics/gdk-pixbuf2/files/patch-configure.ac.diff
Modified: trunk/dports/graphics/gdk-pixbuf2/Portfile
===================================================================
--- trunk/dports/graphics/gdk-pixbuf2/Portfile 2015-01-27 16:01:06 UTC (rev 132231)
+++ trunk/dports/graphics/gdk-pixbuf2/Portfile 2015-01-27 16:14:44 UTC (rev 132232)
@@ -8,6 +8,7 @@
set my_name gdk-pixbuf
epoch 2
version 2.31.2
+revision 1
license LGPL
set branch [join [lrange [split ${version} .] 0 1] .]
categories graphics
@@ -35,10 +36,18 @@
port:jpeg \
port:tiff
-patchfiles patch-tests-pixbuf-readonly-to-mutable.c.diff
+pre-patch {
+ copy ${worksrcpath}/configure.ac ${worksrcpath}/configure.ac.orig
+}
+patchfiles patch-configure.ac.diff \
+ patch-tests-pixbuf-readonly-to-mutable.c.diff
+
gobject_introspection yes
+use_autoreconf yes
+autoreconf.args -fvi
+
configure.args --with-libjasper
test.run yes
@@ -48,6 +57,10 @@
system "${prefix}/bin/gdk-pixbuf-query-loaders --update-cache"
}
+variant bundle description {Enable application bundle relocation support} {
+ configure.args-append --enable-relocations
+}
+
variant x11 {
depends_lib-append port:xorg-libX11
configure.args-append --with-x11
Added: trunk/dports/graphics/gdk-pixbuf2/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/graphics/gdk-pixbuf2/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/graphics/gdk-pixbuf2/files/patch-configure.ac.diff 2015-01-27 16:14:44 UTC (rev 132232)
@@ -0,0 +1,28 @@
+--- configure.ac.orig 2014-10-22 11:58:50.000000000 -0700
++++ configure.ac 2015-01-27 07:51:33.000000000 -0800
+@@ -1076,13 +1076,23 @@
+ # applicationsapplications and linux bundles
+ #######################################################
+
+-enable_relocations=no
++# use configuration item to make relocation optional
++# default is no relocation
++
++AC_MSG_CHECKING([whether to build with application bundle relocation support])
++AC_ARG_ENABLE([relocations],
++ AS_HELP_STRING([--enable-relocations],
++ [Whether to build with application bundle relocation support]),
++ [],
++ [enable_relocations=no])
++
++ AC_MSG_RESULT([$enable_relocations])
++
+ case $host in
+ *-*-mingw*)
+ enable_relocations=yes
+ ;;
+ *-*-darwin*)
+- enable_relocations=yes
+ ;;
+ esac
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150127/1cfc4262/attachment.html>
More information about the macports-changes
mailing list