forked from hasufell/hasufell-repository
media-libs/freeimage: initial import of version 3.17.0
This commit is contained in:
parent
6b56d64e5b
commit
b143bf774c
@ -5,6 +5,7 @@ dev-util
|
||||
games-board
|
||||
games-rpg
|
||||
games-strategy
|
||||
media-libs
|
||||
media-sound
|
||||
net-misc
|
||||
net-www
|
||||
|
1142
packages/media-libs/freeimage/files/freeimage-3.17.0-gcc-5.diff
Normal file
1142
packages/media-libs/freeimage/files/freeimage-3.17.0-gcc-5.diff
Normal file
File diff suppressed because it is too large
Load Diff
54
packages/media-libs/freeimage/freeimage-3.17.0.exheres-0
Normal file
54
packages/media-libs/freeimage/freeimage-3.17.0.exheres-0
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user