mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
main/gpickview: build fix for libm underlinking
This commit is contained in:
parent
2de9e73c50
commit
dc578918b7
@ -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"
|
||||
|
||||
25
main/gpicview/libm-underlinking.patch
Normal file
25
main/gpicview/libm-underlinking.patch
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user