packages: apertium/apertium-DESTDIR.patch (NEW), apertium/apertium-opt.patc...

qboosh qboosh at pld-linux.org
Sun Nov 28 09:43:13 CET 2010


Author: qboosh                       Date: Sun Nov 28 08:43:13 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new package
- opt patch to avoid using unwanted optimizer options
- DESTDIR patch (self-explaining)

---- Files affected:
packages/apertium:
   apertium-DESTDIR.patch (NONE -> 1.1)  (NEW), apertium-opt.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/apertium/apertium-DESTDIR.patch
diff -u /dev/null packages/apertium/apertium-DESTDIR.patch:1.1
--- /dev/null	Sun Nov 28 09:43:13 2010
+++ packages/apertium/apertium-DESTDIR.patch	Sun Nov 28 09:43:08 2010
@@ -0,0 +1,9 @@
+--- apertium-3.2.0/Makefile.am.orig	2010-02-28 18:24:47.000000000 +0100
++++ apertium-3.2.0/Makefile.am	2010-11-28 08:46:21.531102452 +0100
+@@ -9,5 +9,4 @@
+ EXTRA_DIST=autogen.sh README-MODES
+ 
+ install-data-local:
+-	mkdir -p $(modesdir)
+-	$(INSTALL_DATA) README-MODES  $(modesdir)/README
++	mkdir -p $(DESTDIR)$(modesdir)

================================================================
Index: packages/apertium/apertium-opt.patch
diff -u /dev/null packages/apertium/apertium-opt.patch:1.1
--- /dev/null	Sun Nov 28 09:43:13 2010
+++ packages/apertium/apertium-opt.patch	Sun Nov 28 09:43:08 2010
@@ -0,0 +1,71 @@
+--- apertium-3.2.0/configure.ac.orig	2010-03-14 16:14:34.000000000 +0100
++++ apertium-3.2.0/configure.ac	2010-11-28 08:07:17.219099937 +0100
+@@ -54,68 +54,6 @@
+ 
+ # Checks for programs.
+ 
+-AC_MSG_CHECKING([Compilation architecture: PPC, i686, x86_64, Other])
+-if test x$(which arch) = x
+-then ARCH=$($(which uname) -m)
+-else ARCH=$($(which arch))
+-fi
+-
+-case "${target_os}" in
+-  mingw*)
+-    MinGW=yes
+-  ;;
+-  cygwin*)
+-    Cygwin=yes
+-  ;;
+-esac
+-
+-if test x$ARCH = xppc
+-then
+-  AC_MSG_RESULT([PowerPC])
+-  CFLAGS="$CFLAGS -Wall -ansi -fomit-frame-pointer"
+-  CXXFLAGS="$CXXFLAGS -Wall -ansi -fomit-frame-pointer"
+-else
+-  if test x$MinGW = xyes
+-  then 
+-    AC_MSG_RESULT([MinGW])
+-    CFLAGS="$CFLAGS -Wall -march=i686 -O3 -DMINGW -fomit-frame-pointer \
+-	        -funroll-loops -I/include -L/lib"
+-    CXXFLAGS="$CXXFLAGS -Wall -march=i686 -O3 \
+-            -fomit-frame-pointer -funroll-loops -I/include -L/lib"
+-    CPPFLAGS="$CPPFLAGS -I/include"
+-  else
+-    if test x$Cygwin = xyes
+-    then 
+-      AC_MSG_RESULT([Cygwin])
+-      CFLAGS="$CFLAGS -Wall -march=i686 -O3 -fomit-frame-pointer \
+-           -funroll-loops"
+-      CXXFLAGS="$CXXFLAGS -Wall -march=i686 -O3 \
+-              -fomit-frame-pointer -funroll-loops"
+-      CPPFLAGS="$CPPFLAGS"
+-    else
+-      if test x$ARCH = xi686
+-      then
+-        AC_MSG_RESULT([i686])
+-        CFLAGS="$CFLAGS -Wall -ansi -march=i686 -O3 -fomit-frame-pointer -funroll-loops"
+-        CXXFLAGS="$CXXFLAGS -Wall -ansi -march=i686 -O3 \
+-                -fomit-frame-pointer -funroll-loops"
+-      else
+-        if test x$ARCH = xx86_64
+-        then
+-          AC_MSG_RESULT([x86_64])
+-          CFLAGS="-Wall -ansi -O3 -mtune=nocona -fomit-frame-pointer -funroll-loops $CFLAGS"
+-          CXXFLAGS="-Wall -ansi -O3 -mtune=nocona \
+-                  -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+-        else
+-          AC_MSG_RESULT([Other])
+-          CFLAGS="-Wall -ansi -O3 $CFLAGS"
+-          CXXFLAGS="-Wall -ansi -O3 $CXXFLAGS"
+-        fi
+-      fi
+-    fi    
+-  fi
+-fi
+-
+ AC_PROG_CXX
+ AC_PROG_LIBTOOL
+ AM_SANITY_CHECK
================================================================


More information about the pld-cvs-commit mailing list