[110475] users/mojca/wxports/gis/grass/Portfile
mojca at macports.org
mojca at macports.org
Sat Aug 31 03:54:29 PDT 2013
Revision: 110475
https://trac.macports.org/changeset/110475
Author: mojca at macports.org
Date: 2013-08-31 03:54:29 -0700 (Sat, 31 Aug 2013)
Log Message:
-----------
mojca/grass: doesn't work with the python portgroup
Modified Paths:
--------------
users/mojca/wxports/gis/grass/Portfile
Modified: users/mojca/wxports/gis/grass/Portfile
===================================================================
--- users/mojca/wxports/gis/grass/Portfile 2013-08-31 10:38:38 UTC (rev 110474)
+++ users/mojca/wxports/gis/grass/Portfile 2013-08-31 10:54:29 UTC (rev 110475)
@@ -1,7 +1,6 @@
# $Id$
PortSystem 1.0
-PortGroup python27 1.0
PortGroup wxWidgets 1.0
name grass
@@ -24,6 +23,11 @@
wxWidgets.use wxPython-3.0
+# TODO
+# this port doesn't work with the python portgroup because the group changes too much
+# but it would make sense to fix this properly
+set python_bin ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
+
depends_build port:pkgconfig
depends_lib port:fftw-3 \
port:freetype \
@@ -203,9 +207,9 @@
post-patch {
reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" ${worksrcpath}/configure
- reinplace "s|@@PYTHON@@|${python.bin}|" ${worksrcpath}/lib/init/grass.src
+ reinplace "s|@@PYTHON@@|${python_bin}|" ${worksrcpath}/lib/init/grass.src
foreach f $python_scripts {
- reinplace "s|/usr/bin/env python|${python.bin}|" $f
+ reinplace "s|/usr/bin/env python|${python_bin}|" $f
}
}
@@ -248,7 +252,7 @@
build.target default
-build.args-append PYTHON=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
+build.args-append PYTHON=${python_bin}
variant mysql5 description {Add MySQL 5 support} {
depends_lib-append path:bin/mysql_config5:mysql5
@@ -306,6 +310,10 @@
--with-ffmpeglibs=${prefix}/lib
}
+# FIXME:
+# grass 4.6.3 is not compatible with wxPython 2.9 yet
+# the option names should be changed to allow building against wxPython 2.8 (either carbon or gtk variant)
+# it also needs to be guaranteed that the right architecture is chosen
variant wxwidgets description {Add WXWidgets support} {
depends_lib-append port:${wxWidgets.port}
configure.args-delete --disable-wxwidgets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130831/daa470a7/attachment-0001.html>
More information about the macports-changes
mailing list