Changeset View
Changeset View
Standalone View
Standalone View
devel/cl-asdf/bsd.cl-asdf.mk
| # $FreeBSD$ | # $FreeBSD$ | ||||
| # | # | ||||
| # bsd.cl-asdf.mk - Common Lisp related macros | # bsd.cl-asdf.mk - Common Lisp related macros | ||||
| # | # | ||||
| # SBCL - Path to the Steel Bank Common Lisp compiler | # SBCL - Path to the Steel Bank Common Lisp compiler | ||||
| # CLISP - Path to the GNU Common Lisp compiler | # CLISP - Path to the GNU Common Lisp compiler | ||||
| # LISP_EXTRA_ARG - Extra arguments for compiler used by FASL_BUILD ports | # LISP_EXTRA_ARG - Extra arguments for compiler used by FASL_BUILD ports | ||||
| # CL_LIBDIR_REL - Common Lisp library directory, relative to LOCALBASE or PREFIX | # CL_LIBDIR_REL - Common Lisp library directory, relative to LOCALBASE or PREFIX | ||||
| # ASDF_PATHNAME - Where to install compiled FASL files (depends on FASL_DIR_REL) | # ASDF_PATHNAME - Where to install compiled FASL files (depends on FASL_DIR_REL) | ||||
| # ASDF_REGISTRY - Path to ASDF registry | # ASDF_REGISTRY - Path to ASDF registry | ||||
| # DOCSDIR - DOCSDIR using UNIQUENAME (to account for optional cl- PKGNAMEPREFIX) | # DOCSDIR - DOCSDIR using PKGBASE (to account for optional cl- PKGNAMEPREFIX) | ||||
| # EXAMPLESDIR - Same as above, for EXAMPLESDIR | # EXAMPLESDIR - Same as above, for EXAMPLESDIR | ||||
| # FASL_DIR_REL - Relative path to compiled FASL files; depends on FASL_TARGET | # FASL_DIR_REL - Relative path to compiled FASL files; depends on FASL_TARGET | ||||
| # FASL_TARGET - Platform for building FASL files (currently "sbcl" or "clisp") | # FASL_TARGET - Platform for building FASL files (currently "sbcl" or "clisp") | ||||
| # USE_SBCL - If set, depend on lang/sbcl | # USE_SBCL - If set, depend on lang/sbcl | ||||
| # USE_CLISP - If set, depend on lang/clisp | # USE_CLISP - If set, depend on lang/clisp | ||||
| # USE_ASDF - If set, depend on devel/cl-asdf | # USE_ASDF - If set, depend on devel/cl-asdf | ||||
| # USE_ASDF_FASL - If set, set dependency on compiled ASDF files (only if | # USE_ASDF_FASL - If set, set dependency on compiled ASDF files (only if | ||||
| # required by the chosen FASL_TARGET) | # required by the chosen FASL_TARGET) | ||||
| # FASL_BUILD - If set, compile FASL files using the ASDF framework | # FASL_BUILD - If set, compile FASL files using the ASDF framework | ||||
| # ASDF_MODULES - If FASL_BUILD is set: list of ASDF modules to compile | # ASDF_MODULES - If FASL_BUILD is set: list of ASDF modules to compile | ||||
| CL_ASDF_Include_MAINTAINER= olgeni@FreeBSD.org | CL_ASDF_Include_MAINTAINER= olgeni@FreeBSD.org | ||||
| SBCL?= ${LOCALBASE}/bin/sbcl | SBCL?= ${LOCALBASE}/bin/sbcl | ||||
| CLISP?= ${LOCALBASE}/bin/clisp | CLISP?= ${LOCALBASE}/bin/clisp | ||||
| CL_LIBDIR_REL= lib/common-lisp | CL_LIBDIR_REL= lib/common-lisp | ||||
| ASDF_PATHNAME= ${PREFIX}/${CL_LIBDIR_REL}/${PORTNAME} | ASDF_PATHNAME= ${PREFIX}/${CL_LIBDIR_REL}/${PORTNAME} | ||||
| FASL_PATHNAME= ${PREFIX}/${CL_LIBDIR_REL}/${PORTNAME}/${FASL_DIR_REL} | FASL_PATHNAME= ${PREFIX}/${CL_LIBDIR_REL}/${PORTNAME}/${FASL_DIR_REL} | ||||
| ASDF_REGISTRY= ${PREFIX}/${CL_LIBDIR_REL}/system-registry | ASDF_REGISTRY= ${PREFIX}/${CL_LIBDIR_REL}/system-registry | ||||
| # Include PKGNAMEPREFIX in DOCSDIR and EXAMPLESDIR | # Include PKGNAMEPREFIX in DOCSDIR and EXAMPLESDIR | ||||
| DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} | DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} | ||||
| EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME} | EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE} | ||||
| .if defined(FASL_TARGET) | .if defined(FASL_TARGET) | ||||
| FASL_DIR_REL= ${FASL_TARGET}fasl | FASL_DIR_REL= ${FASL_TARGET}fasl | ||||
| PKGNAMESUFFIX= -${FASL_TARGET} | PKGNAMESUFFIX= -${FASL_TARGET} | ||||
| .if ${FASL_TARGET} == "sbcl" | .if ${FASL_TARGET} == "sbcl" | ||||
| USE_SBCL= yes | USE_SBCL= yes | ||||
| .elif ${FASL_TARGET} == "clisp" | .elif ${FASL_TARGET} == "clisp" | ||||
| USE_CLISP= yes | USE_CLISP= yes | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||