2008-11-14 19:11:45 +01:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
|
|
# 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"
|
|
|
|
|
2008-11-15 10:06:09 +01:00
|
|
|
LICENSE="lightscribeSDK"
|
2008-11-14 19:11:45 +01:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE="multilib"
|
|
|
|
|
2008-11-14 19:17:19 +01:00
|
|
|
DEPEND=">=app-cdr/liblightscribe-${PV}"
|
2008-11-14 19:11:45 +01:00
|
|
|
|
|
|
|
RDEPEND="virtual/libc
|
|
|
|
x86? ( sys-libs/libstdc++-v3 )
|
|
|
|
amd64? ( multilib? ( app-emulation/emul-linux-x86-compat ) )"
|
|
|
|
|
|
|
|
RESTRICT="mirror strip fetch"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
|
|
|
epatch "${FILESDIR}"/liblightscribe-gcc43-1.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2008-11-15 10:06:09 +01:00
|
|
|
has_multilib_profile && ABI="x86"
|
|
|
|
|
|
|
|
$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -L/opt/liblightscribe/$(get_libdir)/ \
|
|
|
|
-I/usr/include/lightsribe/ -pthread -llightscribe -m32 -o lsprint \
|
2008-11-14 19:11:45 +01:00
|
|
|
"${WORKDIR}"/usr/share/doc/lightscribe-sdk/sample/lsprint/bmlite.cpp \
|
|
|
|
"${WORKDIR}"/usr/share/doc/lightscribe-sdk/sample/lsprint/lsprint.cpp || die "lsprint compile failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
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}"
|
|
|
|
}
|