From: <lin...@us...> - 2007-11-19 17:28:09
|
Revision: 4260 http://octave.svn.sourceforge.net/octave/?rev=4260&view=rev Author: lindnerb Date: 2007-11-19 09:28:10 -0800 (Mon, 19 Nov 2007) Log Message: ----------- Add REGEX build scripts for mingw32 build with gcc-4.2.1 Added Paths: ----------- trunk/octave-forge/admin/Windows/mingw32/regex/build-2.5.1-2.sh trunk/octave-forge/admin/Windows/mingw32/regex/mingw-libgnurx-2.5.1-2.patch Added: trunk/octave-forge/admin/Windows/mingw32/regex/build-2.5.1-2.sh =================================================================== --- trunk/octave-forge/admin/Windows/mingw32/regex/build-2.5.1-2.sh (rev 0) +++ trunk/octave-forge/admin/Windows/mingw32/regex/build-2.5.1-2.sh 2007-11-19 17:28:10 UTC (rev 4260) @@ -0,0 +1,78 @@ +#! /usr/bin/sh + +# Name of package +PKG=mingw-libgnurx +# Version of Package +VER=2.5.1 +# Release of (this patched) package +REL=2 +# Name&Version of Package +PKGVER=${PKG}-${VER} +# Full name of this patched Package +FULLPKG=${PKGVER}-${REL} + +# Name of source file +SRCFILE=${PKGVER}-src.tar.gz +TAR_TYPE=z +# Name of Patch file +PATCHFILE=${FULLPKG}.patch + +# URL of source code file +URL="http://downloads.sourceforge.net/mingw/mingw-libgnurx-2.5.1-src.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 +# Directory the lib is built in +BUILDDIR=".build_mingw32_${VER}-${REL}_gcc421_dw2" + +# Make file to use +MAKEFILE="" + +# Additional DIFF Flags for generating diff file +#DIFF_FLAGS="-x *.def" + +# header files to be installed +INSTALL_HEADERS="regex.h" + +source ../gcc42_common.sh + +mkdirs_pre() { if [ -e ${BUILDDIR} ]; then rm -rf ${BUILDDIR}; fi; } + +conf() +{ + mkdirs; + ( cd ${BUILDDIR} && ${TOPDIR}/${SRCDIR}/configure \ + --srcdir=${TOPDIR}/${SRCDIR} \ + CC=${CC} \ + CXX=${CXX} \ + F77=${F77} \ + LDFLAGS="${LDFLAGS} -lws2_32" \ + CPPFLAGS="${GCC_ARCH_FLAGS} ${GCC_OPT_FLAGS}" \ + CXXFLAGS="" \ + CFLAGS="" \ + --prefix="${PREFIX}" + ) +} + +install() +{ + ${CP} ${CP_FLAGS} ${BUILDDIR}/gnurx.dll ${BINARY_PATH} + ${CP} ${CP_FLAGS} ${BUILDDIR}/libregex.dll.a ${LIBRARY_PATH} + ${CP} ${CP_FLAGS} ${BUILDDIR}/libregex.a ${STATICLIBRARY_PATH} + for a in ${INSTALL_HEADERS}; do ${CP} ${CP_FLAGS} ${SRCDIR}/$a ${INCLUDE_PATH}; done +} + +uninstall() +{ + ${RM} ${RM_FLAGS} ${BINARY_PATH}/gnurx.dll + ${RM} ${RM_FLAGS} ${LIBRARY_PATH}/libregex.dll.a + ${RM} ${RM_FLAGS} ${STATICLIBRARY_PATH}/libregex.a + for a in ${INSTALL_HEADERS}; do ${RM} ${RM_FLAGS} ${INCLUDE_PATH}/$a; done +} + + +main $* Property changes on: trunk/octave-forge/admin/Windows/mingw32/regex/build-2.5.1-2.sh ___________________________________________________________________ Name: svn:executable + * Name: svn:keywords + Author Rev Date Name: svn:eol-style + LF Added: trunk/octave-forge/admin/Windows/mingw32/regex/mingw-libgnurx-2.5.1-2.patch =================================================================== --- trunk/octave-forge/admin/Windows/mingw32/regex/mingw-libgnurx-2.5.1-2.patch (rev 0) +++ trunk/octave-forge/admin/Windows/mingw32/regex/mingw-libgnurx-2.5.1-2.patch 2007-11-19 17:28:10 UTC (rev 4260) @@ -0,0 +1,43 @@ +diff -urN -x *.exe -x *.dll -x *.o -x *.a -x *.bak mingw-libgnurx-2.5.1-orig/Makefile.in mingw-libgnurx-2.5.1/Makefile.in +--- mingw-libgnurx-2.5.1-orig/Makefile.in Mon May 7 21:28:28 2007 ++++ mingw-libgnurx-2.5.1/Makefile.in Fri Nov 9 19:57:28 2007 +@@ -56,7 +56,7 @@ + ZIPCMD = @ZIPCMD@ + ZIPEXT = @ZIPEXT@ + +-all: libgnurx-$(DLLVERSION).dll libgnurx.dll.a libregex.a @GNURX_LIB@ ++all: gnurx.dll libregex.a @GNURX_LIB@ + + Makefile: config.status Makefile.in + ./config.status +@@ -66,11 +66,12 @@ + + $(OBJECTS): Makefile + +-libgnurx-$(DLLVERSION).dll libgnurx.dll.a: $(OBJECTS) +- $(CC) $(CFLAGS) -shared -o libgnurx-$(DLLVERSION).dll $(LDFLAGS) $(OBJECTS) ++gnurx.dll: $(OBJECTS) ++ $(CC) $(CFLAGS) -shared -o $@ $(LDFLAGS) $(OBJECTS) ++ $(STRIP) $(STRIP_FLAGS) $@ + +-libregex.a: libgnurx.dll.a +- cp -p libgnurx.dll.a $@ ++libregex.a: $(OBJECTS) ++ $(AR) cru $@ $(OBJECTS) + + gnurx.lib: libgnurx-$(DLLVERSION).dll + $(MSVCLIB) -def:libgnurx.def -out:gnurx.lib +diff -urN -x *.exe -x *.dll -x *.o -x *.a -x *.bak mingw-libgnurx-2.5.1-orig/configure mingw-libgnurx-2.5.1/configure +--- mingw-libgnurx-2.5.1-orig/configure Mon May 7 21:52:26 2007 ++++ mingw-libgnurx-2.5.1/configure Fri Nov 9 19:41:58 2007 +@@ -2392,8 +2392,8 @@ + + CC_QUALIFIED="$CC $CC_QUALIFIED" + +- LDFLAGS="$LDFLAGS -Wl,--enable-auto-image-base -Wl,--out-implib,libgnurx.dll.a" +- test -n "${GNURX_LIB}" && LDFLAGS="$LDFLAGS -Wl,--output-def,libgnurx.def" ++ LDFLAGS="$LDFLAGS -Wl,--enable-auto-image-base -Wl,--out-implib,libregex.dll.a" ++ test -n "${GNURX_LIB}" && LDFLAGS="$LDFLAGS -Wl,--output-def,libregex.def" + ac_config_files="$ac_config_files Makefile" + + cat >confcache <<\_ACEOF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |