| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | |
| 2 # Distributed under the terms of the GNU General Public License v2 | |
| 3 | |
| 4 EAPI=2 | |
| 5 | |
| 6 inherit toolchain-funcs | |
| 7 | |
| 8 DESCRIPTION="Chrome OS base library." | |
| 9 HOMEPAGE="http://src.chromium.org" | |
| 10 SRC_URI="" | |
| 11 LICENSE="BSD" | |
| 12 SLOT="0" | |
| 13 KEYWORDS="amd64 x86 arm" | |
| 14 IUSE="" | |
| 15 | |
| 16 DEPEND="x11-libs/libX11 | |
| 17 x11-proto/inputproto | |
| 18 x11-proto/xproto" | |
| 19 | |
| 20 RDEPEND="" | |
| 21 | |
| 22 src_unpack() { | |
| 23 local synaptics="${CHROMEOS_ROOT}/src/third_party/synaptics/" | |
| 24 mkdir -p "${S}" | |
| 25 cp -a "${synaptics}"/* "${S}" || die | |
| 26 } | |
| 27 | |
| 28 src_compile() { | |
| 29 if tc-is-cross-compiler ; then | |
| 30 tc-getCC | |
| 31 tc-getCXX | |
| 32 tc-getAR | |
| 33 tc-getRANLIB | |
| 34 tc-getLD | |
| 35 tc-getNM | |
| 36 export PKG_CONFIG_PATH="${ROOT}/usr/lib/pkgconfig/" | |
| 37 export CCFLAGS="$CFLAGS" | |
| 38 fi | |
| 39 | |
| 40 scons || die "third_party/synaptics compile failed." | |
| 41 } | |
| 42 | |
| 43 src_install() { | |
| 44 mkdir -p "${D}/usr/lib" \ | |
| 45 "${D}/usr/include/" | |
| 46 | |
| 47 install -m0644 "${S}/synclient.h" "${D}/usr/include/" | |
| 48 install -m0644 "${S}/libsynaptics.a" "${D}/usr/lib/" | |
| 49 } | |
| OLD | NEW |