1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/lang/ccl/Makefile
Stefan Eßer f92feb18f5 Add a build dependency on GNU as
On systems with GNU as in base (up to and including 12.x) there is no need
to provide the GNU binutils from a port.

If the not fully compatible llvm-as should be made available under the name
"as", the condition should be changed to always require binutils from a port
when running on a system after 12.x (which should retain the GNU as in base
for the live-time of that major release).
2020-09-22 16:38:43 +00:00

70 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= ccl
DISTVERSIONPREFIX= v
DISTVERSION= 1.12
PORTREVISION= 1
CATEGORIES= lang lisp
MASTER_SITES+= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${PORTVERSION}/:bootstrap
DISTFILES= freebsdx86.tar.gz:bootstrap
DIST_SUBDIR= ${PORTNAME}/${DISTVERSIONPREFIX}${PORTVERSION}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Clozure CL is a free Common Lisp implementation
LICENSE= LGPL21
ONLY_FOR_ARCHS= amd64
USE_GITHUB= yes
GH_ACCOUNT= Clozure
CCL_DIRECTORY= ${PREFIX}/lib/ccl
# the following files will not be installed
EXCLUDE= cocoa-ide lisp-kernel scripts fx86cl fx86cl.image
USE_ASDF= yes
.include "${.CURDIR}/../../devel/cl-asdf/bsd.cl-asdf.mk"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1200000
IGNORE= does not build on FreeBSD < 12.0
.endif
BUILD_DEPENDS+= as:devel/binutils
LISP_ARCH= x8664
FX86CL= fx86cl64
SUB_LIST+= CCL_DIRECTORY="${CCL_DIRECTORY}" \
FX86CL="${FX86CL}"
SUB_FILES= ccl.sh
post-extract:
@cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/freebsdx86.tar.gz
post-patch:
@${SED} -i '' -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/tools/asdf.lisp
@${SED} -i '' -e 's|%%TAG%%|v${PORTVERSION}|' ${WRKSRC}/lisp-kernel/freebsdx86*/Makefile
@${FIND} ${WRKSRC} -name .svn -or -name .cvsignore -or -name "*.orig" \
| ${XARGS} ${RM} -r
do-build:
@${RM} ${WRKSRC}/fx86cl ${WRKSRC}/fx86cl64
@cd ${WRKSRC}/lisp-kernel/freebsd${LISP_ARCH} && ${MAKE} && ${RM} *.o
@cd ${WRKSRC} && ${ECHO_CMD} | ${SETENV} -u CCL_DEFAULT_DIRECTORY ./${FX86CL} --no-init --batch --quiet \
--eval "(ccl:rebuild-ccl :full t)" \
--eval "(quit)"
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ccl
${CP} -r ${WRKSRC}/* ${STAGEDIR}${CCL_DIRECTORY}
@for i in ${EXCLUDE}; do \
${RM} -r ${STAGEDIR}${CCL_DIRECTORY}/$${i}; \
done
${INSTALL_SCRIPT} ${WRKDIR}/ccl.sh ${STAGEDIR}${PREFIX}/bin/ccl
.include <bsd.port.post.mk>