summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/farbfeld/farbfeld-9999.ebuild40
-rw-r--r--media-gfx/farbfeld/metadata.xml8
2 files changed, 48 insertions, 0 deletions
diff --git a/media-gfx/farbfeld/farbfeld-9999.ebuild b/media-gfx/farbfeld/farbfeld-9999.ebuild
new file mode 100644
index 000000000000..d619ceb869df
--- /dev/null
+++ b/media-gfx/farbfeld/farbfeld-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 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://git.2f30.org/farbfeld/about/"
+EGIT_REPO_URI="git://git.suckless.org/farbfeld"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng:*
+"
+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)
+}
diff --git a/media-gfx/farbfeld/metadata.xml b/media-gfx/farbfeld/metadata.xml
new file mode 100644
index 000000000000..ef0483f9ff68
--- /dev/null
+++ b/media-gfx/farbfeld/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>