ports/devel/cl-asdf/Makefile
Joseph Mingrone 4c954c1522
Infrastructure for Common Lisp Ports: Overhaul
- Decouple ASDF initialization from devel/cl-asdf by creating a
  dedicated port: devel/freebsd-cl-asdf-init.
- Convert devel/cl-asdf/bsd.cl-asdf.mk to USES=cl.
- Add devel/cl-asdf-sbcl
- Update ASDF configuration:
   - Prefer newer ASDF versions, but only if the fasl is available.
   - Replace license text with an SPDX license identifier.
   - Simplify and clarify documentation.
   - Remove the assumption that ${PREFIX} is /usr/local.
   - Use uiop:getenv instead of a custom getenv function.
   - Remove asdf:output-files customization to resolve output
     translation issues.
   - Improve output translations:
     - Prevent writing fasls to ${PREFIX}/lib/common-lisp/ when the
       corresponding fasl port is not installed.
     - Fall back to ASDF's default caching mechanism of writing fasl to
       a cache under ${HOME} when users install a Common Lisp port
       without its fasl port.
   - Improve interoperability with Common Lisp code from sources outside
     of ports, such as Quicklisp.
   - Add support for Clozure Common Lisp (CCL)

Approved by:	olgeni (implicit)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D47983
2024-12-19 22:31:48 -04:00

43 lines
1.5 KiB
Makefile

PORTNAME= asdf
DISTVERSION= 3.3.7
PORTEPOCH= 2
CATEGORIES= devel lisp
MASTER_SITES= https://asdf.common-lisp.dev/archives/
PKGNAMEPREFIX= cl-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= System definition facility for Common Lisp
WWW= https://common-lisp.net/project/asdf/
LICENSE= MIT
USES= cl gmake
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} && /bin/sh make-asdf.sh build_asdf)
do-install:
@${MKDIR} ${STAGEDIR}${ASDF_PATHNAME} \
${STAGEDIR}${ASDF_PATHNAME}/build \
${STAGEDIR}${ASDF_PATHNAME}/contrib \
${STAGEDIR}${ASDF_PATHNAME}/uiop \
${STAGEDIR}${ASDF_REGISTRY}
${INSTALL_DATA} ${WRKSRC}/*.lisp ${STAGEDIR}${ASDF_PATHNAME}
${INSTALL_DATA} ${WRKSRC}/build/asdf.lisp ${STAGEDIR}${ASDF_PATHNAME}/build/
${INSTALL_DATA} ${WRKSRC}/contrib/*.lisp ${STAGEDIR}${ASDF_PATHNAME}/contrib
${INSTALL_DATA} ${WRKSRC}/uiop/*.lisp ${STAGEDIR}${ASDF_PATHNAME}/uiop
${INSTALL_DATA} ${WRKSRC}/version.lisp-expr ${STAGEDIR}${ASDF_PATHNAME}
${INSTALL_DATA} ${WRKSRC}/asdf.asd ${STAGEDIR}${ASDF_PATHNAME}
${INSTALL_DATA} ${WRKSRC}/uiop/uiop.asd ${STAGEDIR}${ASDF_PATHNAME}/uiop
${RLN} ${STAGEDIR}${ASDF_PATHNAME}/build/asdf.lisp ${STAGEDIR}${ASDF_PATHNAME}
${RLN} ${STAGEDIR}${ASDF_PATHNAME}/asdf.asd ${STAGEDIR}${ASDF_REGISTRY}
${RLN} ${STAGEDIR}${ASDF_PATHNAME}/uiop/uiop.asd ${STAGEDIR}${ASDF_REGISTRY}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
(cd ${STAGEDIR}${DOCSDIR} && ${RM} .htaccess Changelog Makefile)
.include <bsd.port.mk>