wok-next view xtrkcad/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5669e8b3be70
children
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 libx11-dev xorgproto libxau-dev \
17 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 libcairo libpng pango \
55 pixman libxcb xcb-util libx11 libxau \
56 libxcomposite libxcursor libxdamage libxdmcp \
57 libxext libxfixes libxinerama libxrender"
58 ;;
59 esac
60 }