summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2013-03-19 09:13:07 +0100
committerAdrien Nader <adrien@notk.org>2013-03-19 09:13:07 +0100
commit24f32749781339cf83e7090c614ab93db169c0f8 (patch)
treeb617420f167b73599652450df2824d1707df05d5
parent907fb04e3fc15c3ca90b7080774603d885af2523 (diff)
libpng: don't try to fix the versioning of libpng; it's not that easy.
-rwxr-xr-x[-rw-r--r--]l/libpng/libpng.SlackBuild10
1 files changed, 2 insertions, 8 deletions
diff --git a/l/libpng/libpng.SlackBuild b/l/libpng/libpng.SlackBuild
index 7c124e4..1ed6368 100644..100755
--- a/l/libpng/libpng.SlackBuild
+++ b/l/libpng/libpng.SlackBuild
@@ -78,14 +78,8 @@ make install DESTDIR=$PKG
rm -f $PKG/$PREFIX/lib${LIBDIRSUFFIX}/libpng{14,}.a
-(cd $PKG/$PREFIX
- rename '14' '' bin/*
- rm -f bin/libpng-config # I hate these crappy NIH syndrome *-config binaries
- rename '14' '' lib${LIBDIRSUFFIX}/*
- rename '14' '' lib${LIBDIRSUFFIX}/pkgconfig/*.pc
- sed -i -e 's;-lpng14;-lpng;' -e 's;include/libpng14;include/libpng;' lib${LIBDIRSUFFIX}/pkgconfig/libpng.pc
- mv include/libpng14 include/libpng
- )
+# I hate these crappy NIH syndrome *-config binaries
+rm -f $PKG/$PREFIX/bin/libpng-config
find $PKG | xargs file | egrep "executable|shared object" \
| grep ${HOST_EXE_FORMAT} | cut -f 1 -d : | xargs ${HOST_STRIP} --strip-unneeded 2> /dev/null