This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITP] chicken-4.9.0.1
- From: Christian Kellermann <ckeen at pestilenz dot org>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 10 Dec 2014 15:31:55 +0100
- Subject: Re: [ITP] chicken-4.9.0.1
- Authentication-results: sourceware.org; auth=none
- References: <20141210112536 dot GR12089 at pestilenz dot org> <20141210123109 dot GA27747 at calimero dot vinschen dot de> <20141210131811 dot GT12089 at pestilenz dot org> <20141210135748 dot GA3757 at calimero dot vinschen dot de>
* Corinna Vinschen <corinna-cygwin@cygwin.com> [141210 14:58]:
> > Thanks I will have a look. What's the cygwin way of detecting whether
> > we build for 32 or 64 bit? I'd use that to switch options then.
>
> ${ARCH} is i686 or x86_64. Or you can test like this:
>
> if defined ARCH_i686
> then
> ...
> fi
> if defined ARCH_x86_64
> then
> ...
> fi
Thanks for all your help!
Here's an updated version of the cygport file including your suggestion:
--8<---------------cut here---------------start------------->8---
# package name
NAME="chicken"
VERSION=4.9.0.1
RELEASE=1
# setup.hint generation
CATEGORY="interpreters"
SUMMARY="A practical and portable scheme system."
DESCRIPTION="A practical and portable scheme system.
CHICKEN is a compiler for the Scheme programming language. CHICKEN
produces portable and efficient C, supports almost all of the R5RS
Scheme language standard, and includes many enhancements and
extensions."
REQUIRES="make gcc-core gcc-g++"
# source and patch files
SRC_URI="http://code.call-cc.org/releases/${PV}/${P}.tar.gz"
MAKEOPTS="PLATFORM=cygwin"
src_compile() {
lndirs
cd ${B}
if defined ARCH_i686
then
CHICKEN_ARCH="x86"
fi
if defined ARCH_x86_64
then
CHICKEN_ARCH="x68-64"
fi
cygmake ARCH=${CHICKEN_ARCH}
}
src_install() {
cd ${B}
cygmake DESTDIR=${D} install
}
--8<---------------cut here---------------end--------------->8---
The files on http://pestilenz.org/~ckeen/cygwin-ports/ have
been updated accordingly.
Kind regards,
Christian
--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.