[87866] trunk/dports/mail/signing-party
cal at macports.org
cal at macports.org
Fri Dec 9 16:43:19 PST 2011
Revision: 87866
http://trac.macports.org/changeset/87866
Author: cal at macports.org
Date: 2011-12-09 16:43:18 -0800 (Fri, 09 Dec 2011)
Log Message:
-----------
signing-party: UsingTheRightCompiler
Modified Paths:
--------------
trunk/dports/mail/signing-party/Portfile
Added Paths:
-----------
trunk/dports/mail/signing-party/files/
trunk/dports/mail/signing-party/files/gpgwrap-makefile-usingtherightcompiler.patch
trunk/dports/mail/signing-party/files/keyanalyze-makefile-usingtherightcompiler.patch
Modified: trunk/dports/mail/signing-party/Portfile
===================================================================
--- trunk/dports/mail/signing-party/Portfile 2011-12-10 00:01:47 UTC (rev 87865)
+++ trunk/dports/mail/signing-party/Portfile 2011-12-10 00:43:18 UTC (rev 87866)
@@ -23,6 +23,9 @@
sha1 072c306e8c63e205aff07b6c4165140a7d59cdba \
rmd160 cfbc658854e0e9f562bd31221eaa0e1a25bcb742
+patchfiles gpgwrap-makefile-usingtherightcompiler.patch \
+ keyanalyze-makefile-usingtherightcompiler.patch
+
use_configure no
depends_lib port:perl5.12 \
@@ -34,6 +37,11 @@
depends_run bin:gpg:gnupg \
port:dialog
+variant universal {}
+
+build.env-append CC=${configure.compiler} \
+ CFLAGS="${configure.cflags} [get_canonical_archflags]"
+
pre-build {
reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|" \
${worksrcpath}/caff/caff \
Added: trunk/dports/mail/signing-party/files/gpgwrap-makefile-usingtherightcompiler.patch
===================================================================
--- trunk/dports/mail/signing-party/files/gpgwrap-makefile-usingtherightcompiler.patch (rev 0)
+++ trunk/dports/mail/signing-party/files/gpgwrap-makefile-usingtherightcompiler.patch 2011-12-10 00:43:18 UTC (rev 87866)
@@ -0,0 +1,19 @@
+--- gpgwrap/src/Makefile.orig 2011-12-10 01:16:21.000000000 +0100
++++ gpgwrap/src/Makefile 2011-12-10 01:19:41.000000000 +0100
+@@ -1,4 +1,6 @@
+-CC=${DIET} gcc -s -Wall -O2 -fomit-frame-pointer
++CC ?= gcc
++CFLAGS ?= -Wall -O2
++CFLAGS += -s -fomit-frame-pointer
+ STRIP=strip -R .note -R .comment
+ RM=rm -f
+ TARGET=../bin/gpgwrap
+@@ -8,7 +10,7 @@
+ all: ${TARGET}
+
+ ${TARGET}: gpgwrap.c
+- ${CC} -o ${TARGET} gpgwrap.c
++ ${CC} ${CFLAGS} -o ${TARGET} gpgwrap.c
+ ${STRIP} ${TARGET} 2>/dev/null || true
+
+ clean:
Added: trunk/dports/mail/signing-party/files/keyanalyze-makefile-usingtherightcompiler.patch
===================================================================
--- trunk/dports/mail/signing-party/files/keyanalyze-makefile-usingtherightcompiler.patch (rev 0)
+++ trunk/dports/mail/signing-party/files/keyanalyze-makefile-usingtherightcompiler.patch 2011-12-10 00:43:18 UTC (rev 87866)
@@ -0,0 +1,9 @@
+--- keyanalyze/Makefile.orig 2011-12-10 01:23:39.000000000 +0100
++++ keyanalyze/Makefile 2011-12-10 01:23:55.000000000 +0100
+@@ -1,5 +1,5 @@
+ LDLIBS=-lpthread
+-CFLAGS=-O2 -W -Wall -g
++CFLAGS ?= -O2 -W -Wall -g
+
+ all: keyanalyze process_keys pgpring/pgpring
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111209/f7efad27/attachment.html>
More information about the macports-changes
mailing list