1
0
Fork 0
frozenports/devel/binutils/SCHEMATIC

36 lines
1.1 KiB
Bash

#!/bin/sh
name="binutils"
short_desc="GNU binary utils"
desc="The GNU Binutils are a collection of binary tools. The main ones are:
* ld - the GNU linker.
* as - the GNU assembler."
category="devel"
version="2.41"
maintainer="ffqq@danwin1210.de"
www="https://www.gnu.org/software/binutils/"
master_site="ftp://ftp.gnu.org/gnu/binutils"
source_name="$name-$version.tar.xz"
license_logic="and" # accepted values: single, and, or
licenses=("GPLv3" "LGPL3")
build_dependencies=("devel/gmake" "devel/gcc")
run_dependencies=("system/glibc")
build_process() {
cd $name-$version || exit 1
mkdir build || exit 1
cd build || exit 1
../configure --prefix=/usr \
--sysconfdir=/etc \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd \
--with-system-zlib
make -j$(nproc)
make DESTDIR="$TAMANDUA_STAGE_DIR" install
rm -r $TAMANDUA_STAGE_DIR/usr/share/info
}