Revision
134579
Author
devans@macports.org
Date
2015-03-30 16:15:43 -0700 (Mon, 30 Mar 2015)

Log Message

xchat-gnome: reconfigure using autogen.sh for intltool 0.51 compatibility, minimize compiler warnings.

Modified Paths

Added Paths

Diff

Modified: trunk/dports/gnome/xchat-gnome/Portfile (134578 => 134579)


--- trunk/dports/gnome/xchat-gnome/Portfile	2015-03-30 21:01:14 UTC (rev 134578)
+++ trunk/dports/gnome/xchat-gnome/Portfile	2015-03-30 23:15:43 UTC (rev 134579)
@@ -27,7 +27,11 @@
 
 depends_build       port:pkgconfig \
                     port:intltool \
-                    port:gnome-doc-utils
+                    port:gnome-doc-utils \
+                    port:gnome-common \
+                    port:autoconf \
+                    port:automake \
+                    port:libtool
 
 depends_lib         port:libgnomeui \
                     port:libglade2 \
@@ -42,11 +46,20 @@
 
 patchfiles          patch-configure.diff
 
+# reconfigure using autogen.sh for intltool 0.51 compatibility
+
+post-patch {
+    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
+}
+
+configure.cmd       ./autogen.sh
+
 configure.python    ${prefix}/bin/python2.7
 configure.perl      ${prefix}/bin/perl5.16
 
 configure.args      --disable-mmx \
                     --disable-notification \
+                    --enable-compile-warnings=minimum \
                     --disable-scrollkeeper \
                     --disable-schemas-install
 

Added: trunk/dports/gnome/xchat-gnome/files/autogen.sh (0 => 134579)


--- trunk/dports/gnome/xchat-gnome/files/autogen.sh	                        (rev 0)
+++ trunk/dports/gnome/xchat-gnome/files/autogen.sh	2015-03-30 23:15:43 UTC (rev 134579)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="xchat-gnome"
+
+(test -f $srcdir/src/common/xchat.c) || {
+	echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+	echo " top-level $PKG_NAME directory"
+	exit 1
+}
+
+which gnome-autogen.sh || {
+	echo "You need to install gnome-common from the GNOME CVS"
+	exit 1
+}
+
+REQUIRED_AUTOCONF_VERSION=2.60 
+REQUIRED_AUTOMAKE_VERSION=1.9
+REQUIRED_INTLTOOL_VERSION=0.40.0
+. gnome-autogen.sh