wok-current annotate xtrkcad/receipt @ rev 18506
atril: update bdeps
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sat Oct 17 13:37:02 2015 -0300 (2015-10-17) |
parents | 23c3aed67cd9 |
children | e6a4cd87fdcb |
rev | line source |
---|---|
rcx@3913 | 1 # SliTaz package receipt. |
rcx@3913 | 2 |
rcx@3913 | 3 PACKAGE="xtrkcad" |
rcx@4442 | 4 VERSION="4.0.3a1" |
rcx@3913 | 5 CATEGORY="games" |
rcx@3913 | 6 SHORT_DESC="A CAD program for designing model railroad layouts." |
rcx@3913 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@15601 | 8 LICENSE="GPL2" |
pascal@15601 | 9 TARBALL="$PACKAGE-source-$VERSION.tar.gz" |
pascal@15601 | 10 WEB_SITE="http://www.xtrkcad.org/" |
pascal@15601 | 11 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL" |
pascal@15601 | 12 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL" |
pascal@15601 | 13 |
rcx@3913 | 14 DEPENDS="menu-railroad glibc-base glib libgio zlib expat libxml2 gtk+ \ |
rcx@3913 | 15 libgtkhtml fontconfig freetype atk cairo libpng pango pixman libxcb \ |
rcx@3913 | 16 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor \ |
rcx@3913 | 17 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ |
rcx@3913 | 18 xorg-libXinerama xorg-libXrender" |
slaxemulator@8961 | 19 BUILD_DEPENDS="cmake pkg-config gettext zlib-dev \ |
rcx@3913 | 20 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \ |
rcx@3913 | 21 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \ |
rcx@3913 | 22 xorg-libXdmcp-dev" |
rcx@3913 | 23 |
rcx@3913 | 24 # Rules to configure and make the package. |
rcx@3913 | 25 compile_rules() |
rcx@3913 | 26 { |
pascal@12655 | 27 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
pascal@12655 | 29 |
pascal@8974 | 30 XTRKCAD_STUFF=$stuff |
rcx@3913 | 31 |
slaxemulator@8295 | 32 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION |
rcx@3913 | 33 cd $src |
rcx@4037 | 34 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt && |
rcx@3913 | 35 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ |
rcx@3913 | 36 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \ |
rcx@3913 | 37 -D CMAKE_INSTALL_PREFIX=/usr \ |
rcx@3913 | 38 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . && |
rcx@3913 | 39 make PREFIX=/usr && |
pascal@15601 | 40 make DESTDIR=$DESTDIR install && |
pascal@15601 | 41 mkdir -p $DESTDIR/usr/share/pixmaps && |
pascal@15601 | 42 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps && |
pascal@15601 | 43 mkdir -p $DESTDIR/usr/share/applications && |
pascal@15601 | 44 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications && |
pascal@15601 | 45 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/usr/share/applications/*.desktop |
rcx@3913 | 46 } |
rcx@3913 | 47 |
rcx@3913 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3913 | 49 genpkg_rules() |
rcx@3913 | 50 { |
rcx@3913 | 51 mkdir -p $fs/usr/share/$PACKAGE |
pascal@15601 | 52 cp -f $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE |
pascal@15601 | 53 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE |
pascal@15601 | 54 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE |
pascal@15601 | 55 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE |
rcx@3913 | 56 |
pascal@15601 | 57 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15601 | 58 cp -a $install/usr/share/pixmaps $fs/usr/share |
rcx@3913 | 59 |
pascal@15601 | 60 cp -a $install/usr/bin $fs/usr |
rcx@3913 | 61 } |