From b6f2841c926164f963f61542637351bd1dfd7510 Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Sun, 5 Jan 2014 13:09:08 +0000 Subject: [PATCH] Added recipe for Resource Edit (moved from Haiku Tree) --- haiku-apps/resourceedit/resourceedit-1.recipe | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 haiku-apps/resourceedit/resourceedit-1.recipe diff --git a/haiku-apps/resourceedit/resourceedit-1.recipe b/haiku-apps/resourceedit/resourceedit-1.recipe new file mode 100644 index 000000000..ec122a826 --- /dev/null +++ b/haiku-apps/resourceedit/resourceedit-1.recipe @@ -0,0 +1,52 @@ +DESCRIPTION=" +Application predestined for editing resources. Resources are files put \ +directly in binary ones that the application can always access them. +" +SUMMARY="Resource editor" +HOMEPAGE="https://github.com/Mrowqa/ResourceEdit" # change! +LICENSE="MIT" +COPYRIGHT="2012-2013 Tri-Edge AI" +SRC_URI="git+https://github.com/Mrowqa/ResourceEdit.git#06dd78d51830330e93ad305e42897027a8feca55" # change! +REVISION="1" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86 ?x86_64" + +PROVIDES=" + resourceedit$secondaryArchSuffix = $portVersion + app:resourceedit$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + makefile_engine + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:mkdepend + " + +BUILD() +{ + make +} + +INSTALL() +{ + # supports"x86" architecture only + mkdir $appsDir + cp objects.x86-gcc4-release/ResourceEdit $appsDir + addAppDeskbarSymlink $appsDir/ResourceEdit +}