1SUMMARY="A resource and attribute editor with an interface editor"
2DESCRIPTION="Resourcer is an all-purpose resource and attribute editor with a full-featured \
3interface editor. It also contains plug-in editors for 31 other data types, \
4including images, cursors, sounds, movies, text, and icons."
5HOMEPAGE="https://github.com/HaikuArchives/Resourcer"
6COPYRIGHT="2000 Nathan Whitehorn"
7LICENSE="BSD (3-clause)"
8REVISION="2"
9srcGitRev="e68701a3eec66b91557fe652eaeca05395444bf6"
10SOURCE_URI="https://github.com/HaikuArchives/Resourcer/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="c3457edaa8a1652f6cc012bdedddc2ce46e51f5bf16c19e4c7c0f1893ada6e4a"
12SOURCE_DIR="Resourcer-$srcGitRev"
13PATCHES="resourcer-$portVersion.patchset"
14
15ARCHITECTURES="all !x86_gcc2"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	resourcer$secondaryArchSuffix = $portVersion
20	app:Resourcer = $portVersion
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	"
25
26BUILD_REQUIRES="
27	haiku${secondaryArchSuffix}_devel
28	"
29BUILD_PREREQUIRES="
30	makefile_engine
31	cmd:gcc$secondaryArchSuffix
32	cmd:make
33	"
34
35BUILD()
36{
37	make -C main OBJ_DIR=objects \
38		BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
39
40	cd editors
41	for i in *.cp; do
42		make EDITOR_NAME="${i%.cp}" OBJ_DIR=objects \
43			BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
44	done
45}
46
47INSTALL()
48{
49	mkdir -pv $appsDir/Resourcer/editors
50
51	cp -afv main/objects/Resourcer $appsDir/Resourcer/
52	cp -avf editors/objects/*[^.d,.o] $appsDir/Resourcer/editors/
53
54	addAppDeskbarSymlink $appsDir/Resourcer/Resourcer
55}
56