add lsprint

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@560 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2008-11-14 18:11:45 +00:00
parent 46a34e19e3
commit 107189fa27
3 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,3 @@
AUX liblightscribe-gcc43-1.patch 717 RMD160 9292377e27207bdc66e4a01632467f15448239ab SHA1 8e64ad6c7522b11c62b6ee1fbea7800f531c96c3 SHA256 832c4f2ae472c308499af7dcee11afb42a7a241b5f1133847105fc36303d806a
DIST lightscribePublicSDK-1.14.32.1-linux-2.6-intel.rpm 622100 RMD160 42ee805c828e2d4302a889c4f73fe7c225eaca05 SHA1 8645933eefdc84dc4d775601da94253cf0519e6e SHA256 34aea8ce43dc2887e9c99c995e2af1d16d82f773fccd3fa7f674ac05600828e8
EBUILD lightscribe-lsprint-1.14.32.1.ebuild 1391 RMD160 aceba89442c5fd316137f7c80e95be0d938f722b SHA1 208f637b2cd3f008c7d775c801acfbd445279063 SHA256 e7add67313d53785b4b09f07cc2af68b51e3d2b48fb46f81cbc9e29627b95787

View File

@ -0,0 +1,19 @@
Submitted By: Mario Fetka (mario-fetka at gmx dot at)
Date: 2008-07-30
Initial Package Version: 1.14.17.1
Origin: me
Upstream Status: unknown
Description: make sample compile with gcc 4.3
diff -Naur work.orig/usr/share/doc/lightscribe-sdk/sample/lsprint/lsprint.cpp work/usr/share/doc/lightscribe-sdk/sample/lsprint/lsprint.cpp
--- work.orig/usr/share/doc/lightscribe-sdk/sample/lsprint/lsprint.cpp 2008-06-09 19:16:18.000000000 +0000
+++ work/usr/share/doc/lightscribe-sdk/sample/lsprint/lsprint.cpp 2008-07-30 18:17:33.000000000 +0000
@@ -23,6 +23,8 @@
// Copyright (C) 2005-2006 Hewlett-Packard Development Company, LP
//
+#include <cstdlib>
+#include <cstring>
// import LSAPI
#include "lightscribe.h"

View File

@ -0,0 +1,48 @@
# 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"
LICENSE="lightscribe lightscribeSDK"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="multilib"
DEPEND=""
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() {
$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -I/usr/include/lightscribe -pthread -lm -llightscribe -m32 -o lsprint \
"${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() {
has_multilib_profile && ABI="x86"
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}"
}