freebsd-ports/devel/cl-asdf/Makefile

54 lines
1.7 KiB
Makefile

# New ports collection Makefile for: cl-asdf
# Date created: 10 May 2003
# Whom: Henrik Motakef <henrik.motakef@web.de>
#
# $FreeBSD$
PORTNAME= asdf
PORTVERSION= 2003.05.16
PORTREVISION= 2
CATEGORIES= devel lisp
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= pav
PKGNAMEPREFIX= cl-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= A system definition facility for Common Lisp
SUB_FILES+= pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes # Sources only, see cl-asdf-[sbcl|clisp]
CL_LIBDIR= ${PREFIX}/lib/common-lisp
ASDF_SYSTEM_REGISTRY= ${CL_LIBDIR}/system-registry
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME}
do-install:
${MKDIR} ${CL_LIBDIR}/asdf
${MKDIR} ${ASDF_SYSTEM_REGISTRY}
${INSTALL_DATA} ${WRKSRC}/asdf.lisp ${CL_LIBDIR}/asdf/
${INSTALL_DATA} ${WRKSRC}/wild-modules.lisp ${CL_LIBDIR}/asdf/
${SED} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${CL_LIBDIR}/asdf/asdf.lisp
${SED} -e 's|%%ASDF_PATHNAME%%|${CL_LIBDIR}/asdf/asdf|' \
-e 's|%%ASDF_SYSTEM_REGISTRY%%|${ASDF_SYSTEM_REGISTRY}|' \
-e 's|%%PREFIX%%|${PREFIX}|' \
${FILESDIR}/asdf-init.lisp > \
${PREFIX}/etc/asdf-init.lisp.default
[ -f ${PREFIX}/etc/asdf-init.lisp ] || \
${CP} ${PREFIX}/etc/asdf-init.lisp.default \
${PREFIX}/etc/asdf-init.lisp
.if !defined(NOPORTDOCS)
${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/test/* ${EXAMPLESDIR}/
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>