sys-fs/tux3progs: update makefile add bin and tesbin target

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1226 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2009-05-18 05:18:27 +00:00
parent 35c13b0474
commit bb0c2bdcad
4 changed files with 31 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ EHG_REPO_URI="http://hg.tux3.org/tux3/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="test"
RDEPEND="sys-fs/fuse"
DEPEND=""
@@ -26,9 +26,15 @@ src_prepare() {
}
src_compile() {
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "build failed"
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" bin || die "build failed"
if use test; then
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" testbin || die "build failed"
fi
}
src_install() {
emake DISTDIR="${D}" SBINDIR="/usr/sbin" LIBEXECDIR="/usr/libexec/tux3" install || die "install failed"
emake DISTDIR="${D}" PREFIX="/usr" install-bin || die "install failed"
if use test; then
use test && emake DISTDIR="${D}" PREFIX="/usr" install-test || die "install failed"
fi
}