diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2019-12-18 19:56:03 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2019-12-18 19:56:03 +0100 |
commit | 7a699bcdce5c1412c02a2aa7717a31bc17c49058 (patch) | |
tree | cc09ecf8b7097ebc370454ee89abe7710ac77782 /x11-libs/libclxclient | |
parent | media-libs/libclxclient: fixed description (diff) | |
download | gentoo-7a699bcdce5c1412c02a2aa7717a31bc17c49058.tar.gz gentoo-7a699bcdce5c1412c02a2aa7717a31bc17c49058.tar.bz2 gentoo-7a699bcdce5c1412c02a2aa7717a31bc17c49058.zip |
media-libs/libclxclient: moved to x11-libs/libclxclient
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'x11-libs/libclxclient')
-rw-r--r-- | x11-libs/libclxclient/Manifest | 2 | ||||
-rw-r--r-- | x11-libs/libclxclient/files/libclxclient-3.9.0-Makefile.patch | 46 | ||||
-rw-r--r-- | x11-libs/libclxclient/files/libclxclient-3.9.2-Makefile.patch | 35 | ||||
-rw-r--r-- | x11-libs/libclxclient/files/libclxclient-3.9.2-enumip-include-fix.patch | 13 | ||||
-rw-r--r-- | x11-libs/libclxclient/libclxclient-3.9.0.ebuild | 41 | ||||
-rw-r--r-- | x11-libs/libclxclient/libclxclient-3.9.2.ebuild | 48 | ||||
-rw-r--r-- | x11-libs/libclxclient/metadata.xml | 8 |
7 files changed, 193 insertions, 0 deletions
diff --git a/x11-libs/libclxclient/Manifest b/x11-libs/libclxclient/Manifest new file mode 100644 index 000000000000..d79a9b187c66 --- /dev/null +++ b/x11-libs/libclxclient/Manifest @@ -0,0 +1,2 @@ +DIST clxclient-3.9.0.tar.bz2 30272 BLAKE2B 51d7dbbf6e474b849461aaedb859bc92da0cb56f368e631016cfcb7dae1e5b3dca7630f35bc2d608fe8851cb5e60be599933834bbe358e092f2b08ad97cdc659 SHA512 4bbd621ceeebf3dfc36f0a3d02c63ba1c0e818e691e5c9681e737710824f53a58c682fb2475a7a2bba4f2dfd520166b782977320ceb73de39448cf512e26c842 +DIST clxclient-3.9.2.tar.bz2 29991 BLAKE2B ffd56894e0bcf09e2b6e4c882830e3c3a3a88f3778fe6a2c8b2ceb9336f8ce9cf28193da8e8c86987475e95e3ea2c07319bd82e88ad820b39167cfba9eefd7c3 SHA512 38c2782e58df24c2dfcb936fc9cfe4d44016055fb1aa52ef8e789bf8ec327f45f2f7a91f18012e4b0c6f253f6f10329d6d1e9fc341017ace3f2b6fa050592049 diff --git a/x11-libs/libclxclient/files/libclxclient-3.9.0-Makefile.patch b/x11-libs/libclxclient/files/libclxclient-3.9.0-Makefile.patch new file mode 100644 index 000000000000..7714ec5e9111 --- /dev/null +++ b/x11-libs/libclxclient/files/libclxclient-3.9.0-Makefile.patch @@ -0,0 +1,46 @@ +Index: clxclient-3.9.0/Makefile +=================================================================== +--- clxclient-3.9.0.orig/Makefile ++++ clxclient-3.9.0/Makefile +@@ -24,6 +24,7 @@ + PREFIX = /usr/local + SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') + LIBDIR = lib$(SUFFIX) ++PKGCONFIG = pkg-config + + + MAJVERS = 3 +@@ -31,9 +32,9 @@ MINVERS = 9.0 + VERSION = $(MAJVERS).$(MINVERS) + + +-CPPFLAGS += -Wall -I. -I/usr/X11R6/include `freetype-config --cflags` -fpic -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O2 +-LDFLAGS += -L/usr/X11R6/$(LIBDIR) `freetype-config --libs` +-LDLIBS += ++CPPFLAGS += -Wall -I. -I/usr/X11R6/include `$(PKGCONFIG) --cflags freetype2` -fpic -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ++LDFLAGS += -L/usr/X11R6/$(LIBDIR) ++LDLIBS += `$(PKGCONFIG) --libs freetype2` + + + CLXCLIENT_SO = libclxclient.so +@@ -46,15 +47,14 @@ CLXCLIENT_H = clxclient.h + + + $(CLXCLIENT_MIN): $(CLXCLIENT_O) +- g++ -shared $(LDFLAGS) -Wl,-soname,$(CLXCLIENT_MAJ) -o $(CLXCLIENT_MIN) $(CLXCLIENT_O) $(CLXCLIENT_DEP) ++ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(CLXCLIENT_MAJ) -o $(CLXCLIENT_MIN) $(CLXCLIENT_O) $(CLXCLIENT_DEP) $(LDLIBS) + + + install: $(CLXCLIENT_MIN) +- install -d $(PREFIX)/$(LIBDIR) +- install -m 644 $(CLXCLIENT_H) $(PREFIX)/include +- install -m 755 $(CLXCLIENT_MIN) $(PREFIX)/$(LIBDIR) +- ldconfig +- ln -sf $(CLXCLIENT_MIN) $(PREFIX)/$(LIBDIR)/$(CLXCLIENT_SO) ++ install -m 644 -D $(CLXCLIENT_H) $(PREFIX)/include/$(CLXCLIENT_H) ++ install -m 755 -D $(CLXCLIENT_MIN) $(PREFIX)/$(LIBDIR)/$(CLXCLIENT_MIN) ++ ln -sf $(CLXCLIENT_MIN) $(PREFIX)/$(LIBDIR)/$(CLXCLIENT_MAJ) ++ ln -sf $(CLXCLIENT_MAJ) $(PREFIX)/$(LIBDIR)/$(CLXCLIENT_SO) + + + clean: diff --git a/x11-libs/libclxclient/files/libclxclient-3.9.2-Makefile.patch b/x11-libs/libclxclient/files/libclxclient-3.9.2-Makefile.patch new file mode 100644 index 000000000000..e79dce5764e8 --- /dev/null +++ b/x11-libs/libclxclient/files/libclxclient-3.9.2-Makefile.patch @@ -0,0 +1,35 @@ +diff --git a/source/Makefile b/source/Makefile +index 177115f..c8fa0f5 100644 +--- a/source/Makefile ++++ b/source/Makefile +@@ -24,16 +24,16 @@ SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86 + PREFIX ?= /usr/local + INCDIR ?= $(PREFIX)/include + LIBDIR ?= $(PREFIX)/lib$(SUFFIX) ++PKGCONFIG = pkg-config + + MAJVERS = 3 + MINVERS = 9.2 + VERSION = $(MAJVERS).$(MINVERS) + + +-CPPFLAGS += $(shell pkgconf --cflags freetype2) ++CPPFLAGS += $(shell ${PKGCONFIG} --cflags freetype2) + CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $(PCONFCFL) +-CXXFLAGS += -Wall -O2 -fPIC +-CXXFLAGS += -march=native ++CXXFLAGS += -Wall -fPIC + LDLIBS += + + +@@ -55,8 +55,8 @@ install: $(CLXCLIENT_MIN) + install -d $(DESTDIR)$(LIBDIR) + install -m 644 $(CLXCLIENT_H) $(DESTDIR)$(INCDIR) + install -m 755 $(CLXCLIENT_MIN) $(DESTDIR)$(LIBDIR) +- ldconfig +- ln -sf $(CLXCLIENT_MIN) $(DESTDIR)$(LIBDIR)/$(CLXCLIENT_SO) ++ ln -sf $(CLXCLIENT_MIN) $(DESTDIR)$(LIBDIR)/$(CLXCLIENT_MAJ) ++ ln -sf $(CLXCLIENT_MAJ) $(DESTDIR)$(LIBDIR)/$(CLXCLIENT_SO) + + uninstall: + rm -rf $(DESTDIR)$(INCDIR)/$(CLXCLIENT_H) diff --git a/x11-libs/libclxclient/files/libclxclient-3.9.2-enumip-include-fix.patch b/x11-libs/libclxclient/files/libclxclient-3.9.2-enumip-include-fix.patch new file mode 100644 index 000000000000..710baac0db53 --- /dev/null +++ b/x11-libs/libclxclient/files/libclxclient-3.9.2-enumip-include-fix.patch @@ -0,0 +1,13 @@ +diff --git a/source/enumip.cc b/source/enumip.cc +index 0873da8..1cdac0d 100644 +--- a/source/enumip.cc ++++ b/source/enumip.cc +@@ -19,7 +19,7 @@ + // --------------------------------------------------------------------------------- + + +-#include <clxclient.h> ++#include "clxclient.h" + #include <X11/keysym.h> + + diff --git a/x11-libs/libclxclient/libclxclient-3.9.0.ebuild b/x11-libs/libclxclient/libclxclient-3.9.0.ebuild new file mode 100644 index 000000000000..08e2f6ede6ea --- /dev/null +++ b/x11-libs/libclxclient/libclxclient-3.9.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +MY_P=${P/lib/} + +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="C++ wrapper library around the X Window System API" +HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/index.html" +SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${MY_P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86" +IUSE="" + +RDEPEND=" + >=dev-libs/libclthreads-2.4.0 + media-libs/freetype:2 + x11-libs/libX11 + x11-libs/libXft +" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-Makefile.patch" +} + +src_compile() { + tc-export CC CXX + emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)" PKGCONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + emake PREFIX="${ED}/usr" LIBDIR="$(get_libdir)" PKGCONFIG="$(tc-getPKG_CONFIG)" install + dodoc AUTHORS +} diff --git a/x11-libs/libclxclient/libclxclient-3.9.2.ebuild b/x11-libs/libclxclient/libclxclient-3.9.2.ebuild new file mode 100644 index 000000000000..9e7caeb01875 --- /dev/null +++ b/x11-libs/libclxclient/libclxclient-3.9.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib toolchain-funcs + +DESCRIPTION="C++ wrapper library around the X Window System API" +HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/index.html" +SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${PV}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc ~x86" +IUSE="" + +CDEPEND=" + dev-libs/libclthreads + media-libs/freetype:2 + x11-libs/libX11 + x11-libs/libXft +" +RDEPEND="${CDEPEND}" +DEPEND="${CDEPEND}" + +S="${WORKDIR}/clxclient-${PV}" + +DOCS=( AUTHORS ) + +PATCHES=( + "${FILESDIR}/${P}-Makefile.patch" + "${FILESDIR}/${P}-enumip-include-fix.patch" +) + +src_compile() { + tc-export CXX + local prefix="${EPREFIX}/usr" + cd "${S}/source" + emake INCDIR="${prefix}/include" LIBDIR="${prefix}/$(get_libdir)" PKGCONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + default + + local prefix="${ED}/usr" + cd "${S}/source" + emake INCDIR="${prefix}/include" LIBDIR="${prefix}/$(get_libdir)" PKGCONFIG="$(tc-getPKG_CONFIG)" install +} diff --git a/x11-libs/libclxclient/metadata.xml b/x11-libs/libclxclient/metadata.xml new file mode 100644 index 000000000000..c870d0eef0ab --- /dev/null +++ b/x11-libs/libclxclient/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 type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> +</maintainer> +</pkgmetadata> |