[57787] users

and.damore at macports.org and.damore at macports.org
Wed Sep 16 10:00:21 PDT 2009


Revision: 57787
          http://trac.macports.org/changeset/57787
Author:   and.damore at macports.org
Date:     2009-09-16 10:00:20 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
user directory created

Added Paths:
-----------
    users/anddam/
    users/anddam/lua-numlua/
    users/anddam/lua-numlua/Portfile
    users/anddam/lua-numlua/files/
    users/anddam/lua-numlua/files/patch-Makefile
    users/anddam/lua-numlua/files/patch-lib-Makefile
    users/anddam/lua-numlua/files/patch-lib-config
    users/anddam/lua-numlua/files/patch-src-Makefile

Added: users/anddam/lua-numlua/Portfile
===================================================================
--- users/anddam/lua-numlua/Portfile	                        (rev 0)
+++ users/anddam/lua-numlua/Portfile	2009-09-16 17:00:20 UTC (rev 57787)
@@ -0,0 +1,71 @@
+# $Id$
+
+PortSystem 1.0
+
+name                    lua-numlua
+version                 0.2.1
+revision                0
+categories              devel
+platforms               darwin
+maintainers             bfulgham
+description             Numerical package for the Lua programming language.
+long_description        ${description}  It includes support for complex \
+            numbers, multidimensional matrices, random generation \
+            and special functions.  Much of the routines are \
+            simple wrappers for the stable and well-known \
+            libraries from Netlib (http://www.netlib.org).
+
+homepage                http://luaforge.net/projects/numlua
+set luaforge_release    2566
+master_sites            http://luaforge.net/frs/download.php/${luaforge_release}
+distname                numlua-${version}
+worksrcdir              numlua
+
+use_configure       no
+
+checksums           md5     c4d0ce508e7f2ec2754242f2816f4cfc \
+                    sha1    e7c5fb14ebaa92b1ae5bef4cbe303644b9fe5252 \
+                    rmd160  6238e6b79cd446c47a676c4bcb3afa8fd41c42a6
+
+depends_build-append    port:lua \
+                        port:gcc43
+depends_lib-append      lib:fftw:fftw-3 
+
+patchfiles              patch-Makefile \
+                        patch-lib-config \
+                        patch-lib-Makefile \
+                        patch-src-Makefile
+
+build.type      gnu
+build.cmd       cd lib && make && cd ../src && make && cd ..
+build.args      
+build.target        
+
+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
+}
+
+destroot {
+#   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+#   file copy INSTALL LICENSE README TODO ${destroot}${prefix}/share/doc/${name}
+#
+#   # Binaries
+#   xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
+#   foreach lib [glob src/*.so] {
+#       xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1
+#   }
+#
+#   # Lua libraries
+#   xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1
+#   foreach luadat [glob lua/*.lua] {
+#       xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1
+#   }
+#   
+#   # Lua includes
+#   xinstall -m 755 -d ${destroot}${prefix}/include/lua5.1
+#   foreach inc [glob src/*.h] {
+#       xinstall -m 0644 ${inc} ${destroot}${prefix}/include/lua5.1
+#   }
+}


Property changes on: users/anddam/lua-numlua/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: users/anddam/lua-numlua/files/patch-Makefile
===================================================================
--- users/anddam/lua-numlua/files/patch-Makefile	                        (rev 0)
+++ users/anddam/lua-numlua/files/patch-Makefile	2009-09-16 17:00:20 UTC (rev 57787)
@@ -0,0 +1,48 @@
+--- Makefile.orig	2009-09-16 17:29:57.000000000 +0200
++++ Makefile	2009-09-16 17:36:06.000000000 +0200
+@@ -3,8 +3,8 @@
+ # modify src/Makefile to your taste
+ # $Id: Makefile,v 1.3 2006-09-11 02:27:11 carvalho Exp $
+ 
+-# linux | win32 : edit src/Makefile accordingly
+-TARGET = linux
++# linux | win32 | darwin : edit src/Makefile accordingly
++TARGET = darwin
+ 
+ # these are based on default settings in luaconf.h
+ ifeq ($(TARGET), linux)
+@@ -13,10 +13,17 @@
+ INSTALL_LIB = $(INSTALL_ROOT)/lib/lua/5.1
+ INSTALL_LUA = $(INSTALL_ROOT)/share/lua/5.1/numlua
+ else
++  ifeq ($(TARGET), win32)
+ INSTALL_ROOT = C:\\Program Files\\Lua51
+ INSTALL_INC = $(INSTALL_ROOT)\\include
+ INSTALL_LIB = $(INSTALL_ROOT)
+ INSTALL_LUA = $(INSTALL_ROOT)\\lua\\numlua
++  else #ifeq ($(TARGET), darwin)
++INSTALL_ROOT = @PREFIX@
++INSTALL_INC = $(INSTALL_ROOT)/include
++INSTALL_LIB = $(INSTALL_ROOT)/lib
++INSTALL_LUA = $(INSTALL_ROOT)/share/lua/5.1/numlua
++  endif
+ endif
+ 
+ INSTALL = cp
+@@ -37,11 +44,11 @@
+ 	cd src; make $@
+ 
+ install : all
+-	mkdir -p "$(INSTALL_ROOT)"
+-	mkdir -p $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_LUA)
+-	cd src; $(INSTALL) $(TO_INC) $(INSTALL_INC)
+-	cd src; $(INSTALL) $(TO_LIB) $(INSTALL_LIB)
+-	cd lua; $(INSTALL) $(TO_LUA) $(INSTALL_LUA)
++	mkdir -p "$(DESTDIR)$(INSTALL_ROOT)"
++	mkdir -p $(DESTDIR)$(INSTALL_INC) $(DESTDIR)$(INSTALL_LIB) $(DESTDIR)$(INSTALL_LUA)
++	cd src; $(INSTALL) $(TO_INC) $(DESTDIR)$(INSTALL_INC)
++	cd src; $(INSTALL) $(TO_LIB) $(DESTDIR)$(INSTALL_LIB)
++	cd lua; $(INSTALL) $(TO_LUA) $(DESTDIR)$(INSTALL_LUA)
+ 
+ lib :
+ 	cd $@; make

Added: users/anddam/lua-numlua/files/patch-lib-Makefile
===================================================================
--- users/anddam/lua-numlua/files/patch-lib-Makefile	                        (rev 0)
+++ users/anddam/lua-numlua/files/patch-lib-Makefile	2009-09-16 17:00:20 UTC (rev 57787)
@@ -0,0 +1,12 @@
+--- lib/Makefile.orig	2009-09-16 17:40:23.000000000 +0200
++++ lib/Makefile	2009-09-16 17:43:23.000000000 +0200
+@@ -1,7 +1,8 @@
+ # Top makefile for netlib libs
+ # $Id :$
+ 
+-LIBS = libdcdflib.a libfnlib.a libranlib.a libblas.a liblapack.a
++#LIBS = libdcdflib.a libfnlib.a libranlib.a libblas.a liblapack.a
++LIBS = libdcdflib.a libfnlib.a libranlib.a
+ NOLAPACK = libdcdflib.a libfnlib.a libranlib.a libblas.a
+ NOBLAS = libdcdflib.a libfnlib.a libranlib.a
+ MAKE = make

Added: users/anddam/lua-numlua/files/patch-lib-config
===================================================================
--- users/anddam/lua-numlua/files/patch-lib-config	                        (rev 0)
+++ users/anddam/lua-numlua/files/patch-lib-config	2009-09-16 17:00:20 UTC (rev 57787)
@@ -0,0 +1,20 @@
+--- lib/config.orig	2009-09-16 17:40:27.000000000 +0200
++++ lib/config	2009-09-16 17:42:14.000000000 +0200
+@@ -3,14 +3,14 @@
+ 
+ # change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's
+ # main Makefile
+-LUADIR = /usr
++LUADIR = @PREFIX@
+ 
+ # FORTRAN flags (used by blas, lapack, dcdflib, and fnlib)
+-FC = g77
++FC = gfortran-mp-4.3
+ FFLAGS = -fno-f2c -funroll-all-loops -fomit-frame-pointer -O
+ 
+ # C flags (used by ranlib)
+-CC = gcc
++CC = gcc-mp-4.3
+ CFLAGS = -W -Wall -pedantic
+ OPTFLAGS = -fomit-frame-pointer -O2
+ INCFLAGS = -I../../src -I$(LUADIR)/include/lua5.1

Added: users/anddam/lua-numlua/files/patch-src-Makefile
===================================================================
--- users/anddam/lua-numlua/files/patch-src-Makefile	                        (rev 0)
+++ users/anddam/lua-numlua/files/patch-src-Makefile	2009-09-16 17:00:20 UTC (rev 57787)
@@ -0,0 +1,79 @@
+--- src/Makefile.orig	2007-03-18 20:05:34.000000000 +0100
++++ src/Makefile	2009-09-16 17:49:40.000000000 +0200
+@@ -1,8 +1,8 @@
+-# Makefile for numlua
++e# Makefile for numlua
+ # $Id: Makefile,v 1.8 2006-09-11 02:25:38 carvalho Exp $
+ 
+-# linux | win32
+-TARGET = linux
++# linux | win32 | darwin
++TARGET = darwin
+ 
+ # atlas | atlas_threaded | blas | custom
+ BLAS = custom
+@@ -13,13 +13,13 @@
+ # Intel's MKL
+ #CUSTOMBLAS = -L/opt/intel/mkl/8.0/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread -lg2c
+ # Ubuntu with atlas
+-CUSTOMBLAS = -llapack -lblas -lg2c
++CUSTOMBLAS = -faltivec -framework Accelerate -lm -lgfortran
+ 
+ # change LUADIR below to where lua is installed, that is, INSTALL_TOP in lua's
+ # main Makefile
+-LUADIR = /usr
++LUADIR = @PREFIX@
+ 
+-CC = gcc
++CC = MACOSX_DEPLOYMENT_TARGET="10.3" gcc-mp-4.3
+ CFLAGS = -W -Wall -pedantic -fshort-enums
+ OPTFLAGS = -fomit-frame-pointer -O2
+ 
+@@ -45,6 +45,10 @@
+ endif
+ ifeq ($(TARGET), win32)
+ LIBS += -L$(LUADIR)/lib -llua
++else
++  ifeq ($(TARGET), darwin)
++LIBS += -L$(LUADIR)/lib -llua
++  endif
+ endif
+ 
+ OBJ = luaspfun.o luarng.o luacomplex.o
+@@ -56,22 +60,36 @@
+ DLIB = $(LIB:.a=.so)
+ LMDLIB = $(LMLIB:.a=.so)
+ else
++  ifeq ($(TARGET), win32)
+ DLIB = $(LIB:.a=.dll)
+ LMDLIB = $(LMLIB:.a=.dll)
++  else
++DLIB = $(LIB:.a=.so)
++LMDLIB = $(LMLIB:.a=.so)
++  endif
+ endif
+ 
+ OBJFLAGS = -I$(LUADIR)/include/lua5.1
+ ifeq ($(TARGET), linux)
+ LDFLAGS = -fpic
+ endif
++ifeq ($(TARGET), darwin)
++LDFLAGS += -bundle -undefined dynamic_lookup
++else
+ LDFLAGS += -shared
++endif
+ 
+ all : $(LIB) $(LMLIB) $(DLIB) $(LMDLIB)
+ 
+ ifeq ($(TARGET), linux)
+ $(DLIB) : %.so : %.o
+ else
++  ifeq ($(TARGET), win32)
+ $(DLIB) : %.dll : %.o
++  else
++$(DLIB) : %.so : %.o
++  endif
++
+ endif
+ 	$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@ $(LIBS)
+ #	$(STRIP) $@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090916/a6522d3f/attachment-0001.html>


More information about the macports-changes mailing list