[42687] trunk/dports/irc/ii
toby at macports.org
toby at macports.org
Sat Nov 29 09:55:28 PST 2008
Revision: 42687
http://trac.macports.org/changeset/42687
Author: toby at macports.org
Date: 2008-11-29 09:55:28 -0800 (Sat, 29 Nov 2008)
Log Message:
-----------
enable +universal
Modified Paths:
--------------
trunk/dports/irc/ii/Portfile
Added Paths:
-----------
trunk/dports/irc/ii/files/
trunk/dports/irc/ii/files/patch-config.mk
Modified: trunk/dports/irc/ii/Portfile
===================================================================
--- trunk/dports/irc/ii/Portfile 2008-11-29 17:54:07 UTC (rev 42686)
+++ trunk/dports/irc/ii/Portfile 2008-11-29 17:55:28 UTC (rev 42687)
@@ -19,6 +19,12 @@
sha1 56dfb24295984feacb4ad87e0678dca32c7fec7d \
rmd160 4deaa4737e7d299be13303bbb5ae370aea3bf81c
-use_configure no
-build.args PREFIX=${prefix}
-destroot.args PREFIX=${prefix}
+patchfiles patch-config.mk
+
+configure.cmd true
+post-configure {
+ reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/config.mk
+ reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/config.mk
+ reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/config.mk
+ reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/config.mk
+}
Added: trunk/dports/irc/ii/files/patch-config.mk
===================================================================
--- trunk/dports/irc/ii/files/patch-config.mk (rev 0)
+++ trunk/dports/irc/ii/files/patch-config.mk 2008-11-29 17:55:28 UTC (rev 42687)
@@ -0,0 +1,30 @@
+--- config.mk.orig 2008-08-09 04:47:33.000000000 -0700
++++ config.mk 2008-11-29 09:53:59.000000000 -0800
+@@ -1,7 +1,7 @@
+ # Customize to fit your system
+
+ # paths
+-PREFIX = /usr/local
++PREFIX = __PREFIX__
+ BINDIR = ${PREFIX}/bin
+ MANDIR = ${PREFIX}/share/man
+ MAN1DIR = ${MANDIR}/man1
+@@ -15,13 +15,13 @@
+ VERSION = 1.4
+
+ # includes and libs
+-INCLUDES = -I. -I${INCDIR} -I/usr/include
+-LIBS = -L${LIBDIR} -L/usr/lib -lc
++INCLUDES =
++LIBS =
+ # uncomment and comment other variables for compiling on Solaris
+ #LIBS = -L${LIBDIR} -L/usr/lib -lc -lsocket -lnsl
+ #CFLAGS = -g ${INCLUDES} -DVERSION=\"${VERSION}\"
+
+ # compiler
+-CC = cc
+-CFLAGS = -g -O0 -W -Wall ${INCLUDES} -DVERSION=\"${VERSION}\"
+-LDFLAGS = ${LIBS}
++CC = __CC__
++CFLAGS = -g __CFLAGS__ -W -Wall ${INCLUDES} -DVERSION=\"${VERSION}\"
++LDFLAGS = __LDFLAGS__ ${LIBS}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081129/6cf9b128/attachment.html>
More information about the macports-changes
mailing list