mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
binutils: update recipe to new versioning scheme
* 130421 -> 2013_04_21 * Remove 110711 recipe. It would otherwise appear to have a greater version.
This commit is contained in:
@@ -1,169 +0,0 @@
|
||||
SUMMARY="The GNU assembler, linker and binary utilities"
|
||||
HOMEPAGE="http://www.gnu.org/software/binutils"
|
||||
SRC_URI="git+git://github.com/haiku/BuildtoolsPM.git#9f9e588ceb7baa6bc5ac0193fb90212fc7fd667c"
|
||||
REVISION="2"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
LICENSE="
|
||||
GNU GPL v2
|
||||
GNU LGPL v2
|
||||
"
|
||||
COPYRIGHT="1988-2006 Free Software Foundation, Inc."
|
||||
|
||||
|
||||
PROVIDES="
|
||||
binutils = $portVersion compat >= 2.17
|
||||
cmd:addr2line = $portVersion compat >= 2.17
|
||||
cmd:ar = $portVersion compat >= 2.17
|
||||
cmd:as = $portVersion compat >= 2.17
|
||||
cmd:c++filt = $portVersion compat >= 2.17
|
||||
cmd:gprof = $portVersion compat >= 2.17
|
||||
cmd:ld = $portVersion compat >= 2.17
|
||||
cmd:nm = $portVersion compat >= 2.17
|
||||
cmd:objcopy = $portVersion compat >= 2.17
|
||||
cmd:objdump = $portVersion compat >= 2.17
|
||||
cmd:ranlib = $portVersion compat >= 2.17
|
||||
cmd:readelf = $portVersion compat >= 2.17
|
||||
cmd:size = $portVersion compat >= 2.17
|
||||
cmd:strings = $portVersion compat >= 2.17
|
||||
cmd:strip = $portVersion compat >= 2.17
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:autoconf
|
||||
binutils
|
||||
gcc
|
||||
cmd:flex
|
||||
cmd:make
|
||||
cmd:sed
|
||||
cmd:tar
|
||||
texinfo
|
||||
"
|
||||
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
BUILD_PACKAGE_ACTIVATION_PHASE=INSTALL
|
||||
|
||||
binutilsDir=$(pwd)/legacy/binutils
|
||||
relativeArchInstallDir="develop/tools/${portVersionedName}"
|
||||
archInstallDir="$prefix/$relativeArchInstallDir"
|
||||
objectsDir=$(pwd)/../${portVersionedName}-obj
|
||||
binutilsObjectsDir=$objectsDir/binutils
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf $objectsDir
|
||||
|
||||
# Touch all *.info files, as newer texinfos don't like their format
|
||||
(cd $binutilsDir; find . -name \*.info | xargs touch)
|
||||
|
||||
# build binutils
|
||||
mkdir -p $binutilsObjectsDir
|
||||
cd $binutilsObjectsDir
|
||||
CFLAGS="-O2" CXXFLAGS="-O2" "$binutilsDir/configure" \
|
||||
--prefix=$prefix --exec-prefix=$archInstallDir \
|
||||
--bindir=$prefix/bin --libdir=$prefix/lib \
|
||||
--includedir=$prefix/develop/headers/binutils \
|
||||
--mandir=$prefix/documentation/man \
|
||||
--with-htmldir=documentation/html/binutils \
|
||||
--disable-nls --enable-shared=yes
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd $binutilsObjectsDir
|
||||
archName=$(grep '^target_alias' Makefile | cut -d= -f2)
|
||||
|
||||
make install
|
||||
make install-html
|
||||
|
||||
### HTML documentation ####################################
|
||||
|
||||
echo "Organizing HTML documentation..."
|
||||
html_base=$prefix/documentation/html/binutils
|
||||
cd $html_base
|
||||
|
||||
mv as.html as
|
||||
ln -sf as/index.html as.html
|
||||
mv bfd.html bfd
|
||||
ln -sf bfd/index.html bfd.html
|
||||
mv binutils.html binutils
|
||||
ln -sf binutils/index.html binutils.html
|
||||
mv gprof.html gprof
|
||||
ln -sf gprof/index.html gprof.html
|
||||
mv ld.html ld
|
||||
ln -sf ld/index.html ld.html
|
||||
rm standards.html
|
||||
|
||||
### Strip #################################################
|
||||
|
||||
echo "Strip debug info"
|
||||
|
||||
cd $prefix
|
||||
find bin -type f | xargs -r strip --strip-debug
|
||||
strip --strip-debug lib/*.a
|
||||
strip --strip-debug $archInstallDir/$archName/bin/*
|
||||
|
||||
### Symlinks ##############################################
|
||||
|
||||
echo "Creating required symlinks"
|
||||
|
||||
# remove duplicate architecture-dependent binaries from $prefix/bin
|
||||
cd $prefix/bin
|
||||
rm ar as ld nm objdump ranlib strip
|
||||
|
||||
# make all tools available via default paths if these are
|
||||
# the system binutils
|
||||
if [ $architecture = 'x86_gcc2' ]; then
|
||||
echo "Symlinking binaries into default path"
|
||||
mkdir -p $prefix/bin
|
||||
ln -sfn ../$relativeArchInstallDir/$archName/bin/* .
|
||||
fi
|
||||
|
||||
### Cleanup #################################################
|
||||
|
||||
echo "Cleanup"
|
||||
|
||||
cd $prefix
|
||||
rm -rf info
|
||||
}
|
||||
|
||||
DESCRIPTION="
|
||||
The GNU Binutils are a collection of binary tools. The main ones are:
|
||||
|
||||
ld - the GNU linker.
|
||||
as - the GNU assembler.
|
||||
|
||||
But they also include:
|
||||
|
||||
addr2line - Converts addresses into filenames and line numbers.
|
||||
ar - A utility for creating, modifying and extracting from archives.
|
||||
c++filt - Filter to demangle encoded C++ symbols.
|
||||
dlltool - Creates files for building and using DLLs.
|
||||
gold - A new, faster, ELF only linker, still in beta test.
|
||||
gprof - Displays profiling information.
|
||||
nlmconv - Converts object code into an NLM.
|
||||
nm - Lists symbols from object files.
|
||||
objcopy - Copys and translates object files.
|
||||
objdump - Displays information from object files.
|
||||
ranlib - Generates an index to the contents of an archive.
|
||||
readelf - Displays information from any ELF format object file.
|
||||
size - Lists the section sizes of an object or archive file.
|
||||
strings - Lists printable strings from files.
|
||||
strip - Discards symbols.
|
||||
windmc - A Windows compatible message compiler.
|
||||
windres - A compiler for Windows resource files.
|
||||
|
||||
Most of these programs use BFD, the Binary File Descriptor library, to do low-level
|
||||
manipulation. Many of them also use the opcodes library to assemble and disassemble machine
|
||||
instructions.
|
||||
|
||||
The binutils have been ported to most major Unix variants as well as Wintel systems, and their
|
||||
main reason for existence is to give the GNU system (and GNU/Linux) the facility to compile
|
||||
and link programs.
|
||||
"
|
||||
@@ -1,7 +1,7 @@
|
||||
SUMMARY="The GNU assembler, linker and binary utilities"
|
||||
HOMEPAGE="http://www.gnu.org/software/binutils"
|
||||
SRC_URI="git+git://github.com/haiku/BuildtoolsPM.git#278de7bc9243876c2e08f8d6a243d510c5000462"
|
||||
REVISION="2"
|
||||
SRC_URI="git+git://github.com/haiku/BuildtoolsPM.git#d0613f2026ca25e7f673188291b63fd5d7a51c72"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
LICENSE="
|
||||
GNU GPL v2
|
||||
Reference in New Issue
Block a user