0
0
Fork 0
haikuports/haiku-apps/resourcer/resourcer-1.0.recipe

65 lines
1.6 KiB
Bash

SUMMARY="A resource and attribute editor with an interface editor"
DESCRIPTION="
Resourcer is an all-purpose resource and attribute editor with a full-featured \
interface editor. It also contains plug-in editors for 31 other data types, \
including images, cursors, sounds, movies, text, and icons."
HOMEPAGE="https://github.com/HaikuArchives/Resourcer"
COPYRIGHT="2000 Nathan Whitehorn"
LICENSE="BSD (3-clause)"
REVISION="6"
srcGitRev="de931de8f560698c463347dea76f831a9ef2741a"
SOURCE_URI="https://github.com/HaikuArchives/Resourcer/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="0a00db1f7f8fa1e7cbc9668625c1f8a46e75f5a2fa8367c38d9a4f780de9c273"
SOURCE_DIR="Resourcer-$srcGitRev"
ARCHITECTURES="all ?x86_gcc2 ?x86"
PROVIDES="
resourcer = $portVersion
app:Resourcer = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc
cmd:make
"
BUILD()
{
cd main
make OBJ_DIR=objects \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
# The two next steps might not be required
# The first one probably isn't, because according to the description
# the editors are plug-ins
# but I'm not really sure about the second one
cd ../editors
make OBJ_DIR=objects \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
cd ../reslib
make OBJ_DIR=objects \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}
INSTALL()
{
# Installing only the file in main,
# because I can't figure out how the files in the other directories
# should be installed
mkdir -p $appsDir
cp -a main/objects/Resourcer $appsDir
addAppDeskbarSymlink $appsDir/Resourcer
}