aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cl-uffi
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2010-01-15 20:14:39 +0800
committerolgeni <olgeni@FreeBSD.org>2010-01-15 20:14:39 +0800
commitdb6c634e448bc8765cbc58ca91b1a4e4aa41610a (patch)
tree9c5ff04da0b9c023f86f7db9b932c7c9a9da8101 /devel/cl-uffi
parente434a643efdf84c3dfcdc64e58706cc363f818d1 (diff)
downloadfreebsd-ports-gnome-db6c634e448bc8765cbc58ca91b1a4e4aa41610a.tar.gz
freebsd-ports-gnome-db6c634e448bc8765cbc58ca91b1a4e4aa41610a.tar.zst
freebsd-ports-gnome-db6c634e448bc8765cbc58ca91b1a4e4aa41610a.zip
Remove redundant code and variables from the cl-* ports.
Introduce bsd.cl-asdf.mk to automate the compilation and installation of Common Lisp libraries using the ASDF framework. Currently it supports building FASL files on SBCL and CLISP, to support the ports that already exist in the ports tree. This should help bringing in more cl-* ports from the ASDF repository without excessive code duplication.
Diffstat (limited to 'devel/cl-uffi')
-rw-r--r--devel/cl-uffi/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/devel/cl-uffi/Makefile b/devel/cl-uffi/Makefile
index f30d8b88a0a3..700602772eb6 100644
--- a/devel/cl-uffi/Makefile
+++ b/devel/cl-uffi/Makefile
@@ -6,26 +6,24 @@
PORTNAME= uffi
PORTVERSION= 1.6.2
+PORTREVISION= 2
CATEGORIES= devel lisp
-MASTER_SITES= http://files.b9.com/uffi/
PKGNAMEPREFIX= cl-
+MASTER_SITES= http://files.b9.com/uffi/
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Universal Foreign Function Interface for Common Lisp
-BUILD_DEPENDS= ${LOCALBASE}/lib/common-lisp/asdf/asdf.lisp:${PORTSDIR}/devel/cl-asdf
-RUN_DEPENDS= ${LOCALBASE}/lib/common-lisp/asdf/asdf.lisp:${PORTSDIR}/devel/cl-asdf
-
-DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
NO_BUILD= yes
-CL_LIBDIR?= ${LOCALBASE}/lib/common-lisp
+
+USE_ASDF= yes
do-install:
- @${MKDIR} ${CL_LIBDIR}/uffi
- @${MKDIR} ${CL_LIBDIR}/uffi/src
- @${INSTALL_DATA} ${WRKSRC}/uffi.asd ${CL_LIBDIR}/uffi/
- @${INSTALL_DATA} ${WRKSRC}/src/*.lisp ${CL_LIBDIR}/uffi/src/
- @${LN} -sf ${CL_LIBDIR}/uffi/uffi.asd ${CL_LIBDIR}/system-registry/uffi.asd
+ @${MKDIR} ${ASDF_PATHNAME}
+ @${MKDIR} ${ASDF_PATHNAME}/src
+ @${INSTALL_DATA} ${WRKSRC}/uffi.asd ${ASDF_PATHNAME}
+ @${INSTALL_DATA} ${WRKSRC}/src/*.lisp ${ASDF_PATHNAME}/src
+ @${LN} -sf ${ASDF_PATHNAME}/*.asd ${ASDF_REGISTRY}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${TAR} -C ${DOCSDIR} -xf ${WRKSRC}/doc/html.tar.gz
@@ -42,4 +40,5 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
+.include "${.CURDIR}/../../devel/cl-asdf/bsd.cl-asdf.mk"
.include <bsd.port.mk>