WIP for yab-1.7, fails to build still

This commit is contained in:
Scott McCreary
2013-10-21 15:14:05 -07:00
parent 659f58dc82
commit 4a008fe064
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
--- apps/yab-1.7/src/Makefile 2012-01-24 07:55:38.018087936 -0800
+++ /boot/home/Makefile 2013-10-21 14:17:35.131334144 -0700
@@ -38,14 +38,14 @@
## GCC Options
##
GCC = gcc
-GCC_OPT = $(DBG) $(OPT) -I. -I/boot/home/config/include/ -I/boot/home/config/include/ncurses/ -DHAVE_CONFIG -DUNIX $(HAIKUOPT)
+GCC_OPT = $(DBG) $(OPT) -I. -I/$(shell finddir B_SYSTEM_HEADERS_DIRECTORY) -DHAVE_CONFIG -DUNIX $(HAIKUOPT)
GPP = g++
GPP_OPT = $(DBG) $(OPT) -I. -DHAVE_CONFIG -DUNIX $(HAIKUOPT)
##
## Libraries
##
-LIBPATH = -L/boot/home/config/lib
+LIBPATH = -L/$(shell finddir B_SYSTEM_LIB_DIRECTORY)
LIB = -lncurses -lbe -lroot -ltranslation -ltracker -lmedia -llocale
## flags for flex (-d for debugging)
@@ -97,6 +97,7 @@
main.o: main.c yabasic.h config.h
$(GCC) $(GCC_OPT) -c main.c -o main.o
flex.c: yabasic.flex
+ chmod 755 ./flex
./flex $(FLEXFLAGS) -t yabasic.flex >flex.c
bison.c: yabasic.bison
bison $(BISONFLAGS) --output-file bison.c yabasic.bison

View File

@@ -0,0 +1,54 @@
SUMMARY="yab is an extended version of yabsic, a BASIC programming language"
DESCRIPTION="yab is an extended version of yabasic, a BASIC programming language, with special commands designed for BeOS, Haiku and Zeta."
HOMEPAGE="http://sourceforge.net/projects/yab-interpreter"
SRC_URI="http://ports-space.haiku-files.org/source/yab-1.7.zip"
REVISION="2"
CHECKSUM_MD5="2b465895d9eb2e8383f035dd67b88a20"
LICENSE="Artistic
GNU GPL v2"
COPYRIGHT="1995-2006 Marc-Oliver Ihm (yabasic)
2006-2009 Jan Bungeroth (yab improvements)"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SOURCE_DIR="yab-$portVersion"
PROVIDES="
cmd:yab
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
haiku
cmd:gcc
cmd:make
"
BUILD()
{
ls
ls apps
ls apps/yab-${portVersion}
cd apps/yab-${portVersion}/src
make clean
make
}
INSTALL()
{
ls -r
$YABDIR=`FINDDIR(B_APPS_DIRECTORY`/yab
mkdir -p ${YABDIR}
cp -a ${YABDIR}apps/yab
cp -a Documentation ${YABDIR}
cp -a Programs ${YABDIR}
cp -a yab-IDE ${YABDIR}
}