[79779] trunk/dports/mail/freepops
jmr at macports.org
jmr at macports.org
Sat Jun 25 11:59:16 PDT 2011
Revision: 79779
http://trac.macports.org/changeset/79779
Author: jmr at macports.org
Date: 2011-06-25 11:59:14 -0700 (Sat, 25 Jun 2011)
Log Message:
-----------
freepops: partly fix build
Modified Paths:
--------------
trunk/dports/mail/freepops/Portfile
trunk/dports/mail/freepops/files/patch-darwin
Modified: trunk/dports/mail/freepops/Portfile
===================================================================
--- trunk/dports/mail/freepops/Portfile 2011-06-25 15:41:47 UTC (rev 79778)
+++ trunk/dports/mail/freepops/Portfile 2011-06-25 18:59:14 UTC (rev 79779)
@@ -1,4 +1,5 @@
# $Id$
+
PortSystem 1.0
name freepops
@@ -20,10 +21,9 @@
checksums md5 71268cb9b05549be3db271014bcea5ca
platforms darwin
-depends_lib lib:libcurl.2:curl \
- lib:libexpat:expat \
- lib:libcrypto.0.9:openssl \
- lib:libz.1:zlib
+depends_lib port:curl \
+ port:expat \
+ port:openssl
patchfiles patch-darwin
@@ -31,19 +31,21 @@
file copy ${filespath}/${name}.sh.in ${worksrcpath}/${name}.sh
reinplace "s%@PREFIX@%${prefix}%g" \
${worksrcpath}/${name}.sh \
- ${worksrcpath}/configure.sh \
${worksrcpath}/doc/freepopsd.1 \
${worksrcpath}/src/freepops.h \
${worksrcpath}/src/lua/freepops.lua
+ reinplace "s|@ARCHFLAGS@|${configure.cc_archflags}|" \
+ ${worksrcpath}/configure.sh
}
configure.cmd ./configure.sh
configure.pre_args osx
-build.args WHERE=${prefix}/
+use_parallel_build no
+build.args WHERE=${prefix}/ \
+ H=
-destroot.args WHERE=${prefix}/
+destroot.args ${build.args}
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
xinstall -m 0755 ${worksrcpath}/${name}.sh ${destroot}${prefix}/etc/rc.d
}
-
Modified: trunk/dports/mail/freepops/files/patch-darwin
===================================================================
--- trunk/dports/mail/freepops/files/patch-darwin 2011-06-25 15:41:47 UTC (rev 79778)
+++ trunk/dports/mail/freepops/files/patch-darwin 2011-06-25 18:59:14 UTC (rev 79779)
@@ -29,24 +29,6 @@
$(H)rmdir $(PREFIX)share/man/man1/
$(H)rmdir $(PREFIX)share/doc/freepops/
$(H)rmdir $(PREFIX)share/freepops/lua/
-diff -ur ../freepops-0.0.18.orig/configure.sh ./configure.sh
---- ../freepops-0.0.18.orig/configure.sh Sat Sep 18 03:46:34 2004
-+++ ./configure.sh Tue Oct 5 23:04:58 2004
-@@ -51,10 +51,10 @@
- set_osx() {
- set_default
- OS=Darwin
--CFLAGS="$CFLAGS -I/sw/include -DMACOSX"
--HCFLAGS="$HCFLAGS -I/sw/include -DMACOSX"
--LDFLAGS="$LDFLAGS -L/usr/lib -L/sw/lib -bind_at_load -framework Carbon"
--HLDFLAGS="$HLDFLAGS -L/usr/lib -L/sw/lib -bind_at_load"
-+CFLAGS="$CFLAGS -I at PREFIX@/include -I/usr/X11R6/include -DMACOSX"
-+HCFLAGS="$HCFLAGS -I at PREFIX@/include -I/usr/X11R6/include -DMACOSX"
-+LDFLAGS="$LDFLAGS -L at PREFIX@/lib -L/usr/lib -L/usr/X11R6/lib -bind_at_load -framework Carbon"
-+HLDFLAGS="$HLDFLAGS -L at PREFIX@/lib -L/usr/lib -L/usr/X11R6/lib -bind_at_load"
- }
-
- set_osx_static() {
diff -ur ../freepops-0.0.18.orig/doc/freepopsd.1 ./doc/freepopsd.1
--- ../freepops-0.0.18.orig/doc/freepopsd.1 Tue Sep 14 05:17:47 2004
+++ ./doc/freepopsd.1 Tue Oct 5 23:06:48 2004
@@ -71,7 +53,7 @@
-lluabind -lgetdate -lmlex -lportablesocket -lbase64 \
-lregularexp -llog -llist \
- -L/sw/lib/ -lexpat -lcurl -lcrypto -lreadline -lhistory \
-+ -L$(PREFIX)/lib -L/usr/X11R6/lib -lexpat -lcurl -lcrypto -lreadline -lhistory \
++ -lexpat -lcurl -lcrypto -lreadline -lhistory \
#-lcurses #-lncurses
else
ifeq "$(OS)" "Windows"
@@ -83,7 +65,7 @@
LDFLAGS+=-L../modules/lib $(addprefix -l,$(LIBSTOLINK)) \
-lgetopt -lm \
- -lpthread -L/usr/lib -L/sw/lib -lexpat -lcurl \
-+ -lpthread -L$(PREFIX)/lib -L/usr/lib -L/usr/X11R6/lib -lexpat -lcurl \
++ -lpthread -lexpat -lcurl \
-lcrypto -ldl -lssl -lcrypto -lz
else
ifeq "$(OS)" "Darwin-static"
@@ -111,3 +93,48 @@
"./",
os.getenv("FREEPOPSLUA_PATH") or "./" ,
}
+--- configure.sh.orig 2004-09-18 20:46:34.000000000 +1000
++++ configure.sh 2011-06-25 18:28:17.000000000 +1000
+@@ -21,7 +21,6 @@
+ }
+
+ set_default() {
+-CC=gcc
+ LD=ld
+ AR=ar
+ STRIP=strip
+@@ -34,7 +33,7 @@
+ EXEEXTENSION=
+ STATICEXTENSION=.a
+ SHAREDEXTENSION=.so
+-CFLAGS="-O2 -g3 -Wall -DHAVE_CONFIG_H -I$PWD"
++CFLAGS="-O2 -Wall -DHAVE_CONFIG_H -I$PWD"
+ HCFLAGS=$CFLAGS
+ LDFLAGS=""
+ HLDFLAGS=$LDFLAGS
+@@ -51,10 +50,10 @@
+ set_osx() {
+ set_default
+ OS=Darwin
+-CFLAGS="$CFLAGS -I/sw/include -DMACOSX"
+-HCFLAGS="$HCFLAGS -I/sw/include -DMACOSX"
+-LDFLAGS="$LDFLAGS -L/usr/lib -L/sw/lib -bind_at_load -framework Carbon"
+-HLDFLAGS="$HLDFLAGS -L/usr/lib -L/sw/lib -bind_at_load"
++CFLAGS="$CFLAGS -DMACOSX @ARCHFLAGS@"
++HCFLAGS="$HCFLAGS -DMACOSX @ARCHFLAGS@"
++LDFLAGS="$LDFLAGS @ARCHFLAGS@ -bind_at_load -framework Carbon"
++HLDFLAGS="$HLDFLAGS @ARCHFLAGS@ -bind_at_load"
+ }
+
+ set_osx_static() {
+--- modules/src/curl_lua/Makefile.orig 2004-09-26 19:58:52.000000000 +1000
++++ modules/src/curl_lua/Makefile 2011-06-25 18:41:30.000000000 +1000
+@@ -57,7 +57,7 @@
+
+ curl_authopt.h:$(HEADER)
+ $(H)cat $(HEADER) | grep "CURLAUTH_" | \
+- sed "s/#define *CURL/{\"/" | sed "s/ *\/\*.*\*\///" | \
++ sed "s/#define *CURL/{\"/" | sed -E "s/ *\/\*.*\*?\/?//" | \
+ sed "s/ /\",/" | sed "s/$$/},/" > curl_authopt.h
+
+ curl_form.h: $(HEADER)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110625/c164ae5f/attachment.html>
More information about the macports-changes
mailing list