[84138] trunk/dports/games/svinepalsen/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Sep 19 04:44:13 PDT 2011


Revision: 84138
          http://trac.macports.org/changeset/84138
Author:   ryandesign at macports.org
Date:     2011-09-19 04:44:13 -0700 (Mon, 19 Sep 2011)
Log Message:
-----------
svinepalsen: simplify by using worksrcdir

Modified Paths:
--------------
    trunk/dports/games/svinepalsen/Portfile

Modified: trunk/dports/games/svinepalsen/Portfile
===================================================================
--- trunk/dports/games/svinepalsen/Portfile	2011-09-19 11:38:31 UTC (rev 84137)
+++ trunk/dports/games/svinepalsen/Portfile	2011-09-19 11:44:13 UTC (rev 84138)
@@ -41,7 +41,8 @@
 		port:libsdl_ttf \
 		port:smpeg
 
-configure.dir	${workpath}/${name}
+worksrcdir	${name}
+
 configure.cppflags-append	'-I${prefix}/include/smpeg'
 configure.args	--disable-sdltest
 
@@ -53,15 +54,12 @@
 		${configure.dir}/src/svinepalsen.cc
 }
 
-build.dir	${configure.dir}
 build.env	CPPFLAGS="-I${prefix}/include -I${prefix}/include/smpeg" LDFLAGS="-L${prefix}/lib"
 
-destroot.dir	${build.dir}
-
 post-destroot	{
 	file mkdir ${destroot}${prefix}/share/ \
 		${destroot}${prefix}/share/doc/${name}
 	file copy ${workpath}/data ${destroot}${prefix}/share/${name}
-	file copy ${build.dir}/AUTHORS ${build.dir}/README ${build.dir}/TODO \
+	xinstall -m 644 -W ${worksrcpath} AUTHORS README TODO \
 		${destroot}${prefix}/share/doc/${name}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110919/ca398b50/attachment-0001.html>


More information about the macports-changes mailing list