[114012] trunk/dports/devel/safestr
ryandesign at macports.org
ryandesign at macports.org
Wed Nov 27 03:33:37 PST 2013
Revision: 114012
https://trac.macports.org/changeset/114012
Author: ryandesign at macports.org
Date: 2013-11-27 03:33:36 -0800 (Wed, 27 Nov 2013)
Log Message:
-----------
safestr: fix universal build by running autoreconf and make configure exit with an error if xxl can't be found (#41469)
Modified Paths:
--------------
trunk/dports/devel/safestr/Portfile
Added Paths:
-----------
trunk/dports/devel/safestr/files/patch-configure.ac.diff
Modified: trunk/dports/devel/safestr/Portfile
===================================================================
--- trunk/dports/devel/safestr/Portfile 2013-11-27 11:32:41 UTC (rev 114011)
+++ trunk/dports/devel/safestr/Portfile 2013-11-27 11:33:36 UTC (rev 114012)
@@ -4,6 +4,7 @@
name safestr
version 1.0.3
+revision 1
categories devel
license BSD
maintainers landonf openmaintainer
@@ -25,6 +26,10 @@
depends_lib port:xxl
-patchfiles safefmt.c.patch
+patchfiles patch-configure.ac.diff \
+ safefmt.c.patch
+# build universal properly
+use_autoreconf yes
+
configure.args --with-xxl=${prefix}
Added: trunk/dports/devel/safestr/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/devel/safestr/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/devel/safestr/files/patch-configure.ac.diff 2013-11-27 11:33:36 UTC (rev 114012)
@@ -0,0 +1,30 @@
+--- configure.ac.orig 2005-01-30 12:04:16.000000000 -0600
++++ configure.ac 2013-11-27 05:26:24.000000000 -0600
+@@ -1,10 +1,10 @@
+ AC_PREREQ(2.57)
+ AC_COPYRIGHT([(c) Copyright 2003-2005 Matt Messier and John Viega])
+ AC_INIT([safestr], [1.0.3], [safestr at zork.org])
++AC_CONFIG_AUX_DIR(.)
+ AM_INIT_AUTOMAKE([1.7 foreign])
+ AM_CONFIG_HEADER([config.h safestr.h])
+ AC_CONFIG_SRCDIR([safestr.h.in])
+-AC_CONFIG_AUX_DIR(.)
+ AC_PREFIX_DEFAULT([/usr/local])
+
+ dnl When you change this version number here, make sure that you also change
+@@ -61,8 +61,7 @@
+
+ ac_build_xxl=no
+ AC_CHECK_LIB(xxl, xxl_release_asset, [], [
+- ac_build_xxl=yes
+- AC_MSG_NOTICE([XXL was not found. The version included in this distribution will be built.])
++ AC_MSG_ERROR([XXL library was not found.])
+ ])
+ AM_CONDITIONAL([BUILD_XXL], [test "${ac_build_xxl}" = "yes"])
+
+@@ -126,5 +125,4 @@
+ fi
+
+ AC_CONFIG_FILES([Makefile], [chmod -w Makefile])
+-AC_CONFIG_SUBDIRS([xxl-1.0.1])
+ AC_OUTPUT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131127/302eeb7e/attachment-0001.html>
More information about the macports-changes
mailing list