racket: do not define function conditionally
This commit is contained in:
parent
5e941fddcb
commit
38ea8f4f87
@ -21,17 +21,22 @@ nostrip=yes
|
|||||||
patch_args="-Np2"
|
patch_args="-Np2"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
_chezscheme_path="${XBPS_BUILDDIR}/${wrksrc}/${build_wrksrc}"
|
|
||||||
|
|
||||||
configure_args+=" --enable-racket=/usr/bin/racket
|
|
||||||
--enable-scheme=${_chezscheme_path}"
|
|
||||||
hostmakedepends+=" racket sqlite-devel"
|
hostmakedepends+=" racket sqlite-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
configure_args+=" --enable-racket=/usr/bin/racket
|
||||||
|
--enable-scheme=${wrksrc}/src"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
# Build ChezScheme for the host so we can use it to build Racket
|
# Build ChezScheme for the host so we can use it to build Racket
|
||||||
# Using "--enable-racket=auto" above selects the wrong compiler toolchain
|
# Using "--enable-racket=auto" above selects the wrong compiler toolchain
|
||||||
pre_build() {
|
if [ "$CROSS_BUILD" ]; then
|
||||||
(
|
(
|
||||||
cd ${_chezscheme_path}/ChezScheme
|
cd ChezScheme
|
||||||
|
|
||||||
# If this builds the wrong arch, Racket's automatic
|
# If this builds the wrong arch, Racket's automatic
|
||||||
# arch detection for the ChezScheme build has failed.
|
# arch detection for the ChezScheme build has failed.
|
||||||
@ -49,8 +54,8 @@ if [ "$CROSS_BUILD" ]; then
|
|||||||
./configure --disable-curses --disable-x11
|
./configure --disable-curses --disable-x11
|
||||||
make
|
make
|
||||||
)
|
)
|
||||||
}
|
fi
|
||||||
fi
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE-libscheme.txt
|
vlicense LICENSE-libscheme.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user