diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-11-25 14:18:00 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-11-25 14:18:46 +0100 |
commit | aed948e2740943d4bdcfcdb63467e6690885fb62 (patch) | |
tree | 3673623bd2f1849317857e3c63020ab01993bc3d /media-libs/pnglite/pnglite-0.1.17-r1.ebuild | |
parent | media-gfx/nvidia-cg-toolkit: update EAPI 5 -> 8 (diff) | |
download | gentoo-aed948e2740943d4bdcfcdb63467e6690885fb62.tar.gz gentoo-aed948e2740943d4bdcfcdb63467e6690885fb62.tar.bz2 gentoo-aed948e2740943d4bdcfcdb63467e6690885fb62.zip |
media-libs/pnglite: update EAPI 5 -> 8
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'media-libs/pnglite/pnglite-0.1.17-r1.ebuild')
-rw-r--r-- | media-libs/pnglite/pnglite-0.1.17-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/media-libs/pnglite/pnglite-0.1.17-r1.ebuild b/media-libs/pnglite/pnglite-0.1.17-r1.ebuild new file mode 100644 index 000000000000..4b5669ea7d37 --- /dev/null +++ b/media-libs/pnglite/pnglite-0.1.17-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Small and simple library for loading and writing PNG images" +HOMEPAGE="https://sourceforge.net/projects/pnglite/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.zip" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/unzip" + +PATCHES=( + "${FILESDIR}"/${P}-include-stdio.patch +) + +S=${WORKDIR} + +src_prepare() { + default + sed -ie "s:\"../zlib/zlib.h\":<zlib.h>:" pnglite.c || die +} + +src_compile() { + tc-export CC + append-flags -fPIC + emake ${PN}.o + $(tc-getCC) ${LDFLAGS} -shared -Wl,-soname,lib${PN}.so.0 \ + -o lib${PN}.so.0 ${PN}.o -lz || die +} + +src_install() { + insinto /usr/include + doins ${PN}.h + + dolib.so lib${PN}.so.0 + dosym lib${PN}.so.0 /usr/$(get_libdir)/lib${PN}.so +} |