From 8319554235a693b6c6916601e0b1aae115b19fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sat, 16 Mar 2019 22:27:17 +0100 Subject: [PATCH] premake: add for distrho-ports(-extra) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-support/premake/premake3_3.7.bb | 22 ++++++++++++ ...make-keep-more-of-our-build-defaults.patch | 34 +++++++++++++++++++ recipes-support/premake/premake4_4.3.bb | 27 +++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 recipes-support/premake/premake3_3.7.bb create mode 100644 recipes-support/premake/premake4/0001-Premake4.make-keep-more-of-our-build-defaults.patch create mode 100644 recipes-support/premake/premake4_4.3.bb diff --git a/recipes-support/premake/premake3_3.7.bb b/recipes-support/premake/premake3_3.7.bb new file mode 100644 index 0000000..4ced47f --- /dev/null +++ b/recipes-support/premake/premake3_3.7.bb @@ -0,0 +1,22 @@ +SUMMARY = "A simple build configuration and project generation tool using lua" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fdafc691aa5fb7f8e2a9e9521fef771b" +HOMEPAGE = "http://premake.github.io/" + +DEPENDS = "lua-native" + +SRC_URI = " \ + http://downloads.sourceforge.net/project/premake/Premake/${PV}/premake-src-${PV}.zip \ +" +SRC_URI[md5sum] = "8d30dc5bbc52aad81abb1509c1dd7d8f" +SRC_URI[sha256sum] = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5" +S = "${WORKDIR}/Premake-${PV}" + +BBCLASSEXTEND = "native" + +do_install() { + install -d ${D}${bindir} + install -m 755 ${S}/bin/premake ${D}${bindir} +} + + diff --git a/recipes-support/premake/premake4/0001-Premake4.make-keep-more-of-our-build-defaults.patch b/recipes-support/premake/premake4/0001-Premake4.make-keep-more-of-our-build-defaults.patch new file mode 100644 index 0000000..aa19498 --- /dev/null +++ b/recipes-support/premake/premake4/0001-Premake4.make-keep-more-of-our-build-defaults.patch @@ -0,0 +1,34 @@ +From 8ca73d78d0e7ce388654b2033cfbb78e3ed5d1f1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 25 Jun 2017 18:54:01 +0200 +Subject: [PATCH] Premake4.make: keep more of our build defaults +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller +--- + build/gmake.unix/Premake4.make | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/build/gmake.unix/Premake4.make b/build/gmake.unix/Premake4.make +index bbc159b..80fc136 100644 +--- a/build/gmake.unix/Premake4.make ++++ b/build/gmake.unix/Premake4.make +@@ -26,9 +26,9 @@ ifeq ($(config),release) + DEFINES += -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN + INCLUDES += -I../../src/host/lua-5.1.4/src + CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) +- CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -Os ++ CFLAGS += $(CPPFLAGS) $(ARCH) -Wall + CXXFLAGS += $(CFLAGS) +- LDFLAGS += -s -rdynamic ++ LDFLAGS += + LIBS += -lm -ldl + RESFLAGS += $(DEFINES) $(INCLUDES) + LDDEPS += +-- +2.9.4 + diff --git a/recipes-support/premake/premake4_4.3.bb b/recipes-support/premake/premake4_4.3.bb new file mode 100644 index 0000000..6d922b4 --- /dev/null +++ b/recipes-support/premake/premake4_4.3.bb @@ -0,0 +1,27 @@ +SUMMARY = "A simple build configuration and project generation tool using lua" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6f3a39cc652afb51d2f2bc39b67e308f" +HOMEPAGE = "http://premake.github.io/" + +# https://downloads.sourceforge.net/project/premake/Premake/4.3/premake-4.3-src.zip + +SRC_URI = " \ + http://downloads.sourceforge.net/project/premake/Premake/${PV}/premake-${PV}-src.zip \ + file://0001-Premake4.make-keep-more-of-our-build-defaults.patch \ +" +SRC_URI[md5sum] = "8cfafee76f9665c93b2e9ad15b015eb7" +SRC_URI[sha256sum] = "36536490f8928d8ecde135da80cd8b751ea5bebe50cabba5c0de49cd41cb2780" +S = "${WORKDIR}/premake-${PV}" + +BBCLASSEXTEND = "native" + +do_compile_prepend() { + cd ${S}/build/gmake.unix +} + +do_install() { + install -d ${D}${bindir} + install -m 755 ${S}/bin/release/premake4 ${D}${bindir} +} + +