diff --git a/templates/libpng-1.2.32-runstuff-before-build.sh b/templates/libpng-1.2.32-runstuff-before-build.sh new file mode 100755 index 00000000000..a468520cfd6 --- /dev/null +++ b/templates/libpng-1.2.32-runstuff-before-build.sh @@ -0,0 +1,5 @@ +# Add the correct rpath flags to libpng-config. + +$sed_cmd -e '/^L_opts=/s|-L\([ ]*[^ ]*\)"|-Wl,-R\1 -L\1"|g' \ + $wrksrc/libpng-config > $wrksrc/libpng-config.in +$mv_cmd -f $wrksrc/libpng-config.in $wrksrc/libpng-config diff --git a/templates/libpng-1.2.32.tmpl b/templates/libpng-1.2.32.tmpl new file mode 100755 index 00000000000..355c45b7f18 --- /dev/null +++ b/templates/libpng-1.2.32.tmpl @@ -0,0 +1,22 @@ +# Template build file for 'libpng-1.2.32'. +pkgname=libpng-1.2.32 +extract_sufx=".tar.bz2" +url=ftp://ftp.fu-berlin.de/unix/graphics/png/src +build_style=gnu_configure +make_cmd="$PKGFS_MASTERDIR/bin/gmake" +pkgconfig_override="libpng.pc" +short_desc="Library for manipulating PNG images" +maintainer="Juan RP " +checksum=72d06e89912121c17598573171e704ff6bac35a6 +long_desc=" + Libpng was written as a companion to the PNG specification, as a + way to reduce the amount of time and effort it takes to support + the PNG file format in application programs. Most users will not + have to modify the library significantly; advanced users may want + to modify it more. The library was coded for both users. All + attempts were made to make it as complete as possible, while + keeping the code easy to understand. Currently, this library + only supports C. Support for other languages is being considered." + +run_stuff_before="build" +run_stuff_before_build_file="$pkgname-runstuff-before-build.sh"