Ticket #12140: lua-numlua-patch.diff
File lua-numlua-patch.diff, 2.7 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago) |
---|
-
files/patch-src-Makefile
23 23 # change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's 24 24 # main Makefile 25 25 -LUADIR = /usr/local 26 +LUADIR = /opt/local26 +LUADIR = @PREFIX@ 27 27 28 28 -CC = gcc 29 29 +CC = MACOSX_DEPLOYMENT_TARGET="10.3" gcc-mp-4.2 -
files/patch-lib-config
5 5 # change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's 6 6 # main Makefile 7 7 -LUADIR = /usr/local 8 +LUADIR = /opt/local8 +LUADIR = @PREFIX@ 9 9 10 10 # FORTRAN flags (used by blas, lapack, dcdflib, and fnlib) 11 11 -FC = g77 -
files/patch-Makefile
21 21 INSTALL_LIB = "$(INSTALL_ROOT)\dll" 22 22 INSTALL_LUA = "$(INSTALL_ROOT)\lua" 23 23 + else #ifeq ($(TARGET), darwin) 24 +INSTALL_ROOT = /opt/local24 +INSTALL_ROOT = @PREFIX@ 25 25 +INSTALL_INC = $(INSTALL_ROOT)/include 26 26 +INSTALL_LIB = $(INSTALL_ROOT)/lib 27 27 +INSTALL_LUA = $(INSTALL_ROOT)/share/lua/5.1/numlua -
Portfile
25 25 sha1 8465209f95d12f1803a5f6995a2c9af51fdbb021 \ 26 26 rmd160 0f8461b7af617c5e1d4eb0395baef4ccefb7a9b9 27 27 28 depends_build-append port:gcc42 28 29 depends_lib-append lib:fftw:fftw-3 29 30 30 31 patchfiles patch-Makefile \ … … 37 38 build.args 38 39 build.target 39 40 40 variant darwin powerpc { 41 depends_build-append port:gcc41 42 43 post-patch { 44 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile 45 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/lib/config 46 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/src/Makefile 47 } 41 post-patch { 42 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile 43 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/lib/config 44 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/Makefile 48 45 } 49 46 50 variant darwin i386 {51 depends_build-append port:gcc4252 53 post-patch {54 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile55 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/lib/config56 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/src/Makefile57 }58 }59 60 47 destroot { 61 48 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 62 49 file copy INSTALL LICENSE README TODO ${destroot}${prefix}/share/doc/${name}