From 3031bceafd15a4fbe44432ca6d8eee71b5c58ea3 Mon Sep 17 00:00:00 2001 From: Thomas Penteker Date: Sun, 22 Aug 2010 22:44:57 +0200 Subject: [PATCH] slim: fix build with libpng 1.3 --- slim/Pkgfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slim/Pkgfile b/slim/Pkgfile index c0d8c2d34..a90159c3f 100644 --- a/slim/Pkgfile +++ b/slim/Pkgfile @@ -14,8 +14,9 @@ source=(http://download.berlios.de/$name/$name-$version.tar.gz \ build () { # fix the build with g++ 4.4 patch -p0 -i $SRC/$name.diff - cd $name-$version + sed -i -e "s:-I/usr/include/libpng12:$(pkg-config --cflags-only-I libpng):" \ + -e "s:-lpng12:$(pkg-config --libs-only-l libpng):" Makefile make make DESTDIR=$PKG install mkdir $PKG/etc/rc.d