wok annotate xtrkcad/receipt @ rev 13535
gnome-vfs: repaired (from unwork state); added gnome-vfs-i18n (optional lang files)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 23 11:28:07 2012 +0200 (2012-10-23) |
parents | 940b5937e496 |
children | 23c3aed67cd9 |
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" |
rcx@3913 | 8 DEPENDS="menu-railroad glibc-base glib libgio zlib expat libxml2 gtk+ \ |
rcx@3913 | 9 libgtkhtml fontconfig freetype atk cairo libpng pango pixman libxcb \ |
rcx@3913 | 10 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor \ |
rcx@3913 | 11 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ |
rcx@3913 | 12 xorg-libXinerama xorg-libXrender" |
slaxemulator@8961 | 13 BUILD_DEPENDS="cmake pkg-config gettext zlib-dev \ |
rcx@3913 | 14 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \ |
rcx@3913 | 15 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \ |
rcx@3913 | 16 xorg-libXdmcp-dev" |
rcx@3913 | 17 TARBALL="$PACKAGE-source-$VERSION.tar.gz" |
rcx@3913 | 18 WEB_SITE="http://www.xtrkcad.org/" |
rcx@4442 | 19 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL" |
rcx@4442 | 20 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL" |
rcx@3913 | 21 |
rcx@3913 | 22 # Rules to configure and make the package. |
rcx@3913 | 23 compile_rules() |
rcx@3913 | 24 { |
pascal@12655 | 25 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@12655 | 26 export LDFLAGS="-Wl,--copy-dt-needed-entries" |
pascal@12655 | 27 |
pascal@8974 | 28 XTRKCAD_STUFF=$stuff |
rcx@3913 | 29 |
slaxemulator@8295 | 30 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION |
rcx@3913 | 31 cd $src |
rcx@4037 | 32 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt && |
rcx@3913 | 33 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ |
rcx@3913 | 34 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \ |
rcx@3913 | 35 -D CMAKE_INSTALL_PREFIX=/usr \ |
rcx@3913 | 36 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . && |
rcx@3913 | 37 make PREFIX=/usr && |
rcx@3913 | 38 make DESTDIR=$src/_pkg install && |
rcx@3913 | 39 mkdir -p $src/_pkg/usr/share/pixmaps && |
rcx@4037 | 40 cp -f $XTRKCAD_STUFF/$PACKAGE.png $src/_pkg/usr/share/pixmaps && |
rcx@3913 | 41 mkdir -p $src/_pkg/usr/share/applications && |
rcx@3913 | 42 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications && |
rcx@3928 | 43 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop |
rcx@3913 | 44 } |
rcx@3913 | 45 |
rcx@3913 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3913 | 47 genpkg_rules() |
rcx@3913 | 48 { |
rcx@3913 | 49 mkdir -p $fs/usr/share/$PACKAGE |
rcx@3913 | 50 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE |
rcx@3913 | 51 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE |
rcx@3913 | 52 cp -f $_pkg/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE |
rcx@3913 | 53 cp -a $_pkg/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE |
rcx@3913 | 54 |
rcx@3913 | 55 cp -a $_pkg/usr/share/applications $fs/usr/share |
rcx@3913 | 56 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
rcx@3913 | 57 |
rcx@3913 | 58 cp -a $_pkg/usr/bin $fs/usr |
rcx@3913 | 59 } |