[42689] trunk/dports/sysutils/tmux

toby at macports.org toby at macports.org
Sat Nov 29 10:12:09 PST 2008


Revision: 42689
          http://trac.macports.org/changeset/42689
Author:   toby at macports.org
Date:     2008-11-29 10:12:09 -0800 (Sat, 29 Nov 2008)
Log Message:
-----------
more +universal

Modified Paths:
--------------
    trunk/dports/sysutils/tmux/Portfile
    trunk/dports/sysutils/tmux/files/GNUmakefile.diff

Modified: trunk/dports/sysutils/tmux/Portfile
===================================================================
--- trunk/dports/sysutils/tmux/Portfile	2008-11-29 18:00:50 UTC (rev 42688)
+++ trunk/dports/sysutils/tmux/Portfile	2008-11-29 18:12:09 UTC (rev 42689)
@@ -21,6 +21,10 @@
 
 patchfiles       GNUmakefile.diff
 
-configure {
+configure.cmd    true
+post-configure {
 	reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/GNUmakefile"
+	reinplace "s|__CC__|${configure.cc}|" "${worksrcpath}/GNUmakefile"
+	reinplace "s|__CFLAGS__|${configure.cflags}|" "${worksrcpath}/GNUmakefile"
+	reinplace "s|__LDFLAGS__|${configure.ldflags}|" "${worksrcpath}/GNUmakefile"
 }

Modified: trunk/dports/sysutils/tmux/files/GNUmakefile.diff
===================================================================
--- trunk/dports/sysutils/tmux/files/GNUmakefile.diff	2008-11-29 18:00:50 UTC (rev 42688)
+++ trunk/dports/sysutils/tmux/files/GNUmakefile.diff	2008-11-29 18:12:09 UTC (rev 42689)
@@ -1,16 +1,24 @@
 --- GNUmakefile.orig	2008-09-25 23:45:25.000000000 -0700
-+++ GNUmakefile	2008-11-23 05:39:22.000000000 -0800
-@@ -36,7 +36,7 @@
++++ GNUmakefile	2008-11-29 10:08:06.000000000 -0800
+@@ -35,9 +35,9 @@
+       window-scroll.c window-more.c window-copy.c options.c paste.c \
        tty.c tty-keys.c tty-write.c colour.c utf8.c
  
- CC?= gcc
+-CC?= gcc
 -INCDIRS+= -I. -I-
+-CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
++CC= __CC__
 +INCDIRS+= -I.
- CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
++CFLAGS+= __CFLAGS__ -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
  ifdef DEBUG
  CFLAGS+= -g -ggdb -DDEBUG
-@@ -51,11 +51,11 @@
- LDFLAGS+=
+ LDFLAGS+= -rdynamic
+@@ -48,14 +48,14 @@
+ CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
+ CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
+ 
+-LDFLAGS+=
++LDFLAGS+= __LDFLAGS__
  LIBS+= -lncurses
  
 -PREFIX?= /usr/local
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081129/c4e420c1/attachment-0001.html>


More information about the macports-changes mailing list