You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
952 B
49 lines
952 B
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI=8
|
||
4 years ago
|
|
||
8 years ago
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Interface to the XKEYBOARD extension in X11"
|
||
|
HOMEPAGE="http://cita.disability.uiuc.edu/software/accessx/freewareaccessx.php"
|
||
|
SRC_URI="http://cmos-eng.rehab.uiuc.edu/${PN}/software/${PN}${PV}.tar.gz"
|
||
2 years ago
|
S="${WORKDIR}"/${PN}
|
||
8 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
8 years ago
|
KEYWORDS="~amd64 ppc sparc x86"
|
||
8 years ago
|
|
||
2 years ago
|
RDEPEND="
|
||
|
dev-lang/tk:=
|
||
|
x11-libs/libX11
|
||
8 years ago
|
x11-libs/libXext
|
||
4 years ago
|
"
|
||
2 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
8 years ago
|
|
||
2 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-build.patch
|
||
|
)
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
2 years ago
|
|
||
8 years ago
|
sed -i \
|
||
|
-e 's:$(CC) $(OPTS) ax.C:$(CC) $(LDFLAGS) $(OPTS) ax.C:' \
|
||
|
Makefile || die
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
2 years ago
|
emake \
|
||
|
CC="$(tc-getCXX)" \
|
||
|
OPTS="${CXXFLAGS}" \
|
||
|
XLIBDIR="-L${ESYSROOT}/usr/$(get_libdir)" \
|
||
8 years ago
|
LLIBS="$($(tc-getPKG_CONFIG) --libs xext) $($(tc-getPKG_CONFIG) --libs x11)"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin accessx ax
|
||
|
einstalldocs
|
||
|
}
|