media-libs/freeimage: initial import of version 3.17.0

This commit is contained in:
hasufell 2016-02-16 00:54:41 +01:00
parent 6b56d64e5b
commit b143bf774c
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
3 changed files with 1197 additions and 0 deletions

View File

@ -5,6 +5,7 @@ dev-util
games-board
games-rpg
games-strategy
media-libs
media-sound
net-misc
net-www

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,54 @@
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
#
# partly based on freeimage-3.15.4.ebuild from Gentoo, which has Copyright:
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
MY_PN=FreeImage
MY_P=${MY_PN}${PV//.}
DESCRIPTION="Image library supporting many formats"
HOMEPAGE="http://freeimage.sourceforge.net/"
DOWNLOADS="mirror://sourceforge/${PN}/${MY_P}.zip"
LICENCES="|| ( GPL-2 FIPL-1.0 )"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
"
DEPENDENCIES="
build:
virtual/unzip
"
WORK=${WORKBASE}/${MY_PN}
DEFAULT_SRC_PREPARE_PATCHES=(
-p1 "${FILES}"/${PNV}-gcc-5.diff
)
src_prepare() {
edo sed -i 's/\r$//' -- \
"${WORKBASE}"/FreeImage/Source/LibWebP/src/dsp/*
default
edo cp -r "${WORKBASE}"/FreeImage "${WORKBASE}"/FreeImagefip
}
foreach_make() {
edo emake -C "${WORKBASE}"/FreeImage -f Makefile.gnu "$@"
edo emake -C "${WORKBASE}"/FreeImagefip -f Makefile.fip "$@"
}
src_compile() {
foreach_make
}
src_install() {
foreach_make install DESTDIR="${IMAGE}" \
INCDIR="${IMAGE}"/usr/$(exhost --target)/include \
INSTALLDIR="${IMAGE}"/usr/$(exhost --target)/lib
}