[85056] trunk/dports/gnome/bug-buddy
devans at macports.org
devans at macports.org
Sat Oct 8 08:42:07 PDT 2011
Revision: 85056
http://trac.macports.org/changeset/85056
Author: devans at macports.org
Date: 2011-10-08 08:42:07 -0700 (Sat, 08 Oct 2011)
Log Message:
-----------
bug-buddy: in configure, use pkg-config to find location of libelf.h, #31393.
Modified Paths:
--------------
trunk/dports/gnome/bug-buddy/Portfile
Added Paths:
-----------
trunk/dports/gnome/bug-buddy/files/
trunk/dports/gnome/bug-buddy/files/patch-configure.in.diff
Modified: trunk/dports/gnome/bug-buddy/Portfile
===================================================================
--- trunk/dports/gnome/bug-buddy/Portfile 2011-10-08 15:02:51 UTC (rev 85055)
+++ trunk/dports/gnome/bug-buddy/Portfile 2011-10-08 15:42:07 UTC (rev 85056)
@@ -34,6 +34,10 @@
use_bzip2 yes
+patchfiles patch-configure.in.diff
+
+use_autoreconf yes
+
#
# evolution-data-server is not universal
#
Added: trunk/dports/gnome/bug-buddy/files/patch-configure.in.diff
===================================================================
--- trunk/dports/gnome/bug-buddy/files/patch-configure.in.diff (rev 0)
+++ trunk/dports/gnome/bug-buddy/files/patch-configure.in.diff 2011-10-08 15:42:07 UTC (rev 85056)
@@ -0,0 +1,45 @@
+--- configure.in.orig 2010-03-29 01:37:59.000000000 -0700
++++ configure.in 2011-10-08 08:07:52.000000000 -0700
+@@ -34,6 +34,7 @@
+ LIBSOUP_REQUIRED="libsoup-2.4"
+ LIBGTOP_REQUIRED="libgtop-2.0 >= 2.13.3"
+ LIBGCONF_REQUIRED="gconf-2.0"
++LIBELF_REQUIRED="libelf"
+
+ PKG_CHECK_MODULES(BUG_BUDDY,
+ [
+@@ -47,6 +48,7 @@
+ $LIBSOUP_REQUIRED
+ $LIBGTOP_REQUIRED
+ $LIBGCONF_REQUIRED
++ $LIBELF_REQUIRED
+ ])
+
+ AC_SUBST(BUG_BUDDY_CFLAGS)
+@@ -70,9 +72,18 @@
+
+
+ AC_CHECK_LIB(elf, elf_version)
++
++saveCPPFLAGS=$CPPFLAGS
++saveCFLAGS=$CFLAGS
++CPPFLAGS="$BUG_BUDDY_CFLAGS $CPPFLAGS"
++CFLAGS="$BUD_BUDDY_CFLAGS $CFLAGS"
++
+ AC_CHECK_HEADERS([libelf.h],[],[AC_MSG_ERROR([libelf.h not found.])])
+ AC_CHECK_HEADERS([gelf.h],[],[AC_MSG_ERROR([gelf.h not found.])])
+
++CPPFLAGS=$saveCPPFLAGS
++CFLAGS=$saveCFLAGS
++
+ AC_ARG_ENABLE([google-breakpad],
+ [AC_HELP_STRING([--enable-google-breakpad],
+ [Enable support for retrieving minidumps with Google \
+@@ -117,6 +128,7 @@
+ PKG_CHECK_MODULES(GNOME_BREAKPAD,
+ [
+ $GDK_REQUIRED
++ $LIBELF_REQUIRED
+ ])
+ AC_SUBST(GNOME_BREAKPAD_CFLAGS)
+ AC_SUBST(GNOME_BREAKPAD_LIBS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111008/5c1aee87/attachment.html>
More information about the macports-changes
mailing list