pkg(csharp-mono): Added version 6.12.0.122

This commit is contained in:
Thomas Hobson 2021-02-27 22:22:03 +13:00
parent 687085a99d
commit 09913d9e40
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 34 additions and 0 deletions

34
packages/csharp-mono.mk Normal file
View File

@ -0,0 +1,34 @@
NAME=csharp-mono
AUTHOR=Thomas Hobson <thomas@hexf.me>
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 $@