mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
c2965defef
- Explicitly include <machine/trap.h> for accessing T_PAGEFLT. - Use 'mc_flags' in mcontext_t to check for valid AVX state, rather than 'mc_trapno'. PR: 226809 Submitted by: jhb
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ccl
|
|
PORTVERSION= 1.11
|
|
PORTREVISION= 1
|
|
CATEGORIES= lang lisp
|
|
MASTER_SITES= ftp://ftp.clozure.com/pub/release/${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsdx86
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
COMMENT= Clozure CL is a free Common Lisp implementation
|
|
|
|
LICENSE= LGPL21
|
|
|
|
WRKSRC= ${WRKDIR}/ccl
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
CCL_DIRECTORY= ${PREFIX}/lib/ccl
|
|
CCL_PLIST= ${WRKDIR}/pkg-plist
|
|
# the following files will not be installed
|
|
EXCLUDE= cocoa-ide lisp-kernel scripts
|
|
|
|
USE_ASDF= yes
|
|
|
|
.include "${.CURDIR}/../../devel/cl-asdf/bsd.cl-asdf.mk"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
LISP_ARCH= x8632
|
|
FX86CL= fx86cl
|
|
EXCLUDE+= fx86cl64 fx86cl64.image
|
|
.elif ${ARCH} == "amd64"
|
|
LISP_ARCH= x8664
|
|
FX86CL= fx86cl64
|
|
EXCLUDE+= fx86cl fx86cl.image
|
|
.endif
|
|
|
|
SUB_LIST+= FX86CL="${FX86CL}" CCL_DIRECTORY="${CCL_DIRECTORY}"
|
|
SUB_FILES= ccl.sh
|
|
|
|
post-patch:
|
|
@${SED} -i '' -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/tools/asdf.lisp
|
|
@${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
|
|
|
|
post-install:
|
|
@cd ${STAGEDIR}${PREFIX}; ${FIND} lib/ccl/* -type d -empty \
|
|
| ${SORT} \
|
|
| ${SED} -e 's#^#@dir #g' \
|
|
> ${CCL_PLIST}
|
|
@cd ${STAGEDIR}${PREFIX}; ${FIND} lib/ccl/* -type f -o -type l \
|
|
| ${SORT} \
|
|
>> ${CCL_PLIST}
|
|
@${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
|
|
@${ECHO_CMD} "/start" >> ${WRKDIR}/ex.script
|
|
@${ECHO_CMD} "r ${CCL_PLIST}" >> ${WRKDIR}/ex.script
|
|
@${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
|
|
@cd ${WRKDIR} && ex < ex.script > /dev/null
|
|
|
|
.include <bsd.port.post.mk>
|