mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
c609e39f76
- Remove the indefinite article from COMMENT - Convert USE_GMAKE to USES - Add DOCS option - Add stage support PR: ports/182634 Submitted by: Vitaly Magerya <vmagerya@gmail.com> (maintainer) [1] Approved by: wg/culot (mentors, implicit)
42 lines
996 B
Makefile
42 lines
996 B
Makefile
# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= chicken
|
|
PORTVERSION= 4.8.0.5
|
|
CATEGORIES= lang scheme
|
|
MASTER_SITES= http://code.call-cc.org/releases/4.8.0/
|
|
|
|
MAINTAINER= vmagerya@gmail.com
|
|
COMMENT= Scheme-to-C compiler
|
|
|
|
USES= gmake
|
|
MAKEFILE= GNUmakefile
|
|
USE_LDCONFIG= yes
|
|
MAKE_ARGS+= PLATFORM=bsd PREFIX=${PREFIX} \
|
|
TOPMANDIR=${PREFIX}/man ARCH=${NEW_ARCH} \
|
|
C_COMPILER="${CC}" \
|
|
CXX_COMPILER="${CXX}" \
|
|
LIBRARIAN="${AR}" \
|
|
DOCDIR="${DOCSDIR}" \
|
|
C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}"
|
|
|
|
NEW_ARCH= ${ARCH:S/i386/x86/:S/amd64/x86-64/}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "amd64" && ${ARCH} != "i386" && ${ARCH} != "sparc64"
|
|
MAKE_ARGS+= HACKED_APPLY=
|
|
.endif
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
|
|
|
|
# This only works *after* chicken is installed.
|
|
regression-test: build
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
|
${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
|
|
|
.include <bsd.port.post.mk>
|