diff options
Diffstat (limited to 'x11-misc/xcb/xcb-2.4-r2.ebuild')
-rw-r--r-- | x11-misc/xcb/xcb-2.4-r2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/x11-misc/xcb/xcb-2.4-r2.ebuild b/x11-misc/xcb/xcb-2.4-r2.ebuild new file mode 100644 index 000000000000..6f10de40e823 --- /dev/null +++ b/x11-misc/xcb/xcb-2.4-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Marc Lehmann's improved X Cut Buffers" +HOMEPAGE="http://oldhome.schmorp.de/marc/xcb.html" +SRC_URI="http://oldhome.schmorp.de/marc/data/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~riscv ~x86" +IUSE="motif" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXext + x11-libs/libXt + motif? ( >=x11-libs/motif-2.3:0 ) +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" + +PATCHES=( + "${FILESDIR}"/${PN}-modern-c-porting.patch +) + +src_compile() { + local gui libs + + if use motif; then + gui="-DMOTIF" + libs="-lXm -lXt -lX11" + else + gui="-DATHENA" + libs="-lXaw -lXt -lXext -lX11" + fi + + emake \ + -f Makefile.std xcb Xcb.ad \ + CC="$(tc-getCC)" \ + CPP="$(tc-getCPP)" \ + CFLAGS="${CFLAGS} ${gui}" \ + GUI="${gui}" \ + LIBS="${libs}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin xcb + newman xcb.man xcb.1 + insinto /usr/share/X11/app-defaults + newins Xcb.ad Xcb +} |