Package Details: libafterimage 1.20-2

Git Clone URL: https://aur.archlinux.org/libafterimage.git (read-only)
Package Base: libafterimage
Description: Generic image manipulation library
Upstream URL: http://www.afterstep.org/afterimage
Licenses: GPL
Submitter: bwalle
Maintainer: mikesd
Last Packager: mikesd
Votes: 37
Popularity: 0.035443
First Submitted: 2008-11-09 08:28
Last Updated: 2015-06-21 10:19

Latest Comments

ndavis commented on 2016-07-09 07:22

Upstream repository seems unresponsive:

==> Building and installing package
==> Making package: libafterimage 1.20-2 (Sat Jul 9 09:20:00 CEST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading libAfterImage-1.20.tar.bz2...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:22 --:--:-- 0
curl: (56) Recv failure: Connection reset by peer
==> ERROR: Failure while downloading ftp://ftp.afterstep.org/stable/libAfterImage/libAfterImage-1.20.tar.bz2
Aborting...
==> ERROR: Makepkg was unable to build libafterimage.
==> Restart building libafterimage ? [y/N]

Directly following the ftp link also returns a "connection reset" error.

eicospike commented on 2014-03-01 07:46

./configure --prefix=/usr --mandir=/usr/share/man --enable-sharedlibs --without-svg


that seams to fix the problem with the sharedlibs not getting installed

valmar commented on 2014-02-18 08:51

The previous PKGBUILD assumes default LDFLAGS, as defined in /etc/makepkg.conf, and just removes the --as-needed. If you are using custom flags, adjust accordingly

valmar commented on 2014-02-18 08:46

Here is a PKGBUILD that disables the as-needed for the whole package:

---START PKGBUILD---

# Maintainer: Mike Sampson <mike at sambodata dot com>
# Contributor: Bernhard Walle <bernhard.walle@gmx.de>
# AUR Category: lib
pkgname=libafterimage
pkgver=1.20
pkgrel=2
pkgdesc="Generic image manipulation library"
url="http://www.afterstep.org/afterimage"
license=('GPL')
depends=('libpng' 'libtiff' 'freetype2' 'libxext')
arch=('i686' 'x86_64')
source=(ftp://ftp.afterstep.org/stable/libAfterImage/libAfterImage-${pkgver}.tar.bz2
libafterimage-libpng15.patch)
md5sums=('17a0ab8a2e6b253f222934418705963e'
'bdb49e626cb91b2c218193f3d36c9f91')

build() {
cd $srcdir/libAfterImage-$pkgver

LDFLAGS="-Wl,-O1,--sort-common,-z,relro"

# Apply Gentoo's libpng15 patch
patch < $srcdir/libafterimage-libpng15.patch
./configure --prefix=/usr --mandir=/usr/share/man \
--enable-sharedlibs --disable-staticlibs --without-svg

# don't run ldconfig
sed -i -e 's/`uname`/"hack"/g' $srcdir/libAfterImage-$pkgver/Makefile

make
}

package() {
cd $srcdir/libAfterImage-$pkgver
make DESTDIR=$pkgdir install
}

# :mode=shellscript:

---END-PKGBUILD---

itoijala commented on 2014-02-12 14:00

I had to remove --as-needed from apps/Makefile to get it to find the png symbols.
Otherwise I got:

..//libAfterImage.so: undefined reference to `png_set_longjmp_fn'
..//libAfterImage.so: undefined reference to `png_read_update_info'
..//libAfterImage.so: undefined reference to `png_get_rowbytes'
..//libAfterImage.so: undefined reference to `png_create_write_struct'
..//libAfterImage.so: undefined reference to `png_set_bKGD'
..//libAfterImage.so: undefined reference to `png_read_end'
..//libAfterImage.so: undefined reference to `png_set_filler'
..//libAfterImage.so: undefined reference to `png_get_IHDR'
..//libAfterImage.so: undefined reference to `png_write_rows'
..//libAfterImage.so: undefined reference to `png_get_valid'
..//libAfterImage.so: undefined reference to `png_create_info_struct'
..//libAfterImage.so: undefined reference to `png_read_image'
..//libAfterImage.so: undefined reference to `png_set_write_fn'
..//libAfterImage.so: undefined reference to `png_write_info'
..//libAfterImage.so: undefined reference to `png_write_end'
..//libAfterImage.so: undefined reference to `png_get_gAMA'
..//libAfterImage.so: undefined reference to `png_set_IHDR'
..//libAfterImage.so: undefined reference to `png_destroy_read_struct'
..//libAfterImage.so: undefined reference to `png_get_sRGB'
..//libAfterImage.so: undefined reference to `png_set_read_fn'
..//libAfterImage.so: undefined reference to `png_set_packing'
..//libAfterImage.so: undefined reference to `png_destroy_info_struct'
..//libAfterImage.so: undefined reference to `png_init_io'
..//libAfterImage.so: undefined reference to `png_set_compression_level'
..//libAfterImage.so: undefined reference to `png_set_expand'
..//libAfterImage.so: undefined reference to `png_set_strip_16'
..//libAfterImage.so: undefined reference to `png_create_read_struct'
..//libAfterImage.so: undefined reference to `png_destroy_write_struct'
..//libAfterImage.so: undefined reference to `png_set_gamma'
..//libAfterImage.so: undefined reference to `png_read_info'
..//libAfterImage.so: undefined reference to `png_get_io_ptr'
collect2: error: ld returned 1 exit status
Makefile:133: recipe for target 'asview' failed

Anonymous comment on 2012-02-13 18:54

Thanks for the quick fix.

mikesd commented on 2012-02-09 09:35

Applied Gentoo's libpng15 patch, seems ok now.

Anonymous comment on 2012-02-08 16:59

Now that libpng-1.5 is out of testing, this needs ether cvs or a patch to compile. I had no trouble with the cvs version.

mikesd commented on 2012-01-24 06:57

This PKGBUILD includes the headers and I have used it in the past to build rxvt-unicode-afterimage. Check the dependencies in the Makefile:

$ grep '^install:' Makefile
install: install.lib install.man install.doc install.apps

$ grep '^install.lib:' Makefile
install.lib: $(LIB_SHARED) install.dyn install.inc

'make install' depends on 'make install.lib' which depends on 'make install.inc'

Anonymous comment on 2012-01-18 21:58

Change this in libafterimage PKGBUILD to enable rxvt-unicode-afterimage to actually have afterimage support which requires the headers also (, see my comment in the rxvt-unicode-afterimage package):

package() {
cd $srcdir/libAfterImage-${pkgver}
make DESTDIR=$pkgdir install
make DESTDIR=$pkgdir install.inc
}

mikesd commented on 2011-02-23 22:16

* Updated to latest version.
* Enable dynamic libs, disable static libs.
* Disable SVG support as it pulls in a *lot* of libs when building rxvt-unicode-afterimage.