mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
75 lines
1.9 KiB
Bash
75 lines
1.9 KiB
Bash
SUMMARY="An integrated development environment for yab"
|
|
DESCRIPTION="
|
|
Yab allows fast prototyping with simple and clean code. yab contains a large \
|
|
number of BeAPI specific commands for GUI creation and much, much more.
|
|
|
|
yab wouldn't be complete without the yab-IDE, a powerful development \
|
|
environment, which of course is programmed in yab itself.
|
|
"
|
|
HOMEPAGE="http://yab.orgfree.com"
|
|
SOURCE_URI="https://github.com/bbjimmy/YAB/archive/1.7.5.tar.gz"
|
|
CHECKSUM_SHA256="45ea5fccd6ec0989e93bdb4dc31c271cf8eb8f39cce9ca9c2f4ab02f3ee8cc10"
|
|
|
|
REVISION="1"
|
|
LICENSE="Artistic"
|
|
COPYRIGHT="
|
|
2006-2015 Jan Bungeroth
|
|
"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
PROVIDES="
|
|
yab_ide$secondaryArchSuffix = $portVersion
|
|
app:yab_IDE = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
yab$secondaryArchSuffix >= 1.7.5
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
# devel:libz$secondaryArchSuffix is needed both to build and for the BuildFactory to do its work.
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libyab$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:bison
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:mkdepend
|
|
cmd:yab
|
|
"
|
|
SOURCE_DIR=YAB-1.7.5
|
|
|
|
BUILD()
|
|
{
|
|
pushd src
|
|
make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
|
|
popd
|
|
pushd yab-IDE/BuildFactory
|
|
gcc -o yab-compress yab-compress.c -lz
|
|
popd
|
|
mkdir -p tmp/buildfactory
|
|
cp -r src/* tmp/buildfactory
|
|
cp -r yab-IDE/BuildFactory/* tmp/buildfactory/
|
|
cp yab-IDE/src/yab-IDE.yab tmp/buildfactory/
|
|
pushd tmp/buildfactory
|
|
rm flex.c
|
|
BuildFactory.yab yab-IDE yab-IDE.yab application/x-vnd.yab-IDE
|
|
RdefApply parts/YAB-IDE.bf.rdef yab-IDE
|
|
addattr -t mime BEOS:TYPE application/x-vnd.be-elfexecutable yab-IDE
|
|
popd
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp -r yab-IDE/ $appsDir/
|
|
cp tmp/buildfactory/yab-IDE $appsDir/yab-IDE/
|
|
addAppDeskbarSymlink $appsDir/yab-IDE/yab-IDE "Yab IDE"
|
|
}
|