wok view tinyxml/receipt @ rev 24815
updated libnids (1.24 -> 1.26)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 23 06:19:41 2022 +0100 (2022-03-23) |
parents | 922f061231c2 |
children | 29df00e1e19d |
line source
1 # SliTaz package receipt.
3 PACKAGE="tinyxml"
4 VERSION="2.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="TinyXML is a simple, small, C++ XML parser."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="${PACKAGE}_${VERSION//./_}.zip"
10 WEB_SITE="http://www.grinninglizard.com/tinyxml/index.html"
11 WGET_URL="$SF_MIRROR/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
19 sed '/tinyxml_/!d;s|.*tinyxml_||;s|.[zt].*||;s|_|.|g;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make &&
26 ${HOST_SYSTEM}-g++ -m32 -fPIC "$CXXFLAGS" -shared \
27 -o libtinyxml.so.0.$VERSION \
28 -Wl,-soname,libtinyxml.so.0 $(ls *.o | grep -v xmltest)
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/bin
35 cp -a ${src}/xmltest $fs/usr/bin
36 cp -a ${src}/*.so* $fs/usr/lib
37 cd $fs/usr/lib
38 ln -s libtinyxml.so.0.$VERSION libtinyxml.so.0
39 ln -s libtinyxml.so.0.$VERSION libtinyxml.so
40 }