diff --git a/dev-util/premake/patches/premake-4.3.patch b/dev-util/premake/patches/premake-4.3.patch new file mode 100644 index 000000000..e02982f80 --- /dev/null +++ b/dev-util/premake/patches/premake-4.3.patch @@ -0,0 +1,37 @@ +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.bep b/dev-util/premake/premake-4.3.bep new file mode 100644 index 000000000..823710ef2 --- /dev/null +++ b/dev-util/premake/premake-4.3.bep @@ -0,0 +1,21 @@ +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"