[26434] trunk/dports/devel/lua-numlua
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 22 21:29:23 PDT 2007
Revision: 26434
http://trac.macosforge.org/projects/macports/changeset/26434
Author: bfulgham at macports.org
Date: 2007-06-22 21:29:23 -0700 (Fri, 22 Jun 2007)
Log Message:
-----------
Update to be more compliant with MacPort standards. Remove some
unnecessary limitations on platform/architecture.
closes #12140
Modified Paths:
--------------
trunk/dports/devel/lua-numlua/Portfile
trunk/dports/devel/lua-numlua/files/patch-Makefile
trunk/dports/devel/lua-numlua/files/patch-lib-config
trunk/dports/devel/lua-numlua/files/patch-src-Makefile
Modified: trunk/dports/devel/lua-numlua/Portfile
===================================================================
--- trunk/dports/devel/lua-numlua/Portfile 2007-06-22 23:24:58 UTC (rev 26433)
+++ trunk/dports/devel/lua-numlua/Portfile 2007-06-23 04:29:23 UTC (rev 26434)
@@ -25,6 +25,7 @@
sha1 8465209f95d12f1803a5f6995a2c9af51fdbb021 \
rmd160 0f8461b7af617c5e1d4eb0395baef4ccefb7a9b9
+depends_build-append port:gcc42
depends_lib-append lib:fftw:fftw-3
patchfiles patch-Makefile \
@@ -37,26 +38,12 @@
build.args
build.target
-variant darwin powerpc {
- depends_build-append port:gcc41
-
- post-patch {
- reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile
- reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/lib/config
- reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/src/Makefile
- }
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/lib/config
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/Makefile
}
-variant darwin i386 {
- depends_build-append port:gcc42
-
- post-patch {
- reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile
- reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/lib/config
- reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/src/Makefile
- }
-}
-
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
file copy INSTALL LICENSE README TODO ${destroot}${prefix}/share/doc/${name}
Modified: trunk/dports/devel/lua-numlua/files/patch-Makefile
===================================================================
--- trunk/dports/devel/lua-numlua/files/patch-Makefile 2007-06-22 23:24:58 UTC (rev 26433)
+++ trunk/dports/devel/lua-numlua/files/patch-Makefile 2007-06-23 04:29:23 UTC (rev 26434)
@@ -21,7 +21,7 @@
INSTALL_LIB = "$(INSTALL_ROOT)\dll"
INSTALL_LUA = "$(INSTALL_ROOT)\lua"
+ else #ifeq ($(TARGET), darwin)
-+INSTALL_ROOT = /opt/local
++INSTALL_ROOT = @PREFIX@
+INSTALL_INC = $(INSTALL_ROOT)/include
+INSTALL_LIB = $(INSTALL_ROOT)/lib
+INSTALL_LUA = $(INSTALL_ROOT)/share/lua/5.1/numlua
Modified: trunk/dports/devel/lua-numlua/files/patch-lib-config
===================================================================
--- trunk/dports/devel/lua-numlua/files/patch-lib-config 2007-06-22 23:24:58 UTC (rev 26433)
+++ trunk/dports/devel/lua-numlua/files/patch-lib-config 2007-06-23 04:29:23 UTC (rev 26434)
@@ -5,7 +5,7 @@
# change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's
# main Makefile
-LUADIR = /usr/local
-+LUADIR = /opt/local
++LUADIR = @PREFIX@
# FORTRAN flags (used by blas, lapack, dcdflib, and fnlib)
-FC = g77
Modified: trunk/dports/devel/lua-numlua/files/patch-src-Makefile
===================================================================
--- trunk/dports/devel/lua-numlua/files/patch-src-Makefile 2007-06-22 23:24:58 UTC (rev 26433)
+++ trunk/dports/devel/lua-numlua/files/patch-src-Makefile 2007-06-23 04:29:23 UTC (rev 26434)
@@ -23,7 +23,7 @@
# change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's
# main Makefile
-LUADIR = /usr/local
-+LUADIR = /opt/local
++LUADIR = @PREFIX@
-CC = gcc
+CC = MACOSX_DEPLOYMENT_TARGET="10.3" gcc-mp-4.2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070622/57fdda72/attachment.html
More information about the macports-changes
mailing list