From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/lzo/PKGBUILD | 25 +++++++++++++++++++++++++ extra/lzo/nasm-gcc3.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 extra/lzo/PKGBUILD create mode 100644 extra/lzo/nasm-gcc3.patch (limited to 'extra/lzo') diff --git a/extra/lzo/PKGBUILD b/extra/lzo/PKGBUILD new file mode 100644 index 000000000..6bbed4e68 --- /dev/null +++ b/extra/lzo/PKGBUILD @@ -0,0 +1,25 @@ +# $Id: PKGBUILD 37199 2009-05-01 03:25:47Z eric $ +# Contributor: Low Kian Seong +# Maintainer: Judd Vinet +pkgname=lzo +pkgver=1.08 +pkgrel=5 +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 ${srcdir}/${pkgname}-${pkgver} + patch -Np0 -i ${srcdir}/nasm-gcc3.patch || return 1 + autoconf || return 1 + ./configure --prefix=/usr --enable-shared || return 1 + make || return 1 + make DESTDIR=${pkgdir} install || return 1 +} diff --git a/extra/lzo/nasm-gcc3.patch b/extra/lzo/nasm-gcc3.patch new file mode 100644 index 000000000..19b351b3d --- /dev/null +++ b/extra/lzo/nasm-gcc3.patch @@ -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 + 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(); -- cgit v1.2.3-54-g00ecf