[38906] trunk/dports/aqua/fltk/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Aug 2 02:22:20 PDT 2008


Revision: 38906
          http://trac.macosforge.org/projects/macports/changeset/38906
Author:   ryandesign at macports.org
Date:     2008-08-02 02:22:19 -0700 (Sat, 02 Aug 2008)
Log Message:
-----------
fltk: use ${applications_dir}

Modified Paths:
--------------
    trunk/dports/aqua/fltk/Portfile

Modified: trunk/dports/aqua/fltk/Portfile
===================================================================
--- trunk/dports/aqua/fltk/Portfile	2008-08-02 09:16:37 UTC (rev 38905)
+++ trunk/dports/aqua/fltk/Portfile	2008-08-02 09:22:19 UTC (rev 38906)
@@ -36,8 +36,13 @@
                 port:libpng \
                 port:zlib
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 post-patch {
-    reinplace "s|/Applications|/Applications/MacPorts/${name}|g" \
+    reinplace "s|/Applications|${applications_dir}/${name}|g" \
         ${worksrcpath}/fluid/Makefile \
         ${worksrcpath}/test/Makefile
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080802/00682b5e/attachment-0001.html 


More information about the macports-changes mailing list