Files
haikuports/haiku-apps/resourcer/resourcer-3.0.recipe
2023-07-16 20:08:30 -06:00

56 lines
1.5 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="2"
srcGitRev="e68701a3eec66b91557fe652eaeca05395444bf6"
SOURCE_URI="https://github.com/HaikuArchives/Resourcer/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="c3457edaa8a1652f6cc012bdedddc2ce46e51f5bf16c19e4c7c0f1893ada6e4a"
SOURCE_DIR="Resourcer-$srcGitRev"
PATCHES="resourcer-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
resourcer$secondaryArchSuffix = $portVersion
app:Resourcer = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
make -C main OBJ_DIR=objects \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
cd editors
for i in *.cp; do
make EDITOR_NAME="${i%.cp}" OBJ_DIR=objects \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
done
}
INSTALL()
{
mkdir -pv $appsDir/Resourcer/editors
cp -afv main/objects/Resourcer $appsDir/Resourcer/
cp -avf editors/objects/*[^.d,.o] $appsDir/Resourcer/editors/
addAppDeskbarSymlink $appsDir/Resourcer/Resourcer
}