Files
@ 85f2aba68754
Branch filter:
Location: ohnobinki_overlay/dev-embedded/phidget/phidget-2.1.5.20090105.ebuild - annotation
85f2aba68754
1.5 KiB
application/vnd.gentoo.ebuild
profiles: added ChangeLog and example thirdpartymirrors file
The thirdpartymirrors will be used for redistributing lcab. Maybe I should set up a page to deal with bugs for lcab?
The thirdpartymirrors will be used for redistributing lcab. Maybe I should set up a page to deal with bugs for lcab?
475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 7241e69cc883 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 475bd1a361e8 148b8ce756ad d8fbb291e101 553becd0eb7b 553becd0eb7b 553becd0eb7b fd150c9c9afb fd150c9c9afb fd150c9c9afb 475bd1a361e8 | # Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit versionator eutils java-pkg-opt-2
DESCRIPTION="Phidget USB hardware interface library"
MY_PV="$(get_major_version)$(get_version_component_range 2)"
LONGNAME="Phidgetlinux"
SRC_URI="http://www.phidgets.com/downloads/libraries/${LONGNAME}_${PV}.tar.gz"
HOMEPAGE="http://www.phidgets.com"
SLOT="0"
LICENSE="LGPL"
KEYWORDS="x86 ~alpha ~ppc ~sparc ~hppa ~amd64"
RDEPEND="java? ( >=virtual/jre-1.4 )"
DEPEND="java? ( >=virtual/jdk-1.4 )"
S=${WORKDIR}/${LONGNAME}/${PN}${MY_PV}
src_unpack() {
unpack ${LONGNAME}_${PV}.tar.gz
cd "${S}"
epatch "${FILESDIR}"/${PN}${MY_PV}-libdir.patch
epatch "${FILESDIR}"/${PN}${MY_PV}-2.1.5.20090105-crosscompile.patch
use java && epatch "${FILESDIR}"/${PN}${MY_PV}-java.patch
}
src_compile() {
echo cd "${S}"
cd "${S}"
if use java; then
emake CROSS_COMPILE=${CHOST}- JAVA=y JAVAFLAGS="$(java-pkg_get-jni-cflags)" jni || die "emake failed"
else
emake CROSS_COMPILE=${CHOST}- JAVA=n || die "emake failed"
fi
}
src_install() {
#it seems that phidget's install stuff wants these dirs to exist
dodir /usr/$(get_libdir) && \
dodir /usr/include || die "mkdir failed in creation of destination directories"
USEJAVA=n
use java && USEJAVA=y
emake install INSTALLPREFIX=${D} PREFIX=usr LIBDIR=$(get_libdir) JAVA=${USEJAVA} || die "emake install failed"
if use java; then
java-pkg_regso "${D}"/usr/$(get_libdir)/lib${PN}${MY_PV}.so || die "registering java .so file failed"
fi
}
|