Revision: 38837 http://trac.macosforge.org/projects/macports/changeset/38837 Author: ryandesign@macports.org Date: 2008-08-01 02:18:30 -0700 (Fri, 01 Aug 2008) Log Message: ----------- lmarbles: * change manpage installation location to fix mtree violation * use ${applications_dir} instead of assuming /Applications/MacPorts * create symlink using tcl ln command instead of using system * remove unnecessary configure flags Modified Paths: -------------- trunk/dports/games/lmarbles/Portfile Modified: trunk/dports/games/lmarbles/Portfile =================================================================== --- trunk/dports/games/lmarbles/Portfile 2008-08-01 09:09:55 UTC (rev 38836) +++ trunk/dports/games/lmarbles/Portfile 2008-08-01 09:18:30 UTC (rev 38837) @@ -26,15 +26,20 @@ depends_lib port:libsdl \ port:libsdl_mixer -configure.cflags-append "-I${prefix}/include" -configure.args --enable-ascii \ +configure.args --mandir=${prefix}/share/man \ + --enable-ascii \ --with-profile-path=${prefix}/var/lib/games/ \ --disable-sdltest +# Can be removed once MacPorts 1.7.0 is released +if {![info exists applications_dir]} { + set applications_dir /Applications/MacPorts +} + platform darwin { pre-destroot { - xinstall -d -m 755 ${destroot}/Applications/MacPorts/LMarbles.app/Contents/MacOS - system "ln -s ${prefix}/bin/lmarbles \ - ${destroot}/Applications/MacPorts/LMarbles.app/Contents/MacOS/LMarbles" + xinstall -d ${destroot}${applications_dir}/LMarbles.app/Contents/MacOS + ln -s ${prefix}/bin/lmarbles \ + ${destroot}${applications_dir}/LMarbles.app/Contents/MacOS/LMarbles } }
participants (1)
-
ryandesign@macports.org