main/gpickview: build fix for libm underlinking

This commit is contained in:
Natanael Copa 2012-01-03 10:51:03 +00:00
parent 2de9e73c50
commit dc578918b7
2 changed files with 42 additions and 4 deletions

View File

@ -1,14 +1,26 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpicview
pkgver=0.2.2
pkgrel=0
pkgrel=1
pkgdesc="Picture viewer of the LXDE Desktop"
url="http://wiki.lxde.org/en/GPicView"
arch="all"
license="GPL-2"
depends=
makedepends="gtk+-dev intltool jpeg-dev"
source="http://downloads.sourceforge.net/sourceforge/lxde/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-lang"
makedepends="gtk+-dev intltool jpeg-dev autoconf automake libtool"
source="http://downloads.sourceforge.net/sourceforge/lxde/$pkgname-$pkgver.tar.gz
libm-underlinking.patch"
prepare() {
cd "$srcdir/$pkgname-$pkgver"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
libtoolize --force && aclocal && autoconf && automake
}
build() {
cd "$srcdir/$pkgname-$pkgver"
@ -20,4 +32,5 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="943da9f4a23541accd5acdd4fb69966f gpicview-0.2.2.tar.gz"
md5sums="943da9f4a23541accd5acdd4fb69966f gpicview-0.2.2.tar.gz
99fb803a293c88a37b606136f6a5c6ca libm-underlinking.patch"

View File

@ -0,0 +1,25 @@
From 38cc56d08d243c886526d16bad3ee0b6571d6914 Mon Sep 17 00:00:00 2001
From: Andrea Florio <andrea@opensuse.org>
Date: Sun, 18 Sep 2011 08:49:36 +0200
Subject: [PATCH] fixed link with latest ld
---
src/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 4a750c5..0e2f058 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,7 +27,7 @@ gpicview_SOURCES = \
# the library search path.
# use -nodefaultlibs to prevent linking libstdc++
-gpicview_LDADD = $(X11_LIBS) $(GTK_LIBS)
+gpicview_LDADD = $(X11_LIBS) $(GTK_LIBS) -lm
noinst_HEADERS = \
glib-mem.h \
--
1.7.4.1