From 7c7fd376e6d348658dc3f49ce30fe8478ab7690d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 1 Mar 2014 10:33:19 +0100 Subject: bc needs flex, update TODO --- tools/flex/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/flex/Makefile (limited to 'tools/flex') diff --git a/tools/flex/Makefile b/tools/flex/Makefile new file mode 100644 index 000000000..fc357d250 --- /dev/null +++ b/tools/flex/Makefile @@ -0,0 +1,25 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= flex +PKG_VERSION:= 2.5.35 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 201d3f38758d95436cbc64903386de0b +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/} + +include ../rules.mk + +install: ${STAGING_HOST_DIR}/usr/bin/flex + +$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared + (cd ${WRKBUILD}; ./configure) + ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' + touch $@ + +${STAGING_HOST_DIR}/usr/bin/flex: $(WRKBUILD)/.compiled + $(INSTALL_BIN) $(WRKBUILD)/flex \ + ${STAGING_HOST_DIR}/usr/bin + +include $(TOPDIR)/mk/tools.mk -- cgit v1.2.3 From 339b913d67baa66090d81f365166304ba08eb471 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 1 Mar 2014 10:45:12 +0100 Subject: use PATH to find m4 --- tools/flex/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/flex') diff --git a/tools/flex/Makefile b/tools/flex/Makefile index fc357d250..7df8f4be5 100644 --- a/tools/flex/Makefile +++ b/tools/flex/Makefile @@ -14,7 +14,7 @@ include ../rules.mk install: ${STAGING_HOST_DIR}/usr/bin/flex $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared - (cd ${WRKBUILD}; ./configure) + (cd ${WRKBUILD}; PATH='$(STAGING_DIR_HOST)/usr/bin:$PATH' ./configure) ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' touch $@ -- cgit v1.2.3 From 2fd806c5ba3e9a3b0a1e32f4e43d072368c07737 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 1 Mar 2014 10:49:44 +0100 Subject: path must be evaluated --- tools/flex/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/flex') diff --git a/tools/flex/Makefile b/tools/flex/Makefile index 7df8f4be5..371a7564e 100644 --- a/tools/flex/Makefile +++ b/tools/flex/Makefile @@ -14,7 +14,7 @@ include ../rules.mk install: ${STAGING_HOST_DIR}/usr/bin/flex $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared - (cd ${WRKBUILD}; PATH='$(STAGING_DIR_HOST)/usr/bin:$PATH' ./configure) + (cd ${WRKBUILD}; PATH="$(STAGING_DIR_HOST)/usr/bin:$PATH" ./configure) ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' touch $@ -- cgit v1.2.3 From 43e87c966aefd31aafc8f24db4b2fc6670479467 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 1 Mar 2014 11:02:37 +0100 Subject: another fix to PATH evaluation --- tools/flex/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/flex') diff --git a/tools/flex/Makefile b/tools/flex/Makefile index 371a7564e..023b6a40c 100644 --- a/tools/flex/Makefile +++ b/tools/flex/Makefile @@ -14,7 +14,7 @@ include ../rules.mk install: ${STAGING_HOST_DIR}/usr/bin/flex $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared - (cd ${WRKBUILD}; PATH="$(STAGING_DIR_HOST)/usr/bin:$PATH" ./configure) + (cd ${WRKBUILD}; PATH="$(STAGING_DIR_HOST)/usr/bin:$$PATH" ./configure) ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' touch $@ -- cgit v1.2.3 From d61ad5d807e86890594f7c060853f014ac27562f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 1 Mar 2014 11:10:48 +0100 Subject: final fix for tools build breakage --- tools/flex/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/flex') diff --git a/tools/flex/Makefile b/tools/flex/Makefile index 023b6a40c..235f785b4 100644 --- a/tools/flex/Makefile +++ b/tools/flex/Makefile @@ -14,7 +14,7 @@ include ../rules.mk install: ${STAGING_HOST_DIR}/usr/bin/flex $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared - (cd ${WRKBUILD}; PATH="$(STAGING_DIR_HOST)/usr/bin:$$PATH" ./configure) + (cd ${WRKBUILD}; PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" ./configure) ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' touch $@ -- cgit v1.2.3