Skip to content

Commit

Permalink
media-video/matroxset: Fix building against sys-libs/ncurses[tinfo] (…
Browse files Browse the repository at this point in the history
…bug #646804).

Package-Manager: Portage-2.3.24, Repoman-2.3.6
  • Loading branch information
Jeroen Roovers committed Mar 2, 2018
1 parent cbef0b0 commit 359ffe8
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions media-video/matroxset/matroxset-0.4.ebuild
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Copyright 1999-2009 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit toolchain-funcs

IUSE=""

DESCRIPTION="Matrox utility to switch output modes (activate tvout)"
HOMEPAGE="ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/"
SRC_URI="ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/${P}.tar.gz"

DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"
LICENSE="GPL-2"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
RDEPEND="
sys-libs/ncurses
"
DEPEND="
${RDEPEND}
virtual/pkgconfig
"

doecho() {
echo "$@"
Expand All @@ -24,7 +27,8 @@ doecho() {
src_compile() {
doecho $(tc-getCC) -o ${PN} \
${CFLAGS} ${LDFLAGS} \
${PN}.c -lncurses \
${PN}.c \
$($(tc-getPKG_CONFIG) --libs ncurses) \
|| die "build failed"

#prepare small README
Expand All @@ -38,7 +42,7 @@ _EOF_
}

src_install() {
dobin matroxset || die
dobin matroxset

dodoc README || die
dodoc README
}

0 comments on commit 359ffe8

Please sign in to comment.