diff --git a/dev-lang/yab/yab-1.7.5.4.recipe b/dev-lang/yab/yab-1.7.5.4.recipe new file mode 100644 index 000000000..483b90e4b --- /dev/null +++ b/dev-lang/yab/yab-1.7.5.4.recipe @@ -0,0 +1,61 @@ +SUMMARY="Extended version of the yabasic programming language" +DESCRIPTION="yab is an extended version of yabasic, a BASIC programming \ +language, with special commands designed for Haiku." +HOMEPAGE="http://yab.orgfree.com/" +COPYRIGHT="1995-2006 Marc-Oliver Ihm (yabasic) + 2006-2009 Jan Bungeroth (yab improvements) + 2013-2017 Jim Saxton (yab improvements)" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://github.com/bbjimmy/YAB/archive/1.7.5.4a.tar.gz" +CHECKSUM_SHA256="56f871e74a86ea3f2ea0a69fbdc61aba028c4563f9d0fccd4f76e5f8e6adf30f" +SOURCE_DIR="YAB-1.7.5.4a" + +ARCHITECTURES="x86_gcc2 !x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 !x86" + +PROVIDES=" + yab = $portVersion + cmd:yab = $portVersion + lib:libyab = $portVersion + devel:libyab = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= r1~alpha4_pm_hrev49976 + + " + +BUILD_PREREQUIRES=" + cmd:bison + cmd:flex + cmd:gcc + cmd:make + cmd:mkdepend + " + +BUILD() +{ + mkdir -p tmp + cp -r src/* tmp + cd tmp + make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` +} + +INSTALL() +{ + mkdir -p $binDir + mkdir -p $libDir + mkdir -p $appsDir/yab-IDE + cp tmp/yab $binDir/ + cp tmp/libyab.so $libDir/ + cp -r src $appsDir/yab-IDE/src + cp tmp/bison.h $appsDir/yab-IDE/src/ + cp -r Documentation $appsDir/yab-IDE/Documentation + mkdir -p $documentationDir + ln -s $appsDir/yab-IDE/Documentation $documentationDir/yab-1.7.5 + prepareInstalledDevelLibs libyab +} diff --git a/haiku-apps/yab_ide/yab_ide-2.2.8.recipe b/haiku-apps/yab_ide/yab_ide-2.2.8.recipe new file mode 100644 index 000000000..38c858acd --- /dev/null +++ b/haiku-apps/yab_ide/yab_ide-2.2.8.recipe @@ -0,0 +1,72 @@ +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="1" +SOURCE_URI="https://github.com/bbjimmy/YAB/archive/1.7.5.4a.tar.gz" +CHECKSUM_SHA256="56f871e74a86ea3f2ea0a69fbdc61aba028c4563f9d0fccd4f76e5f8e6adf30f" +SOURCE_DIR="YAB-1.7.5.4a" + +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.4 + 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" +}