changeset 2497:3dfd08abb308

new packages: cminpack levmar libf2c
author Alois Schlögl <alois.schloegl@gmail.com>
date Thu, 03 May 2012 21:08:56 +1000
parents aaa92d250d5c
children 979decb2b36d
files index.html src/cminpack.mk src/levmar.mk src/libf2c-1.patch src/libf2c.mk
diffstat 5 files changed, 146 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Thu May 03 02:58:07 2012 -0700
+++ b/index.html	Thu May 03 21:08:56 2012 +1000
@@ -984,6 +984,11 @@
         <td id="cgal-website"><a href="http://www.cgal.org/">cgal</a></td>
     </tr>
     <tr>
+        <td id="cminpack-package">cminpack</td>
+        <td id="cminpack-version">1.1.4</td>
+        <td id="cminpack-website"><a href="http://devernay.free.fr/hacks/cminpack/cminpack.html">cminpack</a></td>
+    </tr>
+    <tr>
         <td id="cppunit-package">cppunit</td>
         <td id="cppunit-version">1.12.1</td>
         <td id="cppunit-website"><a href="http://apps.sourceforge.net/mediawiki/cppunit/">CppUnit</a></td>
@@ -1304,6 +1309,11 @@
         <td id="lcms1-website"><a href="http://www.littlecms.com/">lcms1</a></td>
     </tr>
     <tr>
+        <td id="levmar-package">levmar</td>
+        <td id="levmar-version">2.6</td>
+        <td id="levmar-website"><a href="http://www.ics.forth.gr/~lourakis/levmar">levmar</a></td>
+    </tr>
+    <tr>
         <td id="libarchive-package">libarchive</td>
         <td id="libarchive-version">3.0.3</td>
         <td id="libarchive-website"><a href="http://code.google.com/p/libarchive/">Libarchive</a></td>
@@ -1329,6 +1339,11 @@
         <td id="libevent-website"><a href="http://libevent.org/">libevent</a></td>
     </tr>
     <tr>
+        <td id="libf2c-package">libf2c</td>
+        <td id="libf2c-version">1</td>
+        <td id="libf2c-website"><a href="http://www.netlib.org/f2c/">libf2c</a></td>
+    </tr>
+    <tr>
         <td id="libffi-package">libffi</td>
         <td id="libffi-version">3.0.11</td>
         <td id="libffi-website"><a href="http://sourceware.org/libffi/">libffi</a></td>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cminpack.mk	Thu May 03 21:08:56 2012 +1000
@@ -0,0 +1,25 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := cminpack
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := 7a89a0c5c09585823ca4b11bc3eddb13df3fd0c3
+$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := http://devernay.free.fr/hacks/cminpack/$($(PKG)_FILE)
+$(PKG)_DEPS     := gcc
+
+define $(PKG)_UPDATE
+    echo 1
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && cmake \
+        -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'
+    $(MAKE) -C '$(1)' -j $(JOBS)
+
+    $(INSTALL) -d                         '$(PREFIX)/$(TARGET)/lib'
+    $(INSTALL) -m644 '$(1)/libcminpack.a' '$(PREFIX)/$(TARGET)/lib/'
+    $(INSTALL) -d                         '$(PREFIX)/$(TARGET)/include'
+    $(INSTALL) -m644 '$(1)/cminpack.h'    '$(PREFIX)/$(TARGET)/include/'
+endef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/levmar.mk	Thu May 03 21:08:56 2012 +1000
@@ -0,0 +1,25 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := levmar
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := 118bd20b55ab828d875f1b752cb5e1238258950b
+$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tgz
+$(PKG)_URL      := http://www.ics.forth.gr/~lourakis/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS     := gcc lapack blas libf2c
+
+define $(PKG)_UPDATE
+    wget -q -O- "http://www.ics.forth.gr/~lourakis/levmar/"  | \
+    $(SED) -n 's_.*Latest:.*levmar-\([0-9]\.[0-9]\).*_\1_ip' | \
+    head -1;
+endef
+
+define $(PKG)_BUILD
+    $(MAKE) -C '$(1)' -j '$(JOBS)' liblevmar.a \
+        CC=$(TARGET)-gcc \
+        AR=$(TARGET)-ar \
+        RANLIB=$(TARGET)-ranlib
+    $(INSTALL) -m644 '$(1)/levmar.h'    '$(PREFIX)/$(TARGET)/include/'
+    $(INSTALL) -m644 '$(1)/liblevmar.a' '$(PREFIX)/$(TARGET)/lib/'
+endef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libf2c-1.patch	Thu May 03 21:08:56 2012 +1000
@@ -0,0 +1,57 @@
+--- tmp-libf2c/makefile.u	2012-04-30 22:45:53.611478100 +0200
++++ tmp-libf2c/makefile.xc	2012-04-30 22:46:13.201480616 +0200
+@@ -13,14 +13,17 @@
+ # to the CFLAGS = line below.
+ 
+ .SUFFIXES: .c .o
+-CC = cc
++CC = $(TARGET)-gcc
++AR = $(TARGET)-ar
++RANLIB = $(TARGET)-ranlib
++LD = $(TARGET)-ld
+ SHELL = /bin/sh
+-CFLAGS = -O
++CFLAGS = -O -DUSE_CLOCK
+ 
+ # compile, then strip unnecessary symbols
+ .c.o:
+ 	$(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
+-	ld -r -x -o $*.xxx $*.o
++	$(LD) -r -x -o $*.xxx $*.o
+ 	mv $*.xxx $*.o
+ ## Under Solaris (and other systems that do not understand ld -x),
+ ## omit -x in the ld line above.
+@@ -72,8 +75,8 @@
+ all: f2c.h signal1.h sysdep1.h libf2c.a
+ 
+ libf2c.a: $(OFILES)
+-	ar r libf2c.a $?
+-	-ranlib libf2c.a
++	$(AR) r libf2c.a $?
++	-$(RANLIB) libf2c.a
+ 
+ ## Shared-library variant: the following rule works on Linux
+ ## systems.  Details are system-dependent.  Under Linux, -fPIC
+@@ -123,7 +126,7 @@
+ 
+ install: libf2c.a
+ 	cp libf2c.a $(LIBDIR)
+-	-ranlib $(LIBDIR)/libf2c.a
++	-$(RANLIB) $(LIBDIR)/libf2c.a
+ 
+ clean:
+ 	rm -f libf2c.a *.o arith.h signal1.h sysdep1.h
+@@ -183,10 +186,9 @@
+ xwsne.o:	fmt.h
+ 
+ arith.h: arithchk.c
+-	$(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\
+-	 $(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm
+-	./a.out >arith.h
+-	rm -f a.out arithchk.o
++	$(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm || $(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm
++	./a.exe >arith.h
++	rm -f a.exe arithchk.o
+ 
+ check:
+ 	xsum Notice README abort_.c arithchk.c backspac.c c_abs.c c_cos.c \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libf2c.mk	Thu May 03 21:08:56 2012 +1000
@@ -0,0 +1,24 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := libf2c
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := f71066b41695738dec2261de71eaf02a1aaffe8b
+$(PKG)_SUBDIR   := 
+$(PKG)_FILE     := $(PKG).zip
+$(PKG)_URL      := http://www.netlib.org/f2c/$($(PKG)_FILE)
+$(PKG)_DEPS     := gcc
+
+define $(PKG)_UPDATE
+    echo 1 
+endef
+
+define $(PKG)_BUILD
+    $(MAKE) -C '$(1)' -j '$(JOBS)' -f makefile.u \
+        CC=$(TARGET)-gcc \
+        AR=$(TARGET)-ar \
+        LD=$(TARGET)-ld \
+        RANLIB=$(TARGET)-ranlib
+    $(INSTALL) -m644 '$(1)/libf2c.a' '$(PREFIX)/$(TARGET)/lib'
+    $(INSTALL) -m644 '$(1)/f2c.h'    '$(PREFIX)/$(TARGET)/include'
+endef