From 2e73f49b66f31b0bf891595f37b4e57a26a16408 Mon Sep 17 00:00:00 2001 From: noryb009 Date: Fri, 6 Dec 2013 17:44:16 -0500 Subject: [PATCH 1/2] Create Randomizer recipe Work done by GCI student Luke --- .../patches/randomizer-1.0.0b1.patch | 145 ++++++++++++++++++ .../randomizer/randomizer-1.0.0b1.recipe | 54 +++++++ 2 files changed, 199 insertions(+) create mode 100644 haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch create mode 100644 haiku-apps/randomizer/randomizer-1.0.0b1.recipe diff --git a/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch b/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch new file mode 100644 index 000000000..5c939d24a --- /dev/null +++ b/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch @@ -0,0 +1,145 @@ +From f826308b984f415dce6680aad5e15e6a1795f7f3 Mon Sep 17 00:00:00 2001 +From: Luke +Date: Fri, 6 Dec 2013 00:19:26 +0000 +Subject: [PATCH] Add makefile + +--- + src/makefile | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 126 insertions(+) + create mode 100644 src/makefile + +diff --git a/src/makefile b/src/makefile +new file mode 100644 +index 0000000..18dfc48 +--- /dev/null ++++ b/src/makefile +@@ -0,0 +1,126 @@ ++## BeOS Generic Makefile v2.3 ## ++ ++## Fill in this file to specify the project being created, and the referenced ++## makefile-engine will do all of the hard work for you. This handles both ++## Intel and PowerPC builds of the BeOS and Haiku. ++ ++## Application Specific Settings --------------------------------------------- ++ ++# specify the name of the binary ++NAME=Randomizer ++ ++# specify the type of binary ++# APP: Application ++# SHARED: Shared library or add-on ++# STATIC: Static library archive ++# DRIVER: Kernel Driver ++TYPE=APP ++ ++# add support for new Pe and Eddie features ++# to fill in generic makefile ++ ++#%{ ++# @src->@ ++ ++# specify the source files to use ++# full paths or paths relative to the makefile can be included ++# all files, regardless of directory, will have their object ++# files created in the common object directory. ++# Note that this means this makefile will not work correctly ++# if two source files with the same name (source.c or source.cpp) ++# are included from different directories. Also note that spaces ++# in folder names do not work well with this makefile. ++SRCS=App.cpp AppView.cpp AppWindow.cpp Generator.cpp main.cpp \ ++RandoBox.cpp RandoMenuBar.cpp RandoTextView.cpp ++ ++# specify the resource definition files to use ++# full path or a relative path to the resource file can be used. ++RDEFS= ++ ++# specify the resource files to use. ++# full path or a relative path to the resource file can be used. ++# both RDEFS and RSRCS can be defined in the same makefile. ++RSRCS=Randomizer.rsrc ++ ++# @<-src@ ++#%} ++ ++# end support for Pe and Eddie ++ ++# specify additional libraries to link against ++# there are two acceptable forms of library specifications ++# - if your library follows the naming pattern of: ++# libXXX.so or libXXX.a you can simply specify XXX ++# library: libbe.so entry: be ++# ++# - if your library does not follow the standard library ++# naming scheme you need to specify the path to the library ++# and it's name ++# library: my_lib.a entry: my_lib.a or path/my_lib.a ++LIBS=be $(STDCPPLIBS) ++ ++# specify additional paths to directories following the standard ++# libXXX.so or libXXX.a naming scheme. You can specify full paths ++# or paths relative to the makefile. The paths included may not ++# be recursive, so include all of the paths where libraries can ++# be found. Directories where source files are found are ++# automatically included. ++LIBPATHS= ++ ++# additional paths to look for system headers ++# thes use the form: #include
++# source file directories are NOT auto-included here ++SYSTEM_INCLUDE_PATHS = ++ ++# additional paths to look for local headers ++# thes use the form: #include "header" ++# source file directories are automatically included ++LOCAL_INCLUDE_PATHS = ++ ++# specify the level of optimization that you desire ++# NONE, SOME, FULL ++OPTIMIZE= ++ ++# specify any preprocessor symbols to be defined. The symbols will not ++# have their values set automatically; you must supply the value (if any) ++# to use. For example, setting DEFINES to "DEBUG=1" will cause the ++# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" ++# would pass "-DDEBUG" on the compiler's command line. ++DEFINES= ++ ++# specify special warning levels ++# if unspecified default warnings will be used ++# NONE = supress all warnings ++# ALL = enable all warnings ++WARNINGS = ++ ++# specify whether image symbols will be created ++# so that stack crawls in the debugger are meaningful ++# if TRUE symbols will be created ++SYMBOLS = ++ ++# specify debug settings ++# if TRUE will allow application to be run from a source-level ++# debugger. Note that this will disable all optimzation. ++DEBUGGER = ++ ++# specify additional compiler flags for all files ++COMPILER_FLAGS = ++ ++# specify additional linker flags ++LINKER_FLAGS = ++ ++# specify the version of this particular item ++# (for example, -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL") ++# This may also be specified in a resource. ++APP_VERSION = ++ ++# (for TYPE == DRIVER only) Specify desired location of driver in the /dev ++# hierarchy. Used by the driverinstall rule. E.g., DRIVER_PATH = video/usb will ++# instruct the driverinstall rule to place a symlink to your driver's binary in ++# ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will appear at ++# /dev/video/usb when loaded. Default is "misc". ++DRIVER_PATH = ++ ++## include the makefile-engine ++include $(BUILDHOME)/etc/makefile-engine +-- +1.8.3.4 + diff --git a/haiku-apps/randomizer/randomizer-1.0.0b1.recipe b/haiku-apps/randomizer/randomizer-1.0.0b1.recipe new file mode 100644 index 000000000..5a0e80f7e --- /dev/null +++ b/haiku-apps/randomizer/randomizer-1.0.0b1.recipe @@ -0,0 +1,54 @@ +SUMMARY="A random symbol sequence generator" +DESCRIPTION=" + Randomizer is a random symbol sequence generator. You can create + sequences of any given length, and control what characters are used. + + This program can be used for many purposes, such as for generating + random passwords or random numbers. + " +HOMEPAGE="https://code.google.com/p/randomizer/" +SRC_URI="svn+http://randomizer.googlecode.com/svn/trunk/@r12" +LICENSE="MIT" +COPYRIGHT="2005-2009 Sergey S. Kazenyuk" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PROVIDES=" + randomizer = $portVersion + app:randomizer = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:gcc + makefile_engine + cmd:make + cmd:mkdepend + " + +PATCHES=" + randomizer-1.0.0b1.patch + " + +SRC_FILENAME="download" + +BUILD() +{ + cd src + make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` +} + +INSTALL() +{ + cd src + architecture=${buildArchitecture/_/-} + mkdir -p $appsDir + cp objects.$architecture-release/Randomizer $appsDir + addAppDeskbarSymlink $appsDir/Randomizer +} From 677d745877ae503bffceee8c090d52ffb41c0066 Mon Sep 17 00:00:00 2001 From: noryb009 Date: Sat, 7 Dec 2013 08:10:53 -0500 Subject: [PATCH 2/2] Build Randomizer in current directory --- .../randomizer/patches/randomizer-1.0.0b1.patch | 14 ++++++++------ haiku-apps/randomizer/randomizer-1.0.0b1.recipe | 4 +--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch b/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch index 5c939d24a..0951e990f 100644 --- a/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch +++ b/haiku-apps/randomizer/patches/randomizer-1.0.0b1.patch @@ -1,19 +1,19 @@ -From f826308b984f415dce6680aad5e15e6a1795f7f3 Mon Sep 17 00:00:00 2001 +From 24da7eed9c8cd793d4f873100584b70ea11d4458 Mon Sep 17 00:00:00 2001 From: Luke -Date: Fri, 6 Dec 2013 00:19:26 +0000 +Date: Sat, 7 Dec 2013 13:04:48 +0000 Subject: [PATCH] Add makefile --- - src/makefile | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 126 insertions(+) + src/makefile | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 128 insertions(+) create mode 100644 src/makefile diff --git a/src/makefile b/src/makefile new file mode 100644 -index 0000000..18dfc48 +index 0000000..c6df5ad --- /dev/null +++ b/src/makefile -@@ -0,0 +1,126 @@ +@@ -0,0 +1,128 @@ +## BeOS Generic Makefile v2.3 ## + +## Fill in this file to specify the project being created, and the referenced @@ -138,6 +138,8 @@ index 0000000..18dfc48 +# /dev/video/usb when loaded. Default is "misc". +DRIVER_PATH = + ++TARGET_DIR = . ++ +## include the makefile-engine +include $(BUILDHOME)/etc/makefile-engine -- diff --git a/haiku-apps/randomizer/randomizer-1.0.0b1.recipe b/haiku-apps/randomizer/randomizer-1.0.0b1.recipe index 5a0e80f7e..544b91c46 100644 --- a/haiku-apps/randomizer/randomizer-1.0.0b1.recipe +++ b/haiku-apps/randomizer/randomizer-1.0.0b1.recipe @@ -46,9 +46,7 @@ BUILD() INSTALL() { - cd src - architecture=${buildArchitecture/_/-} mkdir -p $appsDir - cp objects.$architecture-release/Randomizer $appsDir + cp src/Randomizer $appsDir addAppDeskbarSymlink $appsDir/Randomizer }