From: <lin...@us...> - 2009-01-27 16:06:13
|
Revision: 5543 http://octave.svn.sourceforge.net/octave/?rev=5543&view=rev Author: lindnerb Date: 2009-01-27 16:06:04 +0000 (Tue, 27 Jan 2009) Log Message: ----------- add libqrupdate-1.0 build script and patch Added Paths: ----------- trunk/octave-forge/admin/Windows/mingw32/qrupdate/ trunk/octave-forge/admin/Windows/mingw32/qrupdate/build-1.0-3.sh trunk/octave-forge/admin/Windows/mingw32/qrupdate/qrupdate-1.0-3.patch Added: trunk/octave-forge/admin/Windows/mingw32/qrupdate/build-1.0-3.sh =================================================================== --- trunk/octave-forge/admin/Windows/mingw32/qrupdate/build-1.0-3.sh (rev 0) +++ trunk/octave-forge/admin/Windows/mingw32/qrupdate/build-1.0-3.sh 2009-01-27 16:06:04 UTC (rev 5543) @@ -0,0 +1,121 @@ +#! /usr/bin/sh + +# Name of package +PKG=qrupdate +# Version of Package +VER=1.0 +# Release of (this patched) package +REL=3 +# Name&Version of Package +PKGVER=${PKG}-${VER} +# Full name of this patched Package +FULLPKG=${PKGVER}-${REL} + +# Name of source file +SRCFILE=${PKGVER}.tar.gz +TAR_TYPE=z +# Name of Patch file +PATCHFILE=${FULLPKG}.patch + +# URL of source code file +URL="http://downloads.sourceforge.net/qrupdate/qrupdate-1.0.tar.gz" + +# Top dir of this building process (i.e. where the patch file and source file(s) reside) +TOPDIR=`pwd` +# Directory Source code is extracted to (relative to TOPDIR) +SRCDIR=${PKGVER} +# Directory original source code is extracted to (for generating diffs) (relative to TOPDIR) +SRCDIR_ORIG=${SRCDIR}-orig + +# Make file to use +MAKEFILE="Makefile" + +# Additional DIFF Flags for generating diff file +#DIFF_FLAGS="-x *.def" + +# header files to be installed +#INSTALL_HEADERS="" +#INCLUDE_DIR= + +source ../gcc43_common.sh + +# Directory the lib is built in +BUILDDIR=".build_mingw32_${VER}-${REL}_gcc${GCC_VER}${GCC_SYS}" + +unpack() +{ + unpack_pre; + rm -rf tmp + ( mkdir tmp && cd tmp && $TAR -$TAR_TYPE -xf ${TOPDIR}/${SRCFILE} && mv $PKG ../$SRCDIR && cd .. && rm -rf tmp) + unpack_post; +} + +unpack_orig() +{ + unpack_orig_pre; + rm -rf tmp + ( mkdir tmp && cd tmp && $TAR -$TAR_TYPE -xf ${TOPDIR}/${SRCFILE} && mv $PKG ../$SRCDIR_ORIG && cd .. && rm -rf tmp) + unpack_orig_post; +} + +mkdirs_post() +{ + mkdir -vp ${BUILDDIR}/src + mkdir -vp ${BUILDDIR}/test +} + +conf() +{ + substvars ${SRCDIR}/makefile ${BUILDDIR}/makefile + substvars ${SRCDIR}/src/makefile ${BUILDDIR}/src/makefile + substvars ${SRCDIR}/test/makefile ${BUILDDIR}/test/makefile +} + +build() +{ + ( cd ${BUILDDIR}/src && make_common lib ) + ( cd ${BUILDDIR}/src && make_common solib ) +} + +# 27-jan-2008 Benjamin Lindner <lin...@us...> +# using: mingw32-gfortran-4.3.0-dw2.exe (TDM 4.3.0-2) +# all tests pass +# TOTAL: PASSED 112 FAILED 0 + +check() +{ + ( cd ${BUILDDIR} && make_common test ) +} + +install() +{ + install_pre; + ${CP} ${CP_FLAGS} ${BUILDDIR}/qrupdate.dll ${SHAREDLIB_PATH} + ${CP} ${CP_FLAGS} ${BUILDDIR}/libqrupdate.a ${STATICLIBRARY_PATH} + ${CP} ${CP_FLAGS} ${BUILDDIR}/libqrupdate.dll.a ${LIBRARY_PATH} + + mkdir -vp ${LICENSE_PATH}/${PKG} + ${CP} ${CP_FLAGS} ${SRCDIR}/COPYING ${LICENSE_PATH}/${PKG} + + install_post +} + +uninstall() +{ + ${RM} ${RM_FLAGS} ${SHAREDLIB_PATH}/qrupdate.dll + ${RM} ${RM_FLAGS} ${STATICLIBRARY_PATH}/libqrupdate.a + ${RM} ${RM_FLAGS} ${LIBRARY_PATH}/libqrupdate.dll.a +} + +all() +{ + download + unpack + applypatch + mkdirs + conf + build + install +} + +main $* Property changes on: trunk/octave-forge/admin/Windows/mingw32/qrupdate/build-1.0-3.sh ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Rev Date URL Added: svn:eol-style + LF Added: trunk/octave-forge/admin/Windows/mingw32/qrupdate/qrupdate-1.0-3.patch =================================================================== --- trunk/octave-forge/admin/Windows/mingw32/qrupdate/qrupdate-1.0-3.patch (rev 0) +++ trunk/octave-forge/admin/Windows/mingw32/qrupdate/qrupdate-1.0-3.patch 2009-01-27 16:06:04 UTC (rev 5543) @@ -0,0 +1,92 @@ +diff -urN -x '*.exe' -x '*.dll' -x '*.o' -x '*.a' -x '*.bak' qrupdate-1.0-orig/Makeconf qrupdate-1.0/Makeconf +--- qrupdate-1.0-orig/Makeconf 2009-01-09 11:21:34 +0000 ++++ qrupdate-1.0/Makeconf 2009-01-27 08:04:13 +0000 +@@ -1,5 +1,5 @@ + # set this to your compiler's executable name (e.g. gfortran, g77) +-FC=gfortran ++FC=$(F77) + # requested flags + FFLAGS=-fimplicit-none -O3 -march=native -funroll-loops + # set if you need shared library +diff -urN -x '*.exe' -x '*.dll' -x '*.o' -x '*.a' -x '*.bak' qrupdate-1.0-orig/Makefile qrupdate-1.0/Makefile +--- qrupdate-1.0-orig/Makefile 2009-01-09 11:21:34 +0000 ++++ qrupdate-1.0/Makefile 2009-01-27 08:00:38 +0000 +@@ -19,7 +19,9 @@ + # <http://www.gnu.org/licenses/>. + # + +-include Makeconf ++SRCDIR=@SRCDIR@ ++ ++include $(SRCDIR)/Makeconf + + help: + @echo +diff -urN -x '*.exe' -x '*.dll' -x '*.o' -x '*.a' -x '*.bak' qrupdate-1.0-orig/src/Makefile qrupdate-1.0/src/Makefile +--- qrupdate-1.0-orig/src/Makefile 2009-01-14 11:22:50 +0000 ++++ qrupdate-1.0/src/Makefile 2009-01-27 08:11:35 +0000 +@@ -18,7 +18,11 @@ + # along with this software; see the file COPYING. If not, see + # <http://www.gnu.org/licenses/>. + # +-include ../Makeconf ++SRCDIR=@SRCDIR@ ++ ++include $(SRCDIR)/Makeconf ++ ++vpath %.f $(SRCDIR)/src + + SRC = caxcpy.f cch1dn.f cch1up.f cchdex.f cchinx.f cchshx.f cgqvec.f cqhqr.f \ + cqr1up.f cqrdec.f cqrder.f cqrinc.f cqrinr.f cqrot.f cqrqh.f cqrshc.f cqrtv1.f \ +@@ -33,13 +37,23 @@ + + lib: ../libqrupdate.a + +-solib: ../libqrupdate.so ++solib: ../qrupdate.dll ++ ++qrupdate.def : $(SRCDIR)/src/EXPORTS ++ echo EXPORTS>$@ ++ cat $^ >> $@ + + ../libqrupdate.a: $(OBJS) + ar -cr $@ $(OBJS) + +-../libqrupdate.so: $(OBJS) +- $(FC) $(FFLAGS) -shared -o $@ $(OBJS) ++../qrupdate.dll: $(OBJS) qrupdate.def ++ $(FC) $(FFLAGS) $(FLDFLAGS) \ ++ -Wl,--out-implib=../libqrupdate.dll.a \ ++ -Wl,--output-def=../qrupdate.exp \ ++ -shared -o $@ \ ++ -Wl,qrupdate.def \ ++ $(OBJS) \ ++ $(LAPACK) $(BLAS) + + $(OBJS): %.o: %.f + $(FC) $(FFLAGS) $(FPICFLAGS) -c $< +diff -urN -x '*.exe' -x '*.dll' -x '*.o' -x '*.a' -x '*.bak' qrupdate-1.0-orig/test/Makefile qrupdate-1.0/test/Makefile +--- qrupdate-1.0-orig/test/Makefile 2009-01-13 09:37:17 +0000 ++++ qrupdate-1.0/test/Makefile 2009-01-27 08:14:05 +0000 +@@ -18,7 +18,11 @@ + # along with this software; see the file COPYING. If not, see + # <http://www.gnu.org/licenses/>. + # +-include ../Makeconf ++SRCDIR=@SRCDIR@ ++ ++include $(SRCDIR)/Makeconf ++ ++vpath %.f $(SRCDIR)/test + + LIBS= $(BLAS) $(LAPACK) + PROGS=tqr1up tqrinc tqrdec tqrshc tqrinr tqrder \ +@@ -26,7 +30,7 @@ + OUTS=$(PROGS:%=%.out) + + tests: $(OUTS) +- ./report_results $(OUTS) ++ $(SRCDIR)/test/report_results $(OUTS) + + $(OUTS): %.out: % + ./$< | tee $@ Property changes on: trunk/octave-forge/admin/Windows/mingw32/qrupdate/qrupdate-1.0-3.patch ___________________________________________________________________ Added: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |