2021-02-18 01:07:34 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=tinyscheme
|
|
|
|
version=1.42
|
2021-04-25 13:20:15 +03:00
|
|
|
files="https://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-${version}/tinyscheme-${version}.tar.gz tinyscheme-${version}.tar.gz 17b0b1bffd22f3d49d5833e22a120b339039d2cfda0b46d6fc51dd2f01b407ad"
|
2021-02-18 01:07:34 +03:00
|
|
|
useconfigure=false
|
|
|
|
|
|
|
|
build() {
|
2021-04-25 08:21:28 +03:00
|
|
|
run make scheme CC="${CC} -fpic -pedantic" SYS_LIBS='-ldl' FEATURES='-DUSE_NO_FEATURES=1 -DInitFile=\"/usr/local/include/tinyscheme/init.scm\"'
|
2021-02-18 01:07:34 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2021-03-11 21:50:44 +03:00
|
|
|
run mkdir -p "${SERENITY_BUILD_DIR}/Root/usr/local/bin"
|
|
|
|
run cp scheme "${SERENITY_BUILD_DIR}/Root/usr/local/bin/tinyscheme"
|
|
|
|
run mkdir -p "${SERENITY_BUILD_DIR}/Root/usr/local/include/tinyscheme"
|
|
|
|
run cp init.scm "${SERENITY_BUILD_DIR}/Root/usr/local/include/tinyscheme/init.scm"
|
2021-02-18 01:07:34 +03:00
|
|
|
}
|