From b6f2841c926164f963f61542637351bd1dfd7510 Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Sun, 5 Jan 2014 13:09:08 +0000 Subject: [PATCH 1/4] 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 +} From b254bda3763945557162854c1b713908b461fd06 Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Sun, 5 Jan 2014 16:47:13 +0000 Subject: [PATCH 2/4] ResourceEdit recipe: marked as broken on x86 and provided better description --- haiku-apps/resourceedit/resourceedit-1.recipe | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/haiku-apps/resourceedit/resourceedit-1.recipe b/haiku-apps/resourceedit/resourceedit-1.recipe index ec122a826..a5441c57b 100644 --- a/haiku-apps/resourceedit/resourceedit-1.recipe +++ b/haiku-apps/resourceedit/resourceedit-1.recipe @@ -1,6 +1,6 @@ DESCRIPTION=" -Application predestined for editing resources. Resources are files put \ -directly in binary ones that the application can always access them. +This is an editor for resource files (.rsrc), binary files that get compiled \ +into an application and can then be accessed by that application. " SUMMARY="Resource editor" HOMEPAGE="https://github.com/Mrowqa/ResourceEdit" # change! @@ -9,7 +9,7 @@ COPYRIGHT="2012-2013 Tri-Edge AI" SRC_URI="git+https://github.com/Mrowqa/ResourceEdit.git#06dd78d51830330e93ad305e42897027a8feca55" # change! REVISION="1" -ARCHITECTURES="x86 ?x86_64" +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. @@ -17,7 +17,7 @@ if [ $effectiveTargetArchitecture != x86_gcc2 ]; then else ARCHITECTURES="$ARCHITECTURES !x86_gcc2" fi -SECONDARY_ARCHITECTURES="x86 ?x86_64" +SECONDARY_ARCHITECTURES="!x86 ?x86_64" PROVIDES=" resourceedit$secondaryArchSuffix = $portVersion From 78eb0531fab1d267db04a6257addb7778df24cf0 Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Sun, 5 Jan 2014 20:13:05 +0000 Subject: [PATCH 3/4] ResourceEdit recipe: moved repository to HaikuArchives --- haiku-apps/resourceedit/resourceedit-1.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haiku-apps/resourceedit/resourceedit-1.recipe b/haiku-apps/resourceedit/resourceedit-1.recipe index a5441c57b..c43426917 100644 --- a/haiku-apps/resourceedit/resourceedit-1.recipe +++ b/haiku-apps/resourceedit/resourceedit-1.recipe @@ -3,10 +3,10 @@ This is an editor for resource files (.rsrc), binary files that get compiled \ into an application and can then be accessed by that application. " SUMMARY="Resource editor" -HOMEPAGE="https://github.com/Mrowqa/ResourceEdit" # change! +HOMEPAGE="https://github.com/HaikuArchives/ResourceEdit" LICENSE="MIT" COPYRIGHT="2012-2013 Tri-Edge AI" -SRC_URI="git+https://github.com/Mrowqa/ResourceEdit.git#06dd78d51830330e93ad305e42897027a8feca55" # change! +SRC_URI="git+https://github.com/HaikuArchives/ResourceEdit.git#1873c33591e2d2ccb3dccb692c175e9f10a0e450" # change! REVISION="1" ARCHITECTURES="!x86 ?x86_64" From 533b7a0ccba00585bb4803df57ec1d73df4265df Mon Sep 17 00:00:00 2001 From: Artur Jamro Date: Sun, 5 Jan 2014 20:28:14 +0000 Subject: [PATCH 4/4] ResourceEdit recipe: cosmetic patch --- haiku-apps/resourceedit/resourceedit-1.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haiku-apps/resourceedit/resourceedit-1.recipe b/haiku-apps/resourceedit/resourceedit-1.recipe index c43426917..2e227b4bc 100644 --- a/haiku-apps/resourceedit/resourceedit-1.recipe +++ b/haiku-apps/resourceedit/resourceedit-1.recipe @@ -6,7 +6,7 @@ SUMMARY="Resource editor" HOMEPAGE="https://github.com/HaikuArchives/ResourceEdit" LICENSE="MIT" COPYRIGHT="2012-2013 Tri-Edge AI" -SRC_URI="git+https://github.com/HaikuArchives/ResourceEdit.git#1873c33591e2d2ccb3dccb692c175e9f10a0e450" # change! +SRC_URI="git+https://github.com/HaikuArchives/ResourceEdit.git#1873c33591e2d2ccb3dccb692c175e9f10a0e450" REVISION="1" ARCHITECTURES="!x86 ?x86_64" @@ -45,7 +45,7 @@ BUILD() INSTALL() { - # supports"x86" architecture only + # supports "x86" architecture only mkdir $appsDir cp objects.x86-gcc4-release/ResourceEdit $appsDir addAppDeskbarSymlink $appsDir/ResourceEdit