summaryrefslogtreecommitdiffhomepage
path: root/vars/lolcode.vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-01-16 16:05:17 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-01-16 16:05:17 +0000
commitf70e086f236ce105febc102dffe6c6ffe56c6a9b (patch)
treec8d36254aa7d65169f62c99b3a9efe66bfc20f08 /vars/lolcode.vars
parent5c21029483104c283edc1d3096eadfbb127c970f (diff)
downloadmidipix_build-f70e086f236ce105febc102dffe6c6ffe56c6a9b.tar.bz2
midipix_build-f70e086f236ce105febc102dffe6c6ffe56c6a9b.tar.xz
vars/build.vars:native_packages_etc: adds lolcode (master) (via Redfoxmoon.)
vars/lolcode.vars: via Redfoxmoon. Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'vars/lolcode.vars')
-rw-r--r--vars/lolcode.vars16
1 files changed, 16 insertions, 0 deletions
diff --git a/vars/lolcode.vars b/vars/lolcode.vars
new file mode 100644
index 00000000..8073c777
--- /dev/null
+++ b/vars/lolcode.vars
@@ -0,0 +1,16 @@
+#
+# set -o errexit -o noglob are assumed.
+#
+
+pkg_lolcode_configure() {
+ rm -f config.cache;
+ env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" \
+ PREFIX="" \
+ cmake -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
+ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
+ -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
+ -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
+ -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
+ -DCMAKE_INSTALL_PREFIX= \
+ "../lci";
+}