From 86b553c73a3718cea03a18572543068669eb7e05 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 30 Dec 2009 23:31:13 +0100 Subject: [PATCH] Added giflib-4.1.6 build template. --HG-- extra : convert_revision : e49f5d1893b79eb08742af325130cd2baf8e0509 --- srcpkgs/giflib-devel | 1 + srcpkgs/giflib-tools | 1 + srcpkgs/giflib/depends | 2 ++ srcpkgs/giflib/giflib-devel.template | 21 +++++++++++++++++ srcpkgs/giflib/giflib-tools.template | 14 ++++++++++++ srcpkgs/giflib/template | 34 ++++++++++++++++++++++++++++ 6 files changed, 73 insertions(+) create mode 120000 srcpkgs/giflib-devel create mode 120000 srcpkgs/giflib-tools create mode 100644 srcpkgs/giflib/depends create mode 100644 srcpkgs/giflib/giflib-devel.template create mode 100644 srcpkgs/giflib/giflib-tools.template create mode 100644 srcpkgs/giflib/template diff --git a/srcpkgs/giflib-devel b/srcpkgs/giflib-devel new file mode 120000 index 00000000000..191cc1f4b7d --- /dev/null +++ b/srcpkgs/giflib-devel @@ -0,0 +1 @@ +giflib \ No newline at end of file diff --git a/srcpkgs/giflib-tools b/srcpkgs/giflib-tools new file mode 120000 index 00000000000..191cc1f4b7d --- /dev/null +++ b/srcpkgs/giflib-tools @@ -0,0 +1 @@ +giflib \ No newline at end of file diff --git a/srcpkgs/giflib/depends b/srcpkgs/giflib/depends new file mode 100644 index 00000000000..df57eced1cf --- /dev/null +++ b/srcpkgs/giflib/depends @@ -0,0 +1,2 @@ +abi_depends=">=4.1.6" +api_depends="${abi_depends}" diff --git a/srcpkgs/giflib/giflib-devel.template b/srcpkgs/giflib/giflib-devel.template new file mode 100644 index 00000000000..ed62e35d1b2 --- /dev/null +++ b/srcpkgs/giflib/giflib-devel.template @@ -0,0 +1,21 @@ +# Template file for 'giflib-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libSM-devel +Add_dependency run libICE-devel +Add_dependency run libX11-devel +Add_dependency run giflib + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + #mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + #mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/srcpkgs/giflib/giflib-tools.template b/srcpkgs/giflib/giflib-tools.template new file mode 100644 index 00000000000..3af2e42043d --- /dev/null +++ b/srcpkgs/giflib/giflib-tools.template @@ -0,0 +1,14 @@ +# Template file for 'giflib-tools'. +# +short_desc="${short_desc} (utilities)" +long_desc="${long_desc} + + This package contains additional utilities." + +Add_dependency run giflib + +do_install() +{ + mkdir -p ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr +} diff --git a/srcpkgs/giflib/template b/srcpkgs/giflib/template new file mode 100644 index 00000000000..cb81ed068a7 --- /dev/null +++ b/srcpkgs/giflib/template @@ -0,0 +1,34 @@ +# Template file for 'giflib' +pkgname=giflib +version=4.1.6 +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="library for GIF images" +maintainer="Juan RP " +checksum=ceca77dcd29eb6f6d0336414dfecc9094413f71c3b589afcf96bb72fbfb08ce0 +long_desc=" + GIFLIB is a package of portable tools and library routines for working + with GIF images." + +subpackages="$pkgname-devel $pkgname-tools" +Add_dependency run glibc +Add_dependency run libSM +Add_dependency run libICE +Add_dependency run libX11 +Add_dependency build libSM-devel +Add_dependency build libICE-devel +Add_dependency build libX11-devel + +post_install() +{ + cd ${wrksrc} || return 1 + + # libungif compatibility - instructions taken from Redhat specfile + local MAJOR=`echo ${pkgver} | sed 's/\([0-9]\+\)\..*/\1/'` + gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs \ + -lgif -o libungif.so.${version} || return 1 + install -m755 libungif.so.${version} ${DESTDIR}/usr/lib || return 1 + ln -sf libungif.so.${version} \ + ${DESTDIR}/usr/lib/libungif.so.4 || return 1 + ln -sf libungif.so.4 ${DESTDIR}/usr/lib/libungif.so || return 1 +}