[74883] trunk/dports/devel/astyle

adfernandes at macports.org adfernandes at macports.org
Wed Jan 5 08:04:42 PST 2011


Revision: 74883
          http://trac.macports.org/changeset/74883
Author:   adfernandes at macports.org
Date:     2011-01-05 08:04:34 -0800 (Wed, 05 Jan 2011)
Log Message:
-----------
devel/astyle : fix hardcoded '/opt/local' to PREFIX in Makefile patch

Modified Paths:
--------------
    trunk/dports/devel/astyle/Portfile
    trunk/dports/devel/astyle/files/patch-Makefile.diff

Modified: trunk/dports/devel/astyle/Portfile
===================================================================
--- trunk/dports/devel/astyle/Portfile	2011-01-05 12:29:53 UTC (rev 74882)
+++ trunk/dports/devel/astyle/Portfile	2011-01-05 16:04:34 UTC (rev 74883)
@@ -5,6 +5,7 @@
 
 name              astyle
 version           2.01
+revision          1
 categories        devel
 platforms         darwin
 maintainers       wyuenho openmaintainer
@@ -26,7 +27,8 @@
 use_configure     no
 universal_variant no
 build.target      release
-destroot.destdir  DESTDIR=${destroot}${prefix} DESTROOT=${destroot}
+build.env-append  PREFIX=${prefix}
+destroot.destdir  PREFIX=${prefix} DESTROOT=${destroot} DESTDIR=${destroot}${prefix}
 
 variant lib description {Build and install the libraries} {
     build.target-append shared static

Modified: trunk/dports/devel/astyle/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/astyle/files/patch-Makefile.diff	2011-01-05 12:29:53 UTC (rev 74882)
+++ trunk/dports/devel/astyle/files/patch-Makefile.diff	2011-01-05 16:04:34 UTC (rev 74883)
@@ -12,7 +12,7 @@
  # set prefix if not defined on the command line
  ifndef prefix
 -    prefix=/usr
-+    prefix=/opt/local
++    prefix=$(PREFIX)
  endif
  SYSCONF_PATH=$(prefix)/share/doc/astyle
  # the path was changed in release 2.01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110105/e87f7429/attachment.html>


More information about the macports-changes mailing list