From 7fa542cc6b757196dc32fe34f45a46dad29a2ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 5 Nov 2015 04:00:37 +0100 Subject: [PATCH] New package: freeimage-3.17.0 --- common/shlibs | 3 ++ srcpkgs/freeimage-devel | 1 + srcpkgs/freeimage-plus | 1 + srcpkgs/freeimage-plus-devel | 1 + srcpkgs/freeimage/template | 71 ++++++++++++++++++++++++++++++++++++ 5 files changed, 77 insertions(+) create mode 120000 srcpkgs/freeimage-devel create mode 120000 srcpkgs/freeimage-plus create mode 120000 srcpkgs/freeimage-plus-devel create mode 100644 srcpkgs/freeimage/template diff --git a/common/shlibs b/common/shlibs index 4387070bb1..6e86e739ea 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2277,3 +2277,6 @@ libosgPresentation.so.130 osg-3.4.0_1 libKF5Screen.so.6 libkscreen-5.4.2_1 libdbusmenu-qt5.so.2 libdbusmenu-qt5-0.9.3.0_1 libKF5Solid.so.5 ksolid-5.15.0_1 +libfreeimage.so.3 freeimage-3.17.0_1 +libfreeimageplus.so.3 freeimage-plus-3.17.0_1 + diff --git a/srcpkgs/freeimage-devel b/srcpkgs/freeimage-devel new file mode 120000 index 0000000000..d740eeebf5 --- /dev/null +++ b/srcpkgs/freeimage-devel @@ -0,0 +1 @@ +freeimage \ No newline at end of file diff --git a/srcpkgs/freeimage-plus b/srcpkgs/freeimage-plus new file mode 120000 index 0000000000..d740eeebf5 --- /dev/null +++ b/srcpkgs/freeimage-plus @@ -0,0 +1 @@ +freeimage \ No newline at end of file diff --git a/srcpkgs/freeimage-plus-devel b/srcpkgs/freeimage-plus-devel new file mode 120000 index 0000000000..d740eeebf5 --- /dev/null +++ b/srcpkgs/freeimage-plus-devel @@ -0,0 +1 @@ +freeimage \ No newline at end of file diff --git a/srcpkgs/freeimage/template b/srcpkgs/freeimage/template new file mode 100644 index 0000000000..0544427f2a --- /dev/null +++ b/srcpkgs/freeimage/template @@ -0,0 +1,71 @@ +# Template file for 'freeimage' +pkgname=freeimage +version=3.17.0 +revision=1 +wrksrc=FreeImage +build_style=gnu-makefile +hostmakedepends="unzip" +short_desc="Support library for popular graphics image formats" +maintainer="Jürgen Buchmüller " +license="GPL-2 FIPL" +homepage="http://freeimage.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/freeimage/Source%20Distribution/FreeImage${version//./}.zip" +checksum=fbfc65e39b3d4e2cb108c4ffa8c41fd02c07d4d436c594fff8dab1a6d5297f89 + +CFLAGS="-fPIC -DPIC -fexceptions -fvisibility=hidden" +CXXFLAGS="${CFLAGS} -Wno-ctor-dtor-privacy" +subpackages="freeimage freeimage-plus freeimage-devel freeimage-plus-devel" + +post_extract() { + mkdir /tmp/fi + mv ${wrksrc}/* /tmp/fi + cp -a /tmp/fi ${wrksrc}/fip + mv /tmp/fi ${wrksrc} +} + +do_build() { + cd ${wrksrc}/fi + make ${makejobs} + cd ${wrksrc}/fip + make -f Makefile.fip ${makejobs} +} + +do_install() { + cd ${wrksrc}/fi + make DESTDIR="${DESTDIR}" install + vlicense license-fi.txt LICENSE +} + +freeimage-plus_package() { + short_desc+=" (plus)" + pkg_install() { + cd ${wrksrc}/fip + make -f Makefile.fip DESTDIR="${PKGDESTDIR}" install + vlicense license-fi.txt LICENSE + } +} + +freeimage-devel_package() { + short_desc+=" - development files" + depends="freeimage>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/libfreeimage.a + vmove usr/lib/libfreeimage.so + } +} + +freeimage-plus-devel_package() { + short_desc+=" (plus) - development files" + depends="freeimage-plus>=${version}_${revision}" + pkg_install() { + DESTDIR="${DESTDIR/freeimage-/freeimage-plus-}" + vmove usr/include + vmove usr/lib/libfreeimageplus.a + vmove usr/lib/libfreeimageplus.so +# vmkdir usr/lib +# mv ${_destdir}/usr/include ${PKGDESTDIR}/usr +# mv ${_destdir}/usr/lib/libfreeimageplus.{a,so} ${PKGDESTDIR}/usr/lib + } +} +