1SUMMARY="Command line for creating GUI forms"
2DESCRIPTION="Gadgeteer is a command line app for creating small GUI forms \
3that users can fill out or play with. Once the users press the \"DONE\" \
4button at the bottom of the screen, the command returns the user's input \
5values so they could be used for different purposes."
6HOMEPAGE="https://www.goodeveca.net/beos/"
7COPYRIGHT="2016 Pete Goodeve
8	2006 Kirill Simonov"
9LICENSE="MIT"
10REVISION="1"
11SOURCE_URI="https://www.goodeveca.net/beos/Gadgeteer_${portVersion}_SRC.zip"
12CHECKSUM_SHA256="9e7b200b157dba04946c786d9205aed3c0dfff50936fa01b2cbaf71683187965"
13SOURCE_DIR="SRC"
14PATCHES="gadgeteer-$portVersion.patchset"
15ADDITIONAL_FILES="gadgeteer.rdef.in"
16
17ARCHITECTURES="!all x86_gcc2"
18
19PROVIDES="
20	gadgeteer = $portVersion
21	cmd:gadgeteer = $portVersion
22	"
23REQUIRES="
24	haiku
25	lib:libyaml_0
26	"
27
28BUILD_REQUIRES="
29	haiku_devel
30	devel:libyaml_0
31	"
32BUILD_PREREQUIRES="
33	makefile_engine
34	cmd:cc
35	cmd:make
36	"
37
38BUILD()
39{
40	local MAJOR="`echo "$portVersion" | cut -d. -f1`"
41	local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
42	local MINOR="`echo "$portVersion" | cut -d. -f3`"
43
44	sed \
45		-e "s|@MAJOR@|$MAJOR|" \
46		-e "s|@MIDDLE@|$MIDDLE|" \
47		-e "s|@MINOR@|$MINOR|" \
48		"$portDir"/additional-files/gadgeteer.rdef.in \
49		> gadgeteer.rdef
50
51	make OBJ_DIR=objects
52}
53
54INSTALL()
55{
56	mkdir -p $binDir
57	cp objects/gadgeteer $binDir
58}
59