2010-02-03 10:09:33 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
2009-08-24 19:43:04 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit eutils rpm multilib flag-o-matic toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="LightScribe System Software (binary only library)."
|
|
|
|
HOMEPAGE="http://www.lightscribe.com/downloadSection/linux/index.aspx"
|
|
|
|
SRC_URI="http://download.lightscribe.com/ls/lightscribePublicSDK-${PV}-linux-2.6-intel.rpm"
|
|
|
|
|
|
|
|
LICENSE="lightscribeSDK"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE="multilib"
|
|
|
|
|
2010-02-03 10:09:33 +01:00
|
|
|
DEPEND=">=dev-libs/liblightscribe-${PV}"
|
2009-08-24 19:43:04 +02:00
|
|
|
|
2010-02-03 10:09:33 +01:00
|
|
|
RDEPEND="amd64? ( multilib? ( app-emulation/emul-linux-x86-compat ) )"
|
2009-08-24 19:43:04 +02:00
|
|
|
|
2010-10-08 06:49:34 +02:00
|
|
|
#RESTRICT="fetch"
|
|
|
|
RESTRICT="mirror"
|
2009-08-24 19:43:04 +02:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
|
|
|
epatch "${FILESDIR}"/liblightscribe-gcc43-1.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
|
2009-08-24 22:20:33 +02:00
|
|
|
$(tc-getCXX) ${CXXFLAGS} -lpthread ${LDFLAGS} -L/opt/lightscribe/$(get_libdir)/ -I/usr/include/lightscribe/ \
|
2009-08-24 19:43:04 +02:00
|
|
|
"${WORKDIR}"/usr/share/doc/lightscribe-sdk/sample/lsprint/bmlite.cpp \
|
|
|
|
"${WORKDIR}"/usr/share/doc/lightscribe-sdk/sample/lsprint/lsprint.cpp \
|
2009-08-24 22:37:01 +02:00
|
|
|
-pthread -llightscribe -lm -m32 -o lsprint || die "lsprint compile failed"
|
2009-08-24 19:43:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
|
|
|
|
into /opt
|
|
|
|
dobin lsprint
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_nofetch() {
|
|
|
|
einfo "Please download the appropriate Lightscribe Linux Public SDK archive"
|
|
|
|
einfo "( lightscribePublicSDK-${PV}-linux-2.6-intel.rpm )"
|
|
|
|
einfo "from ${HOMEPAGE} (requires to accept license)"
|
|
|
|
einfo
|
|
|
|
einfo "Then put the file in ${DISTDIR}"
|
|
|
|
}
|