wok-next view tinyxml/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents 7506b35e1c6f
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tinyxml"
4 VERSION="2.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="A simple, small, C++ XML parser"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.grinninglizard.com/tinyxml/"
11 TARBALL="${PACKAGE}_${VERSION//./_}.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SPLIT="$PACKAGE-dev"
16 compile_rules() {
17 sed -i -e '/^TINYXML_USE_STL/ s|=.*|=YES|' \
18 -e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
20 make &&
21 g++ -fPIC $CXXFLAGS -shared -o libtinyxml.so.0.$VERSION \
22 -Wl,-soname,libtinyxml.so.0 $(ls *.o | grep -v xmltest) || return 1
24 install -Dm755 libtinyxml.so.0.$VERSION $install/usr/lib/libtinyxml.so.0.$VERSION
25 ln -s libtinyxml.so.0.$VERSION $install/usr/lib/libtinyxml.so.0
26 ln -s libtinyxml.so.0 $install/usr/lib/libtinyxml.so
28 install -Dm644 tinyxml.h $install/usr/include/tinyxml.h
29 install -Dm644 tinystr.h $install/usr/include/tinystr.h
30 install -Dm644 $stuff/tinyxml.pc $install/usr/lib/pkgconfig/tinyxml.pc
32 install -Dm755 xmltest $install/usr/bin/xmltest
34 cook_pick_docs docs/*
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 tinyxml) copy @std;;
40 *-dev) copy @dev;;
41 esac
42 }