wok-6.x view ola/receipt @ rev 24780
transmission: autoconf 2.70+ bug workaround
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 20:17:02 2022 +0000 (2022-03-19) |
parents | 5ea0ce1cecc0 |
children | e1e1678c5265 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ola"
4 VERSION="0.9.8"
5 CATEGORY="network"
6 SHORT_DESC="Open Lighting Architecture"
7 MAINTAINER="kult-ex@aon.at"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.openlighting.org/ola/"
11 WGET_URL="https://github.com/OpenLightingProject/ola/archive/$VERSION.tar.gz"
13 DEPENDS="libftdi liblo libmicrohttpd ncurses protobuf"
14 BUILD_DEPENDS="libtool flex protobuf-dev util-linux-uuid-dev cppunit-dev \
15 libmicrohttpd-dev libftdi-dev libusb-dev liblo-dev ncurses-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|AM_PATH_CPPUNIT(\[|PKG_CHECK_MODULES([CPPUNIT], [cppunit >= |' configure.ac
27 sed -i 's|libusb_set_debug(m_context,\(.*\);|#if LIBUSB_API_VERSION >= 0x01000106\
28 libusb_set_option(m_context, LIBUSB_OPTION_LOG_LEVEL,\1;\
29 #else\
30 \0\
31 #endif|' tools/ja-rule/USBDeviceManager.cpp plugins/usbdmx/*yncPluginImpl.cpp
32 export LDFLAGS="$LDFLAGS -ltinfo"
33 autoreconf -i
34 ./configure \
35 --prefix=/usr \
36 $CONFIGURE_ARGS &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib/olad
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/share $fs/usr
47 }