From 09913d9e40d048d5adf4bce47058f868a7d8c606 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sat, 27 Feb 2021 22:22:03 +1300 Subject: [PATCH] pkg(csharp-mono): Added version 6.12.0.122 --- packages/csharp-mono.mk | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 packages/csharp-mono.mk diff --git a/packages/csharp-mono.mk b/packages/csharp-mono.mk new file mode 100644 index 0000000..b9d7f54 --- /dev/null +++ b/packages/csharp-mono.mk @@ -0,0 +1,34 @@ +NAME=csharp-mono +AUTHOR=Thomas Hobson +DEPENDENCIES= +COMPILED=true +VERSIONS=6.12.0 + +include common.mk + + +VERSION_6.12.0_FULL=6.12.0.122 + +VERSION_FULL=${VERSION_${VERSION}_FULL} + + +${RUN_FILE}: + echo 'CODE=$${1/cs/exe}' > $@ + echo 'shift' >> $@ + echo 'mono $$CODE $$*' >> $@ + +${COMPILE_FILE}: + echo 'csc $$*' > $@ + +${ENV_FILE}: + echo 'export PATH=$$PWD/bin:$$PATH' > $@ + +${BIN_DIR}: ${BUILD_DIR}mono-${VERSION_FULL}/ + $(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout/) + cd $< && ./configure --prefix ${PREFIX} + $(MAKE) -j64 -C $< + DESTDIR=${TMP_DIR} $(MAKE) -C $< install + mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -r ${TMP_DIR} + +${BUILD_DIR}mono-${VERSION_FULL}.tar.xz: + curl "https://download.mono-project.com/sources/mono/mono-${VERSION_FULL}.tar.xz" -o $@