wok-6.x view tinyxml/receipt @ rev 24943
BootProg: clear cmdline (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 20 16:57:09 2022 +0000 (2022-04-20) |
parents | 922f061231c2 |
children |
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 }