Update to 2.18
This commit is contained in:
parent
f52cc06220
commit
18d0aebb7a
@ -3,12 +3,13 @@
|
||||
# This is a generic build.sh script
|
||||
# It can be used nearly unmodified with many packages
|
||||
#
|
||||
# The concept of "method" registering and the logic that implements it was shamelessly
|
||||
# stolen from jhlj's Compile.sh script :)
|
||||
# build.sh helper functions
|
||||
. ${BUILDPKG_BASE}/scripts/build.sh.functions
|
||||
#
|
||||
###########################################################
|
||||
# Check the following 4 variables before running the script
|
||||
topdir=binutils
|
||||
version=2.14
|
||||
version=2.18
|
||||
pkgver=1
|
||||
source[0]=$topdir-$version.tar.bz2
|
||||
# If there are no patches, simply comment this
|
||||
@ -17,18 +18,10 @@ source[0]=$topdir-$version.tar.bz2
|
||||
# Source function library
|
||||
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
||||
|
||||
# Fill in pkginfo values if necessary
|
||||
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
|
||||
name="Binutils - Collection of binary utilities"
|
||||
pkgcat="application"
|
||||
pkgvendor="http://www.gnu.org"
|
||||
pkgdesc="Includes tools capable of linking and managing archives"
|
||||
|
||||
# Define script functions and register them
|
||||
METHODS=""
|
||||
reg() {
|
||||
METHODS="$METHODS $1"
|
||||
}
|
||||
# Global settings
|
||||
export CPPFLAGS="-I$prefix/include"
|
||||
export LDFLAGS="-L$prefix/lib -R$prefix/lib"
|
||||
configure_args="$configure_args --disable-nls --program-prefix=g"
|
||||
|
||||
reg prep
|
||||
prep()
|
||||
@ -39,20 +32,26 @@ prep()
|
||||
reg build
|
||||
build()
|
||||
{
|
||||
setdir stage
|
||||
./configure --prefix=$prefix --disable --enable-shared
|
||||
generic_build
|
||||
}
|
||||
|
||||
reg check
|
||||
check()
|
||||
{
|
||||
generic_check
|
||||
}
|
||||
|
||||
reg install
|
||||
install()
|
||||
{
|
||||
generic_install DESTDIR
|
||||
# Remove files that are overwritten by compiler packages
|
||||
rm -f $stagedir$prefix/info/dir
|
||||
rm -f $stagedir$prefix/info/standards.info
|
||||
rm -f $stagedir$prefix/bin/c++filt
|
||||
rm -f $stagedir$prefix/man/man1/c++filt.1
|
||||
rm -f $stagedir$prefix/lib/libiberty*
|
||||
${__rm} -f ${stagedir}${prefix}/${_mandir}/man1/{dlltool,nlmconv,windres,windmc}*
|
||||
# Rename gc++filt
|
||||
${__mv} ${stagedir}${prefix}/${_bindir}/gc++filt ${stagedir}${prefix}/${_bindir}/c++filt
|
||||
|
||||
doc COPYING*
|
||||
# This copy is very old. Autoconf has a much newer copy.
|
||||
${__rm} -f ${stagedir}${prefix}/${_infodir}/standards.*
|
||||
}
|
||||
|
||||
reg pack
|
||||
@ -70,42 +69,4 @@ distclean()
|
||||
###################################################
|
||||
# No need to look below here
|
||||
###################################################
|
||||
|
||||
reg all
|
||||
all()
|
||||
{
|
||||
for METHOD in $METHODS
|
||||
do
|
||||
case $METHOD in
|
||||
all*|*clean) ;;
|
||||
*) $METHOD
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
reg
|
||||
usage() {
|
||||
echo Usage $0 "{"$(echo $METHODS | tr " " "|")"}"
|
||||
exit 1
|
||||
}
|
||||
|
||||
OK=0
|
||||
for METHOD in $*
|
||||
do
|
||||
METHOD=" $METHOD *"
|
||||
if [ "${METHODS%$METHOD}" == "$METHODS" ] ; then
|
||||
usage
|
||||
fi
|
||||
OK=1
|
||||
done
|
||||
|
||||
if [ $OK = 0 ] ; then
|
||||
usage;
|
||||
fi
|
||||
|
||||
for METHOD in $*
|
||||
do
|
||||
( $METHOD )
|
||||
done
|
||||
build_sh $*
|
||||
|
16
binutils/meta/pkgdef
Normal file
16
binutils/meta/pkgdef
Normal file
@ -0,0 +1,16 @@
|
||||
[binutils]
|
||||
pkgname="${pkgprefix}binut"
|
||||
name="$topdir - GNU binutils"
|
||||
pkgcat="application"
|
||||
pkgvendor="http://www.gnu.org"
|
||||
pkgdesc="Includes tools capable of linking and managing archives"
|
||||
pkgver="$pkgver"
|
||||
files(-,root,bin)
|
||||
default_docs
|
||||
$_bindir
|
||||
$_libdir
|
||||
$_mandir
|
||||
$_infodir
|
||||
$_includedir
|
||||
*-solaris*
|
||||
|
27
binutils/meta/relnotes
Normal file
27
binutils/meta/relnotes
Normal file
@ -0,0 +1,27 @@
|
||||
PACKAGE DETAILS
|
||||
---------------
|
||||
Name: %%PKGNAME%%
|
||||
Version: %%SOURCE_AND_VER%%
|
||||
Vendor: %%VENDOR%%
|
||||
Packager: %%PKGEDBY%%
|
||||
|
||||
Source (sha1sum):
|
||||
%%SOURCE_SHA1SUM%%
|
||||
|
||||
BUILD DETAILS
|
||||
-------------
|
||||
Compiler:
|
||||
%%COMPILER%%
|
||||
|
||||
Environment:
|
||||
%%ENVIRONMENT%%
|
||||
|
||||
Configure:
|
||||
%%CONFIGURE%%
|
||||
|
||||
KNOWN DEPENDENCIES
|
||||
------------------
|
||||
%%DEPENDENCIES%%
|
||||
|
||||
ERRORS/MISCELLANEOUS
|
||||
--------------------
|
Loading…
x
Reference in New Issue
Block a user