wok annotate gcc+gcj/receipt @ rev 25139
updated phpsysinfo (3.3.2 -> 3.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 11:19:44 2022 +0100 (2022-06-29) |
parents | 5e4cd567bdae |
children |
rev | line source |
---|---|
rcx@3325 | 1 # SliTaz package receipt. |
rcx@3325 | 2 |
rcx@3325 | 3 PACKAGE="gcc+gcj" |
rcx@3325 | 4 SOURCE="gcc" |
pankso@12541 | 5 VERSION="4.6.3" |
rcx@3325 | 6 CATEGORY="development" |
rcx@3325 | 7 SHORT_DESC="The GNU Compiler Collection, including the gcj Compiler for Java." |
rcx@3325 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@15000 | 9 LICENSE="GPL2" |
pankso@9964 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@9964 | 11 WEB_SITE="http://gcc.gnu.org/java/" |
pankso@9964 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
pascal@18931 | 13 ECJ_JAR="ecj-latest.jar" |
pascal@18931 | 14 ECJ_URL="ftp://sourceware.org/pub/java/$ECJ_JAR" |
pascal@18931 | 15 EXTRA_SOURCE_FILES="$ECJ_JAR" |
pankso@9964 | 16 PROVIDE="$SOURCE jre jdk" |
pascal@13033 | 17 TAGS="compiler C C++ objective-C java" |
pankso@9964 | 18 |
pankso@12481 | 19 DEPENDS="glibc-base glib gcc-lib-base libgio util-linux-uuid zlib libgomp gmp mpfr python \ |
rcx@3686 | 20 gtk+ atk cairo expat fontconfig freetype pango pixman libpng libxcb xcb-util \ |
rcx@3325 | 21 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \ |
rcx@3325 | 22 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ |
pascal@5960 | 23 xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXtst alsa-lib elfutils" |
pascal@5399 | 24 BUILD_DEPENDS="glibc-dev gawk flex python perl gmp gmp-dev mpfr mpfr-dev mpc-library \ |
rcx@3781 | 25 expat-dev zlib-dev fastjar gtk+-dev libart_lgpl-dev xorg-dev xorg-inputproto \ |
pascal@5943 | 26 xorg-kbproto xorg-libXtst xorg-randrproto xorg-renderproto xorg-xextproto xorg-xproto \ |
pascal@15643 | 27 elfutils elfutils-dev util-linux-uuid-dev" |
rcx@3325 | 28 |
pascal@24540 | 29 # What is the latest version available today? |
pascal@24540 | 30 current_version() |
pascal@24540 | 31 { |
pascal@24540 | 32 wget -O - 'https://gcc.gnu.org/git/?p=gcc.git;a=summary' 2>/dev/null | \ |
pascal@24540 | 33 sed '/ release/!d;s|.*GCC ||;s| release.*||' | sort -Vr | sed q |
pascal@24540 | 34 } |
pascal@24540 | 35 |
rcx@3325 | 36 # Rules to configure and make the package. |
rcx@3325 | 37 compile_rules() |
rcx@3325 | 38 { |
pascal@15357 | 39 sed -i 's/@mkdir_p@/mkdir -p/' libjava/classpath/lib/copy-vmresources.sh.in |
slaxemulator@10421 | 40 # Set HOST_SYSTEM if not defined in tazwok.conf as it should be |
slaxemulator@10421 | 41 if [ -z "$HOST_SYSTEM" ] ; then |
pascal@13878 | 42 HOST_SYSTEM="$ARCH-slitaz-linux" |
rcx@3686 | 43 fi |
slaxemulator@10421 | 44 GCC_TARGET=$HOST_SYSTEM |
rcx@3686 | 45 |
pankso@9970 | 46 # Get ecj.jar needed to build gcj. We have to dl it each time from the |
pankso@9970 | 47 # sources repository to ensure that we receive the latest JAR. |
rcx@3325 | 48 # (See http://gcc.gnu.org/install/configure.html --with-ecj-jar) |
pankso@9970 | 49 if [ ! -f "$ECJ_JAR" ] ; then |
pankso@9970 | 50 echo "Downloading ECJ jar to: $(pwd)" |
pankso@9970 | 51 wget -c $ECJ_URL |
rcx@3325 | 52 # Exit if download failed to avoid errors. |
pankso@9970 | 53 if [ ! -f "$ECJ_JAR" ] ; then |
rcx@3325 | 54 echo -e "\nECJ jar download failed, exiting. Please check ECJ_URL variable.\n" |
gokhlayeh@8504 | 55 return 1 |
rcx@3325 | 56 fi |
pascal@18933 | 57 cp $ECJ_JAR $SOURCES_REPOSITORY |
rcx@3325 | 58 fi |
rcx@3325 | 59 |
rcx@3325 | 60 # Use libiberty.a from binutils. |
rcx@3325 | 61 sed -i 's/install_to_$(INSTALL_DEST) //' \ |
gokhlayeh@8504 | 62 $src/libiberty/Makefile.in || return 1 |
al@18734 | 63 mkdir -p ../build && cd ../build |
pankso@12541 | 64 |
al@18734 | 65 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
al@18734 | 66 ../${src##*/}/configure --prefix=/usr --libexecdir=/usr/lib \ |
rcx@3325 | 67 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \ |
pascal@6401 | 68 --enable-languages=c,c++,objc,java --enable-shared \ |
pascal@6401 | 69 --with-system-zlib \ |
rcx@3325 | 70 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \ |
pascal@13878 | 71 --enable-threads=posix --with-tune=$ARCH \ |
rcx@3325 | 72 --enable-java-home --with-arch-directory=i386 \ |
rcx@3686 | 73 --with-jvm-root-dir=/usr/lib/jvm/java-gcj \ |
rcx@3686 | 74 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-gcj \ |
pascal@6593 | 75 --with-python-dir=/usr/lib/$PYTHON_LIB/site-packages \ |
rcx@3325 | 76 --with-x --enable-java-awt=gtk \ |
rcx@3686 | 77 --enable-gtk-cairo \ |
slaxemulator@6751 | 78 --enable-lto \ |
pankso@9970 | 79 $CONFIGURE_ARGS $GCC_TARGET && |
al@18734 | 80 make bootstrap && |
al@18734 | 81 # Make install in the source tree to help creating derived pkgs |
al@18734 | 82 # and keep $_pkg variable set for genpkg. |
al@18734 | 83 make install |
rcx@3325 | 84 } |
rcx@3325 | 85 |
rcx@3325 | 86 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3325 | 87 genpkg_rules() |
rcx@3325 | 88 { |
rcx@3325 | 89 mkdir -p $fs/usr/share |
pascal@13878 | 90 cp -a $install/usr/share/java $fs/usr/share |
al@18734 | 91 cp -a $install/usr/bin $fs/usr |
al@18734 | 92 # Copy all libs. Remove libgcc_s.so and libstdc++.so |
al@18734 | 93 # they goes in gcc-lib-base-$VERSION package. |
al@18734 | 94 cp -a $install/usr/lib $fs/usr |
al@18734 | 95 rm $fs/usr/lib/libgcc_s.so* |
al@18734 | 96 rm $fs/usr/lib/libstdc++.so* |
al@18734 | 97 rm $fs/usr/lib/libgomp.so* |
al@18734 | 98 #rm $fs/usr/lib/gcj-$VERSION-11/*.la |
al@18734 | 99 rm $fs/usr/lib/*.la |
al@18734 | 100 # Include files. |
al@18734 | 101 cp -a $install/usr/include $fs/usr |
rcx@3325 | 102 } |
rcx@3325 | 103 |
rcx@3325 | 104 # Post install commands for Tazpkg. |
rcx@3325 | 105 post_install() |
rcx@3325 | 106 { |
pascal@18730 | 107 if [ ! -f "$1/lib/cpp" ] ; then |
pascal@18730 | 108 ln -s ../usr/bin/cpp "$1/lib" |
rcx@3325 | 109 fi |
pascal@18730 | 110 if [ ! -f "$1/usr/bin/cc" ] ; then |
pascal@18730 | 111 ln -s gcc "$1/usr/bin/cc" |
rcx@3325 | 112 fi |
rcx@3325 | 113 } |