wok-next view xtrkcad/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 5669e8b3be70 |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.xtrkcad.org/Wikka/HomePage"
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-dev zlib-dev gtk2-dev libxml2-dev libgtkhtml-dev \
16 libgtkhtml doxygen xorg-libX11-dev xorg-xorgproto xorg-libXau-dev \
17 xorg-libXdmcp-dev"
18 SPLIT="$PACKAGE-doc $PACKAGE"
20 compile_rules() {
21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
24 XTRKCAD_STUFF=$stuff
26 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
27 cd $src
29 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt
31 cmake \
32 -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
33 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
34 -D CMAKE_INSTALL_PREFIX=/usr \
35 -D XTRKCAD_USE_GTK=ON \
36 -D XTRKCAD_USE_GTK_CAIRO=ON \
37 . &&
38 make PREFIX=/usr &&
39 make DESTDIR=$install install || return 1
41 install -Dm644 $stuff/xtrkcad.png $install/usr/share/pixmaps/xtrkcad.png
42 install -Dm644 $stuff/xtrkcad.desktop $install/usr/share/applications/xtrkcad.desktop
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 xtrkcad-doc)
48 copy html/ examples/ demos/
49 CAT="games|documentation, examples, and how-to demos"
50 ;;
51 xtrkcad)
52 copy @std @rm
53 DEPENDS="menu-railroad glibc-base glib zlib expat libxml2 gtk2 \
54 libgtkhtml fontconfig freetype atk cairo libpng16 pango \
55 xorg-pixman xorg-libxcb xorg-xcb-util xorg-libX11 xorg-libXau \
56 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
57 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
58 ;;
59 esac
60 }