mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
73 lines
1.9 KiB
Bash
73 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/"
|
|
COPYRIGHT="2006-2015 Jan Bungeroth
|
|
2015-2017 Jim Saxton"
|
|
LICENSE="Artistic"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/bbjimmy/YAB/archive/1.7.5.3b.tar.gz"
|
|
CHECKSUM_SHA256="e828af53955055954edde507177d2cd2603159ae74bfdea2399de974845a12d5"
|
|
SOURCE_DIR="YAB-1.7.5.3b"
|
|
|
|
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.3
|
|
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
|
|
"
|
|
|
|
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"
|
|
}
|