12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # Copyright 1999-2015 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=5
- inherit git-r3 toolchain-funcs
- DESCRIPTION="farbfeld simple image format tools"
- HOMEPAGE="http://tools.suckless.org/farbfeld/"
- EGIT_REPO_URI="git://git.suckless.org/farbfeld"
- LICENSE="ISC"
- SLOT="0"
- KEYWORDS=""
- RDEPEND="
- media-libs/libjpeg-turbo
- media-libs/libpng:*
- media-libs/lcms:2
- "
- DEPEND="
- ${RDEPEND}
- "
- src_prepare() {
- sed config.mk \
- -e '/^CC/d' \
- -e 's|/usr/local|/usr|g' \
- -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
- -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
- -e 's|{|(|g;s|}|)|g' \
- -i || die
- sed Makefile \
- -e 's|{|(|g;s|}|)|g' \
- -e 's|^ @| |g' \
- -i || die
- }
- src_compile() {
- emake CC=$(tc-getCC)
- }
- src_install() {
- emake DESTDIR="${D}" install MANPREFIX=/usr/share/man
- }
|