* [gentoo-commits] proj/betagarden:master commit in: x11-libs/stereowrap/files/, x11-libs/stereowrap/
@ 2013-05-08 21:12 Sebastian Pipping
0 siblings, 0 replies; only message in thread
From: Sebastian Pipping @ 2013-05-08 21:12 UTC (permalink / raw
To: gentoo-commits
commit: 424c4d4f4be580a3e49fb8b059c0fa97ebc3aaa6
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Wed May 8 21:08:17 2013 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed May 8 21:12:03 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=424c4d4f
x11-libs/stereowrap: 0.1
---
.../stereowrap/files/stereowrap-0.1-makefile.patch | 54 ++++++++++++++++++++
x11-libs/stereowrap/metadata.xml | 8 +++
x11-libs/stereowrap/stereowrap-0.1.ebuild | 30 +++++++++++
3 files changed, 92 insertions(+), 0 deletions(-)
diff --git a/x11-libs/stereowrap/files/stereowrap-0.1-makefile.patch b/x11-libs/stereowrap/files/stereowrap-0.1-makefile.patch
new file mode 100644
index 0000000..342fa8d
--- /dev/null
+++ b/x11-libs/stereowrap/files/stereowrap-0.1-makefile.patch
@@ -0,0 +1,54 @@
+From d44f6b682dfbb5cea88d2f7fcc59e85be1ff187e Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Wed, 8 May 2013 22:49:09 +0200
+Subject: [PATCH] Fix Makefile: Respect CFLAGS/LDFLAGS, add DESTDIR, relative
+ symlinks, no deletion on install
+
+---
+ Makefile | 23 +++++++++++------------
+ 1 file changed, 11 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 728e83d..8516b29 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,8 +9,8 @@ src = $(wildcard src/*.c)
+ obj = $(src:.c=.o)
+
+ CC = gcc
+-CFLAGS = -Wall -fPIC -g -D_GNU_SOURCE
+-LDFLAGS = -lpthread
++CFLAGS += -Wall -fPIC -D_GNU_SOURCE
++LDFLAGS += -lpthread
+
+ $(lib_so): $(obj)
+ $(CC) -o $@ -shared -Wl,-soname,$(soname) $(obj) $(LDFLAGS)
+@@ -21,16 +21,15 @@ clean:
+
+ .PHONY: install
+ install:
+- mkdir -p $(PREFIX)/bin $(PREFIX)/lib
+- cp $(lib_so) $(PREFIX)/lib/$(lib_so)
+- rm -f $(PREFIX)/lib/$(linkname) $(PREFIX)/lib/$(soname)
+- ln -s $(PREFIX)/lib/$(lib_so) $(PREFIX)/lib/$(soname)
+- ln -s $(PREFIX)/lib/$(soname) $(PREFIX)/lib/$(linkname)
+- cp $(bin) $(PREFIX)/bin/$(bin)
++ mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib
++ cp $(lib_so) $(DESTDIR)$(PREFIX)/lib/$(lib_so)
++ ln -s $(lib_so) $(DESTDIR)$(PREFIX)/lib/$(soname)
++ ln -s $(soname) $(DESTDIR)$(PREFIX)/lib/$(linkname)
++ cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
+
+ .PHONY: uninstall
+ uninstall:
+- rm -f $(PREFIX)/lib/$(soname)
+- rm -f $(PREFIX)/lib/$(lib_so)
+- rm -f $(PREFIX)/lib/$(linkname)
+- rm -f $(PREFIX)/bin/$(bin)
++ rm -f $(DESTDIR)$(PREFIX)/lib/$(soname)
++ rm -f $(DESTDIR)$(PREFIX)/lib/$(lib_so)
++ rm -f $(DESTDIR)$(PREFIX)/lib/$(linkname)
++ rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)
+--
+1.8.2.1
+
diff --git a/x11-libs/stereowrap/metadata.xml b/x11-libs/stereowrap/metadata.xml
new file mode 100644
index 0000000..16bcc9f
--- /dev/null
+++ b/x11-libs/stereowrap/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>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/x11-libs/stereowrap/stereowrap-0.1.ebuild b/x11-libs/stereowrap/stereowrap-0.1.ebuild
new file mode 100644
index 0000000..d3afa13
--- /dev/null
+++ b/x11-libs/stereowrap/stereowrap-0.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Run an OpenGL application in stereoscopic mode"
+HOMEPAGE="https://code.google.com/p/stereowrap/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-08 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 21:12 [gentoo-commits] proj/betagarden:master commit in: x11-libs/stereowrap/files/, x11-libs/stereowrap/ Sebastian Pipping
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox