wok-next view xtrkcad/receipt @ rev 20561
Up rrdtool (1.7.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Apr 10 00:40:27 2018 +0300 (2018-04-10) |
parents | d43bf7aae921 |
children | f99935f1778a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xtrkcad"
4 VERSION="4.0.3a1"
5 CATEGORY="games"
6 SHORT_DESC="A CAD program for designing model railroad layouts"
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.xtrkcad.org/"
11 TARBALL="$PACKAGE-source-$VERSION.tar.gz"
12 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL"
13 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
15 BUILD_DEPENDS="cmake gettext zlib-dev \
16 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \
17 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \
18 xorg-libXdmcp-dev"
19 SPLIT="xtrkcad-doc xtrkcad"
21 compile_rules() {
22 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
23 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
25 XTRKCAD_STUFF=$stuff
27 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
28 cd $src
30 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt
32 cmake \
33 -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
34 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
35 -D CMAKE_INSTALL_PREFIX=/usr \
36 -D XTRKCAD_USE_GTK=ON \
37 -D XTRKCAD_USE_GTK_CAIRO=ON \
38 . &&
39 make PREFIX=/usr &&
40 make DESTDIR=$DESTDIR install || return 1
42 install -Dm644 $stuff/xtrkcad.png $install/usr/share/pixmaps/xtrkcad.png
43 install -Dm644 $stuff/xtrkcad.desktop $install/usr/share/applications/xtrkcad.desktop
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 xtrkcad-doc)
49 copy html/ examples/ demos/
50 CAT="games|documentation, examples, and how-to demos"
51 ;;
52 xtrkcad)
53 copy @std @rm
54 DEPENDS="menu-railroad glibc-base glib zlib expat libxml2 gtk+ \
55 libgtkhtml fontconfig freetype atk cairo libpng16 pango \
56 xorg-pixman xorg-libxcb xorg-xcb-util xorg-libX11 xorg-libXau \
57 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
58 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
59 ;;
60 esac
61 }