[arch-ports] [arch64] netpbm works

Ivan Stankovic pokemon at fly.srk.fer.hr
Mon May 1 15:35:56 EDT 2006


Hi!

Here's a modified PKGBUILD to make netpbm 
compile under arch64 (the -fPIC flag is enabled).

-- 
Ivan Stankovic, ivan.stankovic at fer.hr
-------------- next part --------------
# $Id: PKGBUILD,v 1.15 2005/12/30 18:11:08 kevin Exp $
# Maintainer: Kevin Piche <kevin at archlinux.org>
# Contributor: Jochem Kossen <j.kossen at home.nl>

pkgname=netpbm
pkgver=10.31
pkgrel=1
pkgdesc="A toolkit for manipulation of graphic images"
depends=('perl' 'libjpeg' 'libpng' 'libtiff')
url="http://netpbm.sourceforge.net/"
source=(http://dl.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz \
  Makefile.config arch.patch)
md5sums=('6ba2e0ee998eb23f4620ec9c175a90b6' 'bd3493c58e3e600d28a872bd5354b209'\
         '2f87518ca9a9cb42caa6c77c3370df0e')

build() {
  sed -i "s/^\(CFLAGS =\) .*/\1 $CFLAGS/" Makefile.config
  [ "$CARCH" == "x86_64" ] && (sed -i "s/^\(CFLAGS_SHLIB =\) .*/\1 -fPIC/" Makefile.config)
  cd $startdir/src/$pkgname-$pkgver
  /usr/bin/patch -p1 < ../arch.patch
  /bin/mv ../Makefile.config .
  /usr/bin/make || return 1
  /usr/bin/make package pkgdir=$startdir/pkg/usr

  # clean up and fixing symlinks
  /bin/mv $startdir/pkg/usr/link/libnetpbm.a $startdir/pkg/usr/lib
  /bin/rm $startdir/pkg/usr/{config_template,README,pkginfo,misc,VERSION,link} -rf
  /bin/rm $startdir/pkg/usr/man/web -rf
  cd $startdir/pkg/usr/lib
  /bin/ln -s ./libnetpbm.so.10 libnetpbm.so
}
# vim: ts=2 sw=2 et ft=sh


More information about the arch-ports mailing list