
Receipt for package "gcc+gcj"
# SliTaz package receipt. PACKAGE="gcc+gcj" SOURCE="gcc" VERSION="4.6.3" CATEGORY="development" SHORT_DESC="The GNU Compiler Collection, including the gcj Compiler for Java." MAINTAINER="rcx@zoominternet.net" LICENSE="GPL2" TARBALL="$SOURCE-$VERSION.tar.bz2" WEB_SITE="http://gcc.gnu.org/java/" WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" ECJ_JAR="ecj-latest.jar" ECJ_URL="ftp://sourceware.org/pub/java/$ECJ_JAR" EXTRA_SOURCE_FILES="$ECJ_JAR" PROVIDE="$SOURCE jre jdk" TAGS="compiler C C++ objective-C java" DEPENDS="glibc-base glib gcc-lib-base libgio util-linux-uuid zlib libgomp gmp mpfr python \ gtk+ atk cairo expat fontconfig freetype pango pixman libpng libxcb xcb-util \ xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \ xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXtst alsa-lib elfutils" BUILD_DEPENDS="glibc-dev gawk flex python perl gmp gmp-dev mpfr mpfr-dev mpc-library \ expat-dev zlib-dev fastjar gtk+-dev libart_lgpl-dev xorg-dev xorg-inputproto \ xorg-kbproto xorg-libXtst xorg-randrproto xorg-renderproto xorg-xextproto xorg-xproto \ elfutils elfutils-dev util-linux-uuid-dev" # What is the latest version available today? current_version() { wget -O - 'https://gcc.gnu.org/git/?p=gcc.git;a=summary' 2>/dev/null | \ sed '/ release/!d;s|.*GCC ||;s| release.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's/@mkdir_p@/mkdir -p/' libjava/classpath/lib/copy-vmresources.sh.in # Set HOST_SYSTEM if not defined in tazwok.conf as it should be if [ -z "$HOST_SYSTEM" ] ; then HOST_SYSTEM="$ARCH-slitaz-linux" fi GCC_TARGET=$HOST_SYSTEM # Get ecj.jar needed to build gcj. We have to dl it each time from the # sources repository to ensure that we receive the latest JAR. # (See http://gcc.gnu.org/install/configure.html --with-ecj-jar) if [ ! -f "$ECJ_JAR" ] ; then echo "Downloading ECJ jar to: $(pwd)" wget -c $ECJ_URL # Exit if download failed to avoid errors. if [ ! -f "$ECJ_JAR" ] ; then echo -e "\nECJ jar download failed, exiting. Please check ECJ_URL variable.\n" return 1 fi cp $ECJ_JAR $SOURCES_REPOSITORY fi # Use libiberty.a from binutils. sed -i 's/install_to_$(INSTALL_DEST) //' \ $src/libiberty/Makefile.in || return 1 mkdir -p ../build && cd ../build PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') ../${src##*/}/configure --prefix=/usr --libexecdir=/usr/lib \ --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \ --enable-languages=c,c++,objc,java --enable-shared \ --with-system-zlib \ --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \ --enable-threads=posix --with-tune=$ARCH \ --enable-java-home --with-arch-directory=i386 \ --with-jvm-root-dir=/usr/lib/jvm/java-gcj \ --with-jvm-jar-dir=/usr/lib/jvm-exports/java-gcj \ --with-python-dir=/usr/lib/$PYTHON_LIB/site-packages \ --with-x --enable-java-awt=gtk \ --enable-gtk-cairo \ --enable-lto \ $CONFIGURE_ARGS $GCC_TARGET && make bootstrap && # Make install in the source tree to help creating derived pkgs # and keep $_pkg variable set for genpkg. make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/share/java $fs/usr/share cp -a $install/usr/bin $fs/usr # Copy all libs. Remove libgcc_s.so and libstdc++.so # they goes in gcc-lib-base-$VERSION package. cp -a $install/usr/lib $fs/usr rm $fs/usr/lib/libgcc_s.so* rm $fs/usr/lib/libstdc++.so* rm $fs/usr/lib/libgomp.so* #rm $fs/usr/lib/gcj-$VERSION-11/*.la rm $fs/usr/lib/*.la # Include files. cp -a $install/usr/include $fs/usr } # Post install commands for Tazpkg. post_install() { if [ ! -f "$1/lib/cpp" ] ; then ln -s ../usr/bin/cpp "$1/lib" fi if [ ! -f "$1/usr/bin/cc" ] ; then ln -s gcc "$1/usr/bin/cc" fi }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)