[49394] trunk/dports/sysutils/btrfs-progs

jmr at macports.org jmr at macports.org
Wed Apr 8 15:55:28 PDT 2009


Revision: 49394
          http://trac.macports.org/changeset/49394
Author:   jmr at macports.org
Date:     2009-04-08 15:55:27 -0700 (Wed, 08 Apr 2009)
Log Message:
-----------
btrfs-progs: reinplace with $prefix instead of hardcoding /opt/local in a patch, and also replace gcc with ${configure.cc}

Modified Paths:
--------------
    trunk/dports/sysutils/btrfs-progs/Portfile

Removed Paths:
-------------
    trunk/dports/sysutils/btrfs-progs/files/patch-Makefile.diff

Modified: trunk/dports/sysutils/btrfs-progs/Portfile
===================================================================
--- trunk/dports/sysutils/btrfs-progs/Portfile	2009-04-08 22:52:52 UTC (rev 49393)
+++ trunk/dports/sysutils/btrfs-progs/Portfile	2009-04-08 22:55:27 UTC (rev 49394)
@@ -33,9 +33,15 @@
 		patch-volumes.c.diff \
 		patch-btrfsck.c.diff \
 		patch-mkfs.c.diff \
-		patch-btrfs-image.c.diff \
-		patch-Makefile.diff
+		patch-btrfs-image.c.diff
 
+post-patch {
+    reinplace "s|CC=gcc|CC=${configure.cc}|g" \
+        ${worksrcpath}/Makefile
+    reinplace "s|prefix ?= /usr/local|prefix = ${prefix}|g" \
+        ${worksrcpath}/Makefile
+}
+
 use_configure	no
 
 build.post_args	LDFLAGS=-L${prefix}/lib

Deleted: trunk/dports/sysutils/btrfs-progs/files/patch-Makefile.diff
===================================================================
--- trunk/dports/sysutils/btrfs-progs/files/patch-Makefile.diff	2009-04-08 22:52:52 UTC (rev 49393)
+++ trunk/dports/sysutils/btrfs-progs/files/patch-Makefile.diff	2009-04-08 22:55:27 UTC (rev 49394)
@@ -1,11 +0,0 @@
---- Makefile.orig	2009-02-15 14:05:19.000000000 +0100
-+++ Makefile	2009-02-15 15:25:10.000000000 +0100
-@@ -11,7 +11,7 @@
- DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
- 
- INSTALL= install
--prefix ?= /usr/local
-+prefix ?= /opt/local
- bindir = $(prefix)/bin
- LIBS=-luuid
- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090408/9306eee4/attachment.html>


More information about the macports-changes mailing list