[arch-commits] CVS update of extra/lib/lzo (PKGBUILD nasm-gcc3.patch)

Jan de Groot jgc at archlinux.org
Sun Aug 5 13:19:07 UTC 2007


    Date: Sunday, August 5, 2007 @ 09:19:07
  Author: jgc
    Path: /home/cvs-extra/extra/lib/lzo

   Added: PKGBUILD (1.1) nasm-gcc3.patch (1.1)

Move to  extra


-----------------+
 PKGBUILD        |   25 +++++++++++++++++++++++++
 nasm-gcc3.patch |   40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)


Index: extra/lib/lzo/PKGBUILD
diff -u /dev/null extra/lib/lzo/PKGBUILD:1.1
--- /dev/null	Sun Aug  5 09:19:07 2007
+++ extra/lib/lzo/PKGBUILD	Sun Aug  5 09:19:07 2007
@@ -0,0 +1,25 @@
+# Contributor: Low Kian Seong <fastmail_low at speedymail.org>
+# Maintainer: Judd Vinet <jvinet at zeroflux.org>
+pkgname=lzo
+pkgver=1.08
+pkgrel=4
+force=y
+pkgdesc="LZO is a portable lossless data compression library written in ANSI C"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://www.oberhumer.com/opensource/lzo"
+depends=('glibc')
+makedepends=('nasm')
+options=('!libtool')
+source=(http://www.oberhumer.com/opensource/${pkgname}/download/${pkgname}-${pkgver}.tar.gz
+	nasm-gcc3.patch)
+md5sums=('ab94d3da364c7cbd5b78d76f1875b0f6' '43fb13762383b572d22152f8815ea4a5')
+
+build() {
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  patch -Np0 -i  ${startdir}/src/nasm-gcc3.patch || return 1
+  autoconf || return 1
+  ./configure --prefix=/usr --enable-shared
+  make || return 1
+  make DESTDIR=${startdir}/pkg install
+}
Index: extra/lib/lzo/nasm-gcc3.patch
diff -u /dev/null extra/lib/lzo/nasm-gcc3.patch:1.1
--- /dev/null	Sun Aug  5 09:19:07 2007
+++ extra/lib/lzo/nasm-gcc3.patch	Sun Aug  5 09:19:07 2007
@@ -0,0 +1,40 @@
+--- configure.in	2002-07-13 01:31:52.000000000 +0000
++++ configure.in.patched	2003-09-10 14:37:31.000000000 +0000
+@@ -319,13 +319,13 @@
+ [AC_TRY_RUN([#include <stdio.h>
+ int test() {
+ #if defined(__GNUC__)
+-  __asm__ __volatile__ ("
+-  .align 4
+-mfx_a1:
+-  .byte 0
+-  .align 4
+-mfx_a2:
+-  ");
++  __asm__ __volatile__ (
++  ".align 4\n"
++"mfx_a1:\n"
++  ".byte 0\n"
++  ".align 4\n"
++"mfx_a2:\n"
++  );
+ #endif
+   return 0;
+ }
+@@ -363,11 +363,11 @@
+ #endif
+   int mfx_asm_func();
+   static void test() {
+-    __asm__ __volatile__("
+-    .globl mfx_asm_func
+-    mfx_asm_func:
+-      .byte 0
+-    ");
++    __asm__ __volatile__(
++    ".globl mfx_asm_func\n"
++    "mfx_asm_func:\n"
++      ".byte 0\n"
++    );
+   }
+ ], [
+   return mfx_asm_func();




More information about the arch-commits mailing list