Changeset 79779
- Timestamp:
- 06/25/11 11:59:14 (4 years ago)
- Location:
- trunk/dports/mail/freepops
- Files:
-
- 2 edited
-
Portfile (modified) (3 diffs)
-
files/patch-darwin (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/mail/freepops/Portfile
r69520 r79779 1 1 # $Id$ 2 2 3 PortSystem 1.0 3 4 … … 21 22 platforms darwin 22 23 23 depends_lib lib:libcurl.2:curl \ 24 lib:libexpat:expat \ 25 lib:libcrypto.0.9:openssl \ 26 lib:libz.1:zlib 24 depends_lib port:curl \ 25 port:expat \ 26 port:openssl 27 27 28 28 patchfiles patch-darwin … … 32 32 reinplace "s%@PREFIX@%${prefix}%g" \ 33 33 ${worksrcpath}/${name}.sh \ 34 ${worksrcpath}/configure.sh \35 34 ${worksrcpath}/doc/freepopsd.1 \ 36 35 ${worksrcpath}/src/freepops.h \ 37 36 ${worksrcpath}/src/lua/freepops.lua 37 reinplace "s|@ARCHFLAGS@|${configure.cc_archflags}|" \ 38 ${worksrcpath}/configure.sh 38 39 } 39 40 configure.cmd ./configure.sh 40 41 configure.pre_args osx 41 42 42 build.args WHERE=${prefix}/ 43 use_parallel_build no 44 build.args WHERE=${prefix}/ \ 45 H= 43 46 44 destroot.args WHERE=${prefix}/47 destroot.args ${build.args} 45 48 post-destroot { 46 49 xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d 47 50 xinstall -m 0755 ${worksrcpath}/${name}.sh ${destroot}${prefix}/etc/rc.d 48 51 } 49 -
trunk/dports/mail/freepops/files/patch-darwin
r21488 r79779 30 30 $(H)rmdir $(PREFIX)share/doc/freepops/ 31 31 $(H)rmdir $(PREFIX)share/freepops/lua/ 32 diff -ur ../freepops-0.0.18.orig/configure.sh ./configure.sh33 --- ../freepops-0.0.18.orig/configure.sh Sat Sep 18 03:46:34 200434 +++ ./configure.sh Tue Oct 5 23:04:58 200435 @@ -51,10 +51,10 @@36 set_osx() {37 set_default38 OS=Darwin39 -CFLAGS="$CFLAGS -I/sw/include -DMACOSX"40 -HCFLAGS="$HCFLAGS -I/sw/include -DMACOSX"41 -LDFLAGS="$LDFLAGS -L/usr/lib -L/sw/lib -bind_at_load -framework Carbon"42 -HLDFLAGS="$HLDFLAGS -L/usr/lib -L/sw/lib -bind_at_load"43 +CFLAGS="$CFLAGS -I@PREFIX@/include -I/usr/X11R6/include -DMACOSX"44 +HCFLAGS="$HCFLAGS -I@PREFIX@/include -I/usr/X11R6/include -DMACOSX"45 +LDFLAGS="$LDFLAGS -L@PREFIX@/lib -L/usr/lib -L/usr/X11R6/lib -bind_at_load -framework Carbon"46 +HLDFLAGS="$HLDFLAGS -L@PREFIX@/lib -L/usr/lib -L/usr/X11R6/lib -bind_at_load"47 }48 49 set_osx_static() {50 32 diff -ur ../freepops-0.0.18.orig/doc/freepopsd.1 ./doc/freepopsd.1 51 33 --- ../freepops-0.0.18.orig/doc/freepopsd.1 Tue Sep 14 05:17:47 2004 … … 72 54 -lregularexp -llog -llist \ 73 55 - -L/sw/lib/ -lexpat -lcurl -lcrypto -lreadline -lhistory \ 74 + - L$(PREFIX)/lib -L/usr/X11R6/lib -lexpat -lcurl -lcrypto -lreadline -lhistory \56 + -lexpat -lcurl -lcrypto -lreadline -lhistory \ 75 57 #-lcurses #-lncurses 76 58 else … … 84 66 -lgetopt -lm \ 85 67 - -lpthread -L/usr/lib -L/sw/lib -lexpat -lcurl \ 86 + -lpthread - L$(PREFIX)/lib -L/usr/lib -L/usr/X11R6/lib -lexpat -lcurl \68 + -lpthread -lexpat -lcurl \ 87 69 -lcrypto -ldl -lssl -lcrypto -lz 88 70 else … … 112 94 os.getenv("FREEPOPSLUA_PATH") or "./" , 113 95 } 96 --- configure.sh.orig 2004-09-18 20:46:34.000000000 +1000 97 +++ configure.sh 2011-06-25 18:28:17.000000000 +1000 98 @@ -21,7 +21,6 @@ 99 } 100 101 set_default() { 102 -CC=gcc 103 LD=ld 104 AR=ar 105 STRIP=strip 106 @@ -34,7 +33,7 @@ 107 EXEEXTENSION= 108 STATICEXTENSION=.a 109 SHAREDEXTENSION=.so 110 -CFLAGS="-O2 -g3 -Wall -DHAVE_CONFIG_H -I$PWD" 111 +CFLAGS="-O2 -Wall -DHAVE_CONFIG_H -I$PWD" 112 HCFLAGS=$CFLAGS 113 LDFLAGS="" 114 HLDFLAGS=$LDFLAGS 115 @@ -51,10 +50,10 @@ 116 set_osx() { 117 set_default 118 OS=Darwin 119 -CFLAGS="$CFLAGS -I/sw/include -DMACOSX" 120 -HCFLAGS="$HCFLAGS -I/sw/include -DMACOSX" 121 -LDFLAGS="$LDFLAGS -L/usr/lib -L/sw/lib -bind_at_load -framework Carbon" 122 -HLDFLAGS="$HLDFLAGS -L/usr/lib -L/sw/lib -bind_at_load" 123 +CFLAGS="$CFLAGS -DMACOSX @ARCHFLAGS@" 124 +HCFLAGS="$HCFLAGS -DMACOSX @ARCHFLAGS@" 125 +LDFLAGS="$LDFLAGS @ARCHFLAGS@ -bind_at_load -framework Carbon" 126 +HLDFLAGS="$HLDFLAGS @ARCHFLAGS@ -bind_at_load" 127 } 128 129 set_osx_static() { 130 --- modules/src/curl_lua/Makefile.orig 2004-09-26 19:58:52.000000000 +1000 131 +++ modules/src/curl_lua/Makefile 2011-06-25 18:41:30.000000000 +1000 132 @@ -57,7 +57,7 @@ 133 134 curl_authopt.h:$(HEADER) 135 $(H)cat $(HEADER) | grep "CURLAUTH_" | \ 136 - sed "s/#define *CURL/{\"/" | sed "s/ *\/\*.*\*\///" | \ 137 + sed "s/#define *CURL/{\"/" | sed -E "s/ *\/\*.*\*?\/?//" | \ 138 sed "s/ /\",/" | sed "s/$$/},/" > curl_authopt.h 139 140 curl_form.h: $(HEADER)
Note: See TracChangeset
for help on using the changeset viewer.

