New package: freeimage-3.17.0
This commit is contained in:
parent
ac5b44c299
commit
7fa542cc6b
5 changed files with 77 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
1
srcpkgs/freeimage-devel
Symbolic link
1
srcpkgs/freeimage-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
freeimage
|
1
srcpkgs/freeimage-plus
Symbolic link
1
srcpkgs/freeimage-plus
Symbolic link
|
@ -0,0 +1 @@
|
|||
freeimage
|
1
srcpkgs/freeimage-plus-devel
Symbolic link
1
srcpkgs/freeimage-plus-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
freeimage
|
71
srcpkgs/freeimage/template
Normal file
71
srcpkgs/freeimage/template
Normal file
|
@ -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 <pullmoll@t-online.de>"
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue