wok-next annotate xtrkcad/receipt @ rev 21586
updated deutex-devel (4.4.902 -> 5.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 23 17:16:40 2020 +0100 (2020-06-23) |
parents | 5669e8b3be70 |
children |
rev | line source |
---|---|
al@20459 | 1 # SliTaz package receipt v2. |
rcx@3913 | 2 |
rcx@3913 | 3 PACKAGE="xtrkcad" |
rcx@4442 | 4 VERSION="4.0.3a1" |
rcx@3913 | 5 CATEGORY="games" |
al@20459 | 6 SHORT_DESC="A CAD program for designing model railroad layouts" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15601 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://www.xtrkcad.org/Wikka/HomePage" |
al@20459 | 10 |
pascal@15601 | 11 TARBALL="$PACKAGE-source-$VERSION.tar.gz" |
pascal@15601 | 12 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL" |
pascal@15601 | 13 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL" |
pascal@15601 | 14 |
al@21020 | 15 BUILD_DEPENDS="cmake gettext-dev zlib-dev gtk2-dev libxml2-dev libgtkhtml-dev \ |
al@21078 | 16 libgtkhtml doxygen libx11-dev xorgproto libxau-dev \ |
al@21078 | 17 libxdmcp-dev" |
al@21020 | 18 SPLIT="$PACKAGE-doc $PACKAGE" |
rcx@3913 | 19 |
al@20459 | 20 compile_rules() { |
pascal@12655 | 21 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
al@20547 | 23 |
pascal@8974 | 24 XTRKCAD_STUFF=$stuff |
al@20547 | 25 |
slaxemulator@8295 | 26 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION |
rcx@3913 | 27 cd $src |
al@20547 | 28 |
al@20547 | 29 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt |
al@20547 | 30 |
al@20547 | 31 cmake \ |
al@20547 | 32 -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ |
rcx@3913 | 33 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \ |
rcx@3913 | 34 -D CMAKE_INSTALL_PREFIX=/usr \ |
al@20547 | 35 -D XTRKCAD_USE_GTK=ON \ |
al@20547 | 36 -D XTRKCAD_USE_GTK_CAIRO=ON \ |
al@20547 | 37 . && |
rcx@3913 | 38 make PREFIX=/usr && |
al@21020 | 39 make DESTDIR=$install install || return 1 |
al@20547 | 40 |
al@20547 | 41 install -Dm644 $stuff/xtrkcad.png $install/usr/share/pixmaps/xtrkcad.png |
al@20547 | 42 install -Dm644 $stuff/xtrkcad.desktop $install/usr/share/applications/xtrkcad.desktop |
rcx@3913 | 43 } |
rcx@3913 | 44 |
al@20459 | 45 genpkg_rules() { |
al@20459 | 46 case $PACKAGE in |
al@20547 | 47 xtrkcad-doc) |
al@20547 | 48 copy html/ examples/ demos/ |
al@20547 | 49 CAT="games|documentation, examples, and how-to demos" |
al@20547 | 50 ;; |
al@20459 | 51 xtrkcad) |
al@20547 | 52 copy @std @rm |
al@21017 | 53 DEPENDS="menu-railroad glibc-base glib zlib expat libxml2 gtk2 \ |
al@21105 | 54 libgtkhtml fontconfig freetype atk libcairo libpng pango \ |
al@21078 | 55 pixman libxcb xcb-util libx11 libxau \ |
al@21078 | 56 libxcomposite libxcursor libxdamage libxdmcp \ |
al@21078 | 57 libxext libxfixes libxinerama libxrender" |
al@20459 | 58 ;; |
al@20459 | 59 esac |
rcx@3913 | 60 } |