Update to 2.18
This commit is contained in:
parent
f52cc06220
commit
18d0aebb7a
@ -3,12 +3,13 @@
|
|||||||
# This is a generic build.sh script
|
# This is a generic build.sh script
|
||||||
# It can be used nearly unmodified with many packages
|
# It can be used nearly unmodified with many packages
|
||||||
#
|
#
|
||||||
# The concept of "method" registering and the logic that implements it was shamelessly
|
# build.sh helper functions
|
||||||
# stolen from jhlj's Compile.sh script :)
|
. ${BUILDPKG_BASE}/scripts/build.sh.functions
|
||||||
#
|
#
|
||||||
|
###########################################################
|
||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=binutils
|
topdir=binutils
|
||||||
version=2.14
|
version=2.18
|
||||||
pkgver=1
|
pkgver=1
|
||||||
source[0]=$topdir-$version.tar.bz2
|
source[0]=$topdir-$version.tar.bz2
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
@ -17,18 +18,10 @@ source[0]=$topdir-$version.tar.bz2
|
|||||||
# Source function library
|
# Source function library
|
||||||
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
||||||
|
|
||||||
# Fill in pkginfo values if necessary
|
# Global settings
|
||||||
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
|
export CPPFLAGS="-I$prefix/include"
|
||||||
name="Binutils - Collection of binary utilities"
|
export LDFLAGS="-L$prefix/lib -R$prefix/lib"
|
||||||
pkgcat="application"
|
configure_args="$configure_args --disable-nls --program-prefix=g"
|
||||||
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"
|
|
||||||
}
|
|
||||||
|
|
||||||
reg prep
|
reg prep
|
||||||
prep()
|
prep()
|
||||||
@ -39,20 +32,26 @@ prep()
|
|||||||
reg build
|
reg build
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
setdir stage
|
generic_build
|
||||||
./configure --prefix=$prefix --disable --enable-shared
|
}
|
||||||
|
|
||||||
|
reg check
|
||||||
|
check()
|
||||||
|
{
|
||||||
|
generic_check
|
||||||
}
|
}
|
||||||
|
|
||||||
reg install
|
reg install
|
||||||
install()
|
install()
|
||||||
{
|
{
|
||||||
generic_install DESTDIR
|
generic_install DESTDIR
|
||||||
# Remove files that are overwritten by compiler packages
|
${__rm} -f ${stagedir}${prefix}/${_mandir}/man1/{dlltool,nlmconv,windres,windmc}*
|
||||||
rm -f $stagedir$prefix/info/dir
|
# Rename gc++filt
|
||||||
rm -f $stagedir$prefix/info/standards.info
|
${__mv} ${stagedir}${prefix}/${_bindir}/gc++filt ${stagedir}${prefix}/${_bindir}/c++filt
|
||||||
rm -f $stagedir$prefix/bin/c++filt
|
|
||||||
rm -f $stagedir$prefix/man/man1/c++filt.1
|
doc COPYING*
|
||||||
rm -f $stagedir$prefix/lib/libiberty*
|
# This copy is very old. Autoconf has a much newer copy.
|
||||||
|
${__rm} -f ${stagedir}${prefix}/${_infodir}/standards.*
|
||||||
}
|
}
|
||||||
|
|
||||||
reg pack
|
reg pack
|
||||||
@ -70,42 +69,4 @@ distclean()
|
|||||||
###################################################
|
###################################################
|
||||||
# No need to look below here
|
# No need to look below here
|
||||||
###################################################
|
###################################################
|
||||||
|
build_sh $*
|
||||||
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
|
|
||||||
|
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