diff --git a/dev-util/premake/patches/premake-4.3.patch b/dev-util/premake/patches/premake-4.3.patch deleted file mode 100644 index e02982f80..000000000 --- a/dev-util/premake/patches/premake-4.3.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -Naur premake-4.3/build/gmake.unix/Premake4.make premake-4.3-haiku/build/gmake.unix/Premake4.make ---- premake-4.3/build/gmake.unix/Premake4.make 2010-11-16 11:29:14.028311552 +0000 -+++ premake-4.3-haiku/build/gmake.unix/Premake4.make 2012-12-27 23:50:16.043253760 +0000 -@@ -28,8 +28,8 @@ - CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) - CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -Os - CXXFLAGS += $(CFLAGS) -- LDFLAGS += -s -rdynamic -- LIBS += -lm -ldl -+ LDFLAGS += -s -+ LIBS += - RESFLAGS += $(DEFINES) $(INCLUDES) - LDDEPS += - LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) -diff -Naur premake-4.3/src/host/lua-5.1.4/src/luaconf.h premake-4.3-haiku/src/host/lua-5.1.4/src/luaconf.h ---- premake-4.3/src/host/lua-5.1.4/src/luaconf.h 2010-11-16 11:29:12.042991616 +0000 -+++ premake-4.3-haiku/src/host/lua-5.1.4/src/luaconf.h 2012-12-27 23:50:16.050331648 +0000 -@@ -55,7 +55,6 @@ - #define LUA_USE_MKSTEMP - #define LUA_USE_ISATTY - #define LUA_USE_POPEN --#define LUA_USE_ULONGJMP - #endif - - -diff -Naur premake-4.3/src/host/premake.h premake-4.3-haiku/src/host/premake.h ---- premake-4.3/src/host/premake.h 2010-11-16 11:29:12.047185920 +0000 -+++ premake-4.3-haiku/src/host/premake.h 2012-12-27 23:50:16.052166656 +0000 -@@ -12,7 +12,7 @@ - - /* Identify the current platform I'm not sure how to reliably detect - * Windows but since it is the most common I use it as the default */ --#if defined(__linux__) -+#if defined(__linux__) || defined(__HAIKU__) - #define PLATFORM_LINUX (1) - #define PLATFORM_STRING "linux" - #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) diff --git a/dev-util/premake/premake-4.3.recipe b/dev-util/premake/premake-4.3.recipe deleted file mode 100644 index d01ce86be..000000000 --- a/dev-util/premake/premake-4.3.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="Powerfully simple build configuration" -HOMEPAGE="http://industriousone.com/premake" -SRC_URI="http://sourceforge.net/projects/premake/files/Premake/4.3/premake-4.3-src.zip/download" -CHECKSUM_MD5="8cfafee76f9665c93b2e9ad15b015eb7" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" - -BUILD() -{ - cd premake-4.3/build/gmake.unix - make config=release -} - -INSTALL() -{ - cd premake-4.3/bin/release - mkdir -p $DESTDIR`finddir B_COMMON_BIN_DIRECTORY` - install -m 0755 premake4 $DESTDIR`finddir B_COMMON_BIN_DIRECTORY` -} - -LICENSE="BSD (2-clause)" -COPYRIGHT="2012 Industrious One, LLC" diff --git a/dev-util/premake/premake-4.4.beta5.recipe b/dev-util/premake/premake-4.4.beta5.recipe new file mode 100644 index 000000000..0fb50e685 --- /dev/null +++ b/dev-util/premake/premake-4.4.beta5.recipe @@ -0,0 +1,63 @@ +SUMMARY="Powerfully simple build configuration" +DESCRIPTION="\ +Describe your software project with a full-featured scripting language and \ +let Premake write the build scripts for you. With one file your project can \ +support both IDE-addicted Windows coders and Linux command-line junkies! +" +HOMEPAGE="http://industriousone.com/premake" +SRC_URI="http://sourceforge.net/projects/premake/files/Premake/4.4/premake-4.4-beta5-src.zip" +CHECKSUM_SHA256="0fa1ed02c5229d931e87995123cdb11d44fcc8bd99bba8e8bb1bbc0aaa798161" +REVISION="1" +LICENSE="BSD (2-clause)" +COPYRIGHT="2012 Industrious One, LLC" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + premake + premake4$secondaryArchSuffix = $portVersion + cmd:premake4$secondaryArchSuffix = $portVersion +" + +REQUIRES=" + haiku$secondaryArchSuffix +" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel +" + +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make +" + +SOURCE_DIR="premake-4.4-beta5" + +PATCH() +{ + sed -i '/#define LUA_USE_ULONGJMP/d' src/host/lua-5.1.4/src/luaconf.h + sed -i '/-lm/d' build/gmake.unix/Premake4.make + sed -i 's/-rdynamic//g' build/gmake.unix/Premake4.make +} + +BUILD() +{ + cd build/gmake.unix + make config=release +} + +INSTALL() +{ + cd bin/release + mkdir -p $binDir + install -m 0755 premake4 $binDir +} +