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

     
    2323 # change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's
    2424 # main Makefile
    2525-LUADIR = /usr/local
    26 +LUADIR = /opt/local
     26+LUADIR = @PREFIX@
    2727 
    2828-CC = gcc
    2929+CC = MACOSX_DEPLOYMENT_TARGET="10.3" gcc-mp-4.2
  • files/patch-lib-config

     
    55 # change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's
    66 # main Makefile
    77-LUADIR = /usr/local
    8 +LUADIR = /opt/local
     8+LUADIR = @PREFIX@
    99 
    1010 # FORTRAN flags (used by blas, lapack, dcdflib, and fnlib)
    1111-FC = g77
  • files/patch-Makefile

     
    2121 INSTALL_LIB = "$(INSTALL_ROOT)\dll"
    2222 INSTALL_LUA = "$(INSTALL_ROOT)\lua"
    2323+  else #ifeq ($(TARGET), darwin)
    24 +INSTALL_ROOT = /opt/local
     24+INSTALL_ROOT = @PREFIX@
    2525+INSTALL_INC = $(INSTALL_ROOT)/include
    2626+INSTALL_LIB = $(INSTALL_ROOT)/lib
    2727+INSTALL_LUA = $(INSTALL_ROOT)/share/lua/5.1/numlua
  • Portfile

     
    2525                        sha1 8465209f95d12f1803a5f6995a2c9af51fdbb021 \
    2626                        rmd160 0f8461b7af617c5e1d4eb0395baef4ccefb7a9b9
    2727
     28depends_build-append    port:gcc42
    2829depends_lib-append      lib:fftw:fftw-3
    2930
    3031patchfiles              patch-Makefile \
     
    3738build.args             
    3839build.target           
    3940
    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         }
     41post-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
    4845}
    4946
    50 variant darwin i386 {
    51         depends_build-append port:gcc42
    52 
    53         post-patch {
    54                 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile
    55                 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/lib/config
    56                 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/src/Makefile
    57         }
    58 }
    59 
    6047destroot {
    6148        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    6249        file copy INSTALL LICENSE README TODO ${destroot}${prefix}/share/doc/${name}