Hi,

qrencode is a C library for encoding data in a QR Code symbol.

For the patch, i'm found on gentoo ebuild and Arch.

Replace the libpng 1.4 sed fix with a patch, because autoreconf would require SDL to regen the build files.

Link <http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/qrencode/qrencode-3.1.1.ebuild?revision=1.6&view=markup>

--

Sébastien VINCENT Aka Baste

>From da3a909d33199295a11b37e22b63cd55a0a4b61b Mon Sep 17 00:00:00 2001
From: Baste <[email protected]>
Date: Fri, 20 May 2011 22:29:54 +0200
Subject: [PATCH] qrencode-3.1.1-1-i686  * new package

---
 source/lib-extra/qrencode/FrugalBuild       |   25 +++++++++++++++
 source/lib-extra/qrencode/pngregenfix.patch |   45 +++++++++++++++++++++++++++
 2 files changed, 70 insertions(+), 0 deletions(-)
 create mode 100644 source/lib-extra/qrencode/FrugalBuild
 create mode 100644 source/lib-extra/qrencode/pngregenfix.patch

diff --git a/source/lib-extra/qrencode/FrugalBuild 
b/source/lib-extra/qrencode/FrugalBuild
new file mode 100644
index 0000000..db9558c
--- /dev/null
+++ b/source/lib-extra/qrencode/FrugalBuild
@@ -0,0 +1,25 @@
+# Compiling Time: 0.05 SBU
+# Maintainer: Not Yet
+# Contributor : Baste <[email protected]>
+
+pkgname=qrencode
+pkgver=3.1.1
+pkgrel=1
+pkgdesc="A C library for encoding data in a QR Code symbol"
+url="http://megaui.net/fukuchi/works/qrencode/index.en.html";
+depends=('libpng')
+groups=('lib-extra')
+archs=('i686' 'x86_64')
+up2date="Flasttar $url"
+source=(http://fukuchi.org/works/$pkgname/${pkgname}-${pkgver}.tar.gz 
pngregenfix.patch)
+sha1sums=('c3eb6c44553daa612a9bcf413d3cab7c46241373' \
+          '324e02f4dd1ffda1a9cdd0ebc7d0f7918814061b')
+
+
+build()
+{
+       Fpatchall
+       Fautoreconf
+       Fmake
+       Fmakeinstall
+}
diff --git a/source/lib-extra/qrencode/pngregenfix.patch 
b/source/lib-extra/qrencode/pngregenfix.patch
new file mode 100644
index 0000000..9791c09
--- /dev/null
+++ b/source/lib-extra/qrencode/pngregenfix.patch
@@ -0,0 +1,45 @@
+diff -ruN qrencode-3.1.1-orig/Makefile.am qrencode-3.1.1/Makefile.am
+--- qrencode-3.1.1-orig/Makefile.am    2010-01-19 21:13:25.000000000 +0100
++++ qrencode-3.1.1/Makefile.am 2011-01-31 09:21:17.000000000 +0100
+@@ -24,7 +24,7 @@
+ pkgconfig_DATA = libqrencode.pc
+ 
+ EXTRA_DIST = libqrencode.pc.in autogen.sh configure.ac acinclude.m4 \
+-                       Makefile.am tests/Makefile.am qrencode.spec.in 
qrencode.spec \
++                       Makefile.am qrencode.spec.in qrencode.spec \
+                        qrencode.1.in Doxyfile tests/test_all.sh
+ 
+ if BUILD_TOOLS
+diff -ruN qrencode-3.1.1-orig/configure.ac qrencode-3.1.1/configure.ac
+--- qrencode-3.1.1-orig/configure.ac   2010-02-03 01:42:12.000000000 +0100
++++ qrencode-3.1.1/configure.ac        2011-01-31 09:21:17.000000000 +0100
+@@ -29,14 +29,14 @@
+ AC_PROG_LIBTOOL
+ PKG_PROG_PKG_CONFIG
+ 
+-AC_CONFIG_FILES([Makefile libqrencode.pc tests/Makefile qrencode.spec 
qrencode.1])
++AC_CONFIG_FILES([Makefile libqrencode.pc qrencode.spec qrencode.1])
+ 
+ dnl --with-tools
+ AC_ARG_WITH([tools], [AC_HELP_STRING([--with-tools], [build utility tools 
[default=yes]])],
+  [build_tools=$withval], [build_tools=yes])
+ AM_CONDITIONAL(BUILD_TOOLS, [test "x$build_tools" = "xyes" ])
+ if test x$build_tools = xyes ; then
+-      PKG_CHECK_MODULES(png, "libpng12")
++      PKG_CHECK_MODULES(png, "libpng")
+ fi
+ 
+ dnl --with-tests
+@@ -54,12 +54,6 @@
+ fi
+ 
+ 
+-if test x$build_tests = xyes ; then
+-      SDL_REQUIRED_VERSION=1.2.0
+-      AM_PATH_SDL($SDL_REQUIRED_VERSION,,AC_MSG_WARN([*** SDL 
$SDL_REQUIRED_VERSION or better is required.]))
+-fi
+-AM_CONDITIONAL(HAVE_SDL, [test "x$SDL_CFLAGS" != "x" ])
+-
+ 
+ dnl --enable-gprof
+ AC_ARG_ENABLE([gprof], [AC_HELP_STRING([--enable-gprof], [generate extra code 
to write profile information suitable for gprof [default=no]])],
-- 
1.7.5.1

_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to