mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
libiconv: support building for secondary architecture
This commit is contained in:
@@ -10,32 +10,37 @@ LICENSE="
|
||||
COPYRIGHT="2000-2009 Free Software Foundation, Inc."
|
||||
SRC_URI="http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz"
|
||||
CHECKSUM_MD5="7ab33ebd26687c744a37264a330bbe9a"
|
||||
REVISION="5"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
REVISION="6"
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
libiconv = $portVersion compat >= 1.13
|
||||
cmd:iconv = 2.5.0 compat >= 2
|
||||
lib:libiconv = 2.5.0 compat >= 2
|
||||
lib:libcharset = 1.0.0 compat >= 1"
|
||||
libiconv$secondaryArchSuffix = $portVersion compat >= 1.13
|
||||
lib:libiconv$secondaryArchSuffix = 2.5.0 compat >= 2
|
||||
lib:libcharset$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:iconv = 2.5.0 compat >= 2
|
||||
"
|
||||
fi
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoheader
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:ld${secondaryArchSuffix}
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf aclocal.m4
|
||||
@@ -68,6 +73,11 @@ INSTALL()
|
||||
|
||||
rm $libDir/charset.alias
|
||||
|
||||
# remove command for secondary architecture
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $binDir
|
||||
fi
|
||||
|
||||
prepareInstalledDevelLibs libiconv libcharset
|
||||
|
||||
# devel package
|
||||
@@ -188,10 +198,10 @@ DESCRIPTION="
|
||||
|
||||
SUMMARY_devel="The libiconv development files"
|
||||
PROVIDES_devel="
|
||||
libiconv_devel = $portVersion compat >= 1.13
|
||||
devel:libiconv = 2.5.0 compat >= 2
|
||||
devel:libcharset = 1.0.0 compat >= 1
|
||||
libiconv${secondaryArchSuffix}_devel = $portVersion compat >= 1.13
|
||||
devel:libiconv${secondaryArchSuffix} = 2.5.0 compat >= 2
|
||||
devel:libcharset${secondaryArchSuffix} = 1.0.0 compat >= 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libiconv == $portVersion base
|
||||
libiconv${secondaryArchSuffix} == $portVersion base
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user