triangle: patch in the patch phase, not in the extract and configure phases
--- trunk/dports/science/triangle/Portfile 2010-06-02 01:15:37 UTC (rev 68354)
+++ trunk/dports/science/triangle/Portfile 2010-06-02 01:16:57 UTC (rev 68355)
@@ -28,12 +28,9 @@
extract.mkdir yes
-post-extract {
+post-patch {
reinplace "s/-DLINUX//" ${worksrcpath}/makefile
reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/makefile
-}
-
-post-configure {
reinplace "s|CC = cc|CC = ${configure.cc}|g" ${worksrcpath}/makefile
}