summaryrefslogtreecommitdiff
path: root/community/openmotif/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/openmotif/PKGBUILD')
-rw-r--r--community/openmotif/PKGBUILD28
1 files changed, 6 insertions, 22 deletions
diff --git a/community/openmotif/PKGBUILD b/community/openmotif/PKGBUILD
index 0b5371b85..bc0a48392 100644
--- a/community/openmotif/PKGBUILD
+++ b/community/openmotif/PKGBUILD
@@ -1,11 +1,10 @@
-# $Id: PKGBUILD 59163 2011-11-21 12:54:58Z spupykin $
+# $Id: PKGBUILD 63686 2012-02-05 12:06:47Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Enrico Morelli <morelli@cerm.unifi.it>
-
pkgname=openmotif
pkgver=2.3.3
-pkgrel=1
+pkgrel=2
pkgdesc="Open Motif"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.motifzone.org/"
@@ -18,25 +17,12 @@ source=(http://www.motifzone.org/files/public_downloads/openmotif/2.3/$pkgver/op
md5sums=('fd27cd3369d6c7d5ef79eccba524f7be')
build() {
-_automakever=`pacman -Q automake | cut -f 2 -d \ | cut -f 1 -d -`
+ _automakever=1.11
cd $srcdir/openmotif-$pkgver
- [ $NOEXTRACT -eq 1 ] || patch -p0 Makefile.in <<EOF
---- Makefile.in.org 2007-06-11 09:32:01.000000000 +0400
-+++ Makefile.in 2007-06-19 19:13:04.000000000 +0400
-@@ -249,8 +249,7 @@
- include \\
- tools \\
- clients \\
-- doc \\
-- demos
-+ doc
-
- AUTOMAKE_OPTIONS = 1.4
- all: all-recursive
-EOF
-
+ sed -i 's|.*demos.*||g' Makefile.in Makefile.am
+ sed -i 's|doc \\|doc|g' Makefile.in Makefile.am
sed -i 's#if (!png_check_sig(sig, 8))#if (png_sig_cmp(sig, 0, 8))#' lib/Xm/Png.c
ln -s -f /usr/share/automake-${_automakever}/compile compile
@@ -48,10 +34,8 @@ EOF
ln -s -f /usr/share/libtool/config/ltmain.sh ltmain.sh
touch NEWS AUTHORS
- [ $NOEXTRACT -eq 1 ] || autoreconf -i;
-
+ [ $NOEXTRACT -eq 1 ] || autoreconf -i
[ $CARCH == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
-
[ $NOEXTRACT -eq 1 ] || ./configure --with-x --prefix=/usr
make -j1