Created
July 19, 2014 09:41
-
-
Save zhuowei/3de72dd45ddbee611e66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUMMARY="reference compiler for the Go programming language" | |
DESCRIPTION="reference compiler for the Go programming language" | |
HOMEPAGE="https://bitbucket.org/zhuowei/go-1-3-haiku" | |
SRC_URI="hg+https://bitbucket.org/zhuowei/go-1-3-haiku#c5bc616c75e71628f71dfde86b15e85a3135a2f2" | |
#CHECKSUM_MD5="" | |
REVISION="1" | |
LICENSE="BSD (3-clause)" | |
COPYRIGHT="2009-2014 The Go Authors" | |
ARCHITECTURES="x86" | |
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then | |
# x86_gcc2 is fine as primary target architecture as long as we're building | |
# for a different secondary architecture. | |
ARCHITECTURES="$ARCHITECTURES x86_gcc2" | |
else | |
ARCHITECTURES="$ARCHITECTURES !x86_gcc2" | |
fi | |
SECONDARY_ARCHITECTURES="x86" | |
PROVIDES=" | |
golang$secondaryArchSuffix = $portVersion | |
cmd:go = $portVersion | |
cmd:gofmt = $portVersion | |
" | |
REQUIRES=" | |
haiku$secondaryArchSuffix | |
" | |
BUILD_REQUIRES=" | |
haiku${secondaryArchSuffix}_devel >= $haikuVersion | |
" | |
BUILD_PREREQUIRES=" | |
cmd:gcc$secondaryArchSuffix | |
" | |
PATCHES="" | |
BUILD() | |
{ | |
echo "1.3-porthaiku2" > VERSION | |
cd src | |
export GOROOT_FINAL=/system/develop/lib/x86/go | |
./make.bash | |
} | |
INSTALL() | |
{ | |
mkdir -p $developLibDir/go/ | |
cp -r . $developLibDir/go/ | |
mkdir -p $binDir | |
cp bin/* $binDir/ | |
} | |
TEST() | |
{ | |
true # not supported at this time | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment