wok annotate codeblocks/receipt @ rev 24493
updated dokuwiki (20180422b -> 20200729)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 19 11:02:17 2022 +0100 (2022-02-19) |
parents | fa74795599b1 |
children | 6b33f9da53d4 |
rev | line source |
---|---|
mallory@3102 | 1 # SliTaz package receipt. |
mallory@3102 | 2 |
mallory@3102 | 3 PACKAGE="codeblocks" |
Hans-G?nter@22609 | 4 VERSION="17.12" |
mallory@3102 | 5 CATEGORY="development" |
Hans-G?nter@22609 | 6 TAGS="IDE" |
mallory@3102 | 7 SHORT_DESC="An open source, cross platform, free C++ IDE." |
mallory@3102 | 8 MAINTAINER="stefanossofroniou542@gmail.com" |
pascal@14999 | 9 LICENSE="GPL3" |
mallory@3102 | 10 WEB_SITE="http://www.codeblocks.org/" |
mallory@3102 | 11 |
Hans-G?nter@22609 | 12 TARBALL="${PACKAGE}_$VERSION.tar.xz" |
Hans-G?nter@22609 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@22609 | 14 |
mojo@23856 | 15 DEPENDS="gamin gcc49-lib-base hunspell wxWidgets" |
mojo@23856 | 16 BUILD_DEPENDS="autoconf automake expat-dev fontconfig-dev gamin-dev gcc49 |
mojo@23856 | 17 gcc49-lib-base gnome-icon-theme hunspell-dev libboost-dev libtool |
mojo@23856 | 18 wxWidgets-dev xorg-libXau-dev xorg-libXdmcp-dev zip" |
pascal@14999 | 19 |
pascal@24373 | 20 # What is the latest version available today? |
pascal@24373 | 21 current_version() |
pascal@24373 | 22 { |
pascal@24373 | 23 wget -O - https://sourceforge.net/projects/codeblocks/files/Sources/ 2>/dev/null | \ |
pascal@24373 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24373 | 25 sed '/scope="row/!d;s|.*/Sources/||;s|/.*||;q' |
pascal@24373 | 26 } |
pascal@24373 | 27 |
mallory@3102 | 28 # Rules to configure and make the package. |
mallory@3102 | 29 compile_rules() |
mallory@3102 | 30 { |
pascal@12652 | 31 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
Hans-G?nter@22610 | 32 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lstdc++" |
Hans-G?nter@22609 | 33 |
Hans-G?nter@22609 | 34 # before 10.05 |
Hans-G?nter@22609 | 35 # busybox patch -p1 -i $stuff/glib.u |
Hans-G?nter@22609 | 36 |
Hans-G?nter@22609 | 37 # --with-boost=no does not work |
Hans-G?nter@22609 | 38 # because(?) plugin NassiShneiderman/CParser needs libboost-dev |
Hans-G?nter@22609 | 39 |
Hans-G?nter@22609 | 40 ./configure \ |
mojo@23856 | 41 CC=gcc-49 \ |
mojo@23856 | 42 CXX=g++-49 \ |
Hans-G?nter@22609 | 43 --with-boost-libdir=/usr/lib \ |
Hans-G?nter@22609 | 44 --with-contrib-plugins="all, -help" \ |
Hans-G?nter@22609 | 45 --prefix=/usr \ |
mallory@3102 | 46 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 47 make $MAKEFLAGS && |
slaxemulator@8751 | 48 make DESTDIR=$DESTDIR install |
mallory@3102 | 49 } |
mallory@3102 | 50 |
mallory@3102 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@3102 | 52 genpkg_rules() |
mallory@3102 | 53 { |
Hans-G?nter@22609 | 54 mkdir -p $fs/usr/lib |
Hans-G?nter@22609 | 55 mkdir -p $fs/usr/share |
Hans-G?nter@22609 | 56 |
Hans-G?nter@22609 | 57 cp -a $install/usr/include $fs/usr |
Hans-G?nter@22609 | 58 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
Hans-G?nter@22609 | 59 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22609 | 60 cp -a $install/usr/lib/*.*a $fs/usr/lib |
Hans-G?nter@22609 | 61 cp -a $install/usr/lib/codeblocks $fs/usr/lib |
Hans-G?nter@22609 | 62 cp -a $install/usr/share/codeblocks $fs/usr/share |
Hans-G?nter@22609 | 63 cp -a $install/usr/bin $fs/usr |
mojo@23856 | 64 |
mojo@23856 | 65 # Remove plugin that load fail error on start. |
mojo@23856 | 66 rm $fs/usr/lib/codeblocks/plugins/libNassiShneiderman.* |
mallory@3102 | 67 } |