wok view djmount/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | b0069c845544 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="djmount"
4 VERSION="0.71"
5 CATEGORY="multimedia"
6 TAGS="upnp"
7 SHORT_DESC="Mount uPnP mediaservers content as a Linux filesystem."
8 MAINTAINER="slitaz@kacper.se"
9 LICENSE="GPL2"
10 WEB_SITE="https://djmount.sourceforge.net"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="fuse2 readline"
16 BUILD_DEPENDS="automake bash fuse2-dev readline-dev" # libupnp libupnp-dev
17 # included in source archive
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/djmount/files/djmount/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/djmount/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # sed -i 's|upnptools.h>|&\n#include <upnp/upnp.h>|' \
31 # djmount/upnp_util.h
33 # to satisfy #include <upnp/....h>
34 ln -s $src/libupnp/ixml/inc libupnp/ixml/upnp
35 ln -s $src/libupnp/upnp/inc libupnp/upnp/upnp
36 ln -s $src/libupnp/threadutil/inc libupnp/threadutil/upnp
38 ln -s $src/libupnp/ixml/inc/ixml.h libupnp/upnp/ixml.h
39 ln -s $src/libupnp/threadutil/inc/ithread.h djmount/ithread.h
41 export LIBUPNP_CFLAGS="-I$src/libupnp/threadutil \
42 -I$src/libupnp/upnp -I$src/libupnp/ixml"
44 ./configure \
45 CONFIG_SHELL=/bin/bash \
46 --prefix=/usr \
47 --infodir=/usr/share/info \
48 --mandir=/usr/share/man \
49 $CONFIGURE_ARGS 2>&1 | grep -v /config.rpath: &&
50 make -j1 &&
51 make -j1 install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr
58 cp -a $install/usr/bin $fs/usr
59 }