head	1.16;
access;
symbols
	RELEASE_8_3_0:1.11
	RELEASE_9_0_0:1.11
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.5;
locks; strict;
comment	@# @;


1.16
date	2013.03.07.14.41.20;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2013.01.26.15.07.26;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.08.19.04.26.58;	author olgeni;	state Exp;
branches;
next	1.12;

1.12
date	2012.08.14.16.35.45;	author olgeni;	state Exp;
branches;
next	1.11;

1.11
date	2011.10.10.10.35.03;	author olgeni;	state Exp;
branches;
next	1.10;

1.10
date	2011.08.17.11.53.19;	author olgeni;	state Exp;
branches;
next	1.9;

1.9
date	2011.04.02.21.09.15;	author olgeni;	state Exp;
branches;
next	1.8;

1.8
date	2011.03.29.20.35.44;	author olgeni;	state Exp;
branches;
next	1.7;

1.7
date	2011.03.28.16.45.19;	author olgeni;	state Exp;
branches;
next	1.6;

1.6
date	2010.06.25.13.51.31;	author olgeni;	state Exp;
branches;
next	1.5;

1.5
date	2010.01.15.11.13.51;	author olgeni;	state Exp;
branches;
next	1.4;

1.4
date	2010.01.09.14.09.13;	author olgeni;	state Exp;
branches;
next	1.3;

1.3
date	2010.01.08.20.21.01;	author olgeni;	state Exp;
branches;
next	1.2;

1.2
date	2010.01.08.12.50.34;	author olgeni;	state Exp;
branches;
next	1.1;

1.1
date	2010.01.03.16.17.29;	author olgeni;	state Exp;
branches;
next	;


desc
@@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313584
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/lang/ccl/Makefile 313584 2013-03-07 13:22:17Z olgeni $

PORTNAME=	ccl
PORTVERSION=	1.9
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

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} == "amd64" && ${OSVERSION} >= 700000 && ${OSVERSION} < 800000
MANUAL_PACKAGE_BUILD=yes
.endif

.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 -f

do-build:
	@@${RM} -f ${WRKSRC}/fx86cl ${WRKSRC}/fx86cl64
	@@cd ${WRKSRC}/lisp-kernel/freebsd${LISP_ARCH} && ${MAKE} && ${RM} -f *.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} ${CCL_DIRECTORY}
	@@${CP} -r ${WRKSRC}/* ${CCL_DIRECTORY}
	@@for i in ${EXCLUDE}; do \
		${RM} -r -f ${CCL_DIRECTORY}/$${i}; \
	done
	@@${INSTALL_SCRIPT} ${WRKDIR}/ccl.sh ${PREFIX}/bin/ccl

post-install:
	@@cd ${WRKSRC} && ${ECHO_CMD} | ${SETENV} -u CCL_DEFAULT_DIRECTORY ./${FX86CL} --no-init --batch --quiet \
		--eval "(require 'asdf)" \
		--eval '(load "/usr/local/etc/asdf-init.lisp")' \
		--eval "(quit)"
	@@cd ${PREFIX}; ${FIND} lib/ccl/* -type d -empty \
		| ${SORT} \
		| ${SED} -e 's#^#@@exec ${MKDIR} %D/#g' \
		> ${CCL_PLIST}
	@@cd ${PREFIX}; ${FIND} lib/ccl/* -type f -o -type l \
		| ${SORT} \
		>> ${CCL_PLIST}
	@@cd ${PREFIX}; ${FIND} lib/ccl/* -type d | ${SORT} -r \
	    	| ${SED} -e 's/^/@@dirrm /g' \
		>> ${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
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311016
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/lang/ccl/Makefile 311016 2013-01-26 14:50:30Z olgeni $
d4 1
a4 1
PORTVERSION=	1.8
@


1.14
log
@Switch exporter over
@
text
@d1 1
a1 6
# New ports collection makefile for:	ccl
# Date created:		2010-01-03
# Whom:			Jimmy Olgeni <olgeni@@FreeBSD.org>
#
# $FreeBSD: head/lang/ccl/Makefile 302751 2012-08-19 04:26:58Z olgeni $
#
@


1.13
log
@SVN rev 302751 on 2012-08-19 04:26:58Z by olgeni

Revert test code that crept in on r302526.

Submitted by:	Jarrod Sayers <jarrod downtools.com.au>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.12
log
@SVN rev 302526 on 2012-08-14 16:35:45Z by olgeni

Upgrade to version 1.8.
@
text
@d28 1
a28 2
.include "/usr/ports/devel/cl-asdf/bsd.cl-asdf.mk"
# .include "${.CURDIR}/../../devel/cl-asdf/bsd.cl-asdf.mk"
@


1.11
log
@Unset CCL_DEFAULT_DIRECTORY before running the CCL compiler, else
the build would fail.

PR:		ports/161416
Submitted by:	Nali Toja <nalitoja gmail com>
@
text
@d9 1
a9 1
PORTVERSION=	1.7
d17 1
a17 1
WRKSRC=		${WRKDIR}/ccl-${PORTVERSION}
d28 2
a29 1
.include "${.CURDIR}/../../devel/cl-asdf/bsd.cl-asdf.mk"
a57 4
	@@cd ${WRKSRC} && if ! ${ECHO_CMD} | ${SETENV} -u CCL_DEFAULT_DIRECTORY ./${FX86CL} --batch --quiet >/dev/null 2>&1; then \
		${ECHO_MSG} "===>  This CPU doesn't support the SSE2 instruction set: cannot build port."; \
		exit 1; \
	fi
@


1.10
log
@Upgrade to version 1.7.
@
text
@d57 1
a57 1
	@@cd ${WRKSRC} && if ! ${ECHO_CMD} | ./${FX86CL} --batch --quiet >/dev/null 2>&1; then \
d61 1
a61 1
	@@cd ${WRKSRC} && ${ECHO_CMD} | ./${FX86CL} --no-init --batch --quiet \
d74 1
a74 1
	@@cd ${WRKSRC} && ${ECHO_CMD} | ./${FX86CL} --no-init --batch --quiet \
@


1.9
log
@Set MANUAL_PACKAGE_BUILD for amd64 7 only, which causes an abort
trap under tinderbox. i386 7 and amd64/i386 8 build just fine.
@
text
@d9 1
a9 1
PORTVERSION=	1.6
d17 1
a17 1
WRKSRC=		${WRKDIR}/ccl
a76 1
		--eval "(asdf:operate 'asdf:load-op 'asdf-install)" \
@


1.8
log
@Remove MANUAL_PACKAGE_BUILD: this port builds fine in both i386 and
amd64 tinderboxes.
@
text
@d32 4
@


1.7
log
@Upgrade to version 1.6.
@
text
@a20 2
MANUAL_PACKAGE_BUILD=yes

@


1.6
log
@Upgrade to version 1.5.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.5
d28 4
a60 2
		--eval "(require 'asdf)" \
		--eval "(asdf:operate 'asdf:load-op 'asdf-install)" \
d72 5
@


1.5
log
@Precompile the asdf-install module.
Remove .orig files after patching.
Set MANUAL_PACKAGE_BUILD due to the SSE2 instruction set requirement.
@
text
@d9 1
a9 2
PORTVERSION=	1.4
PORTREVISION=	2
@


1.4
log
@Integrate adsf-install and the local FreeBSD registry into
asdf:*central-registry* by default.
@
text
@d10 1
a10 1
PORTREVISION=	1
d22 2
d46 2
a47 1
	@@${FIND} ${WRKSRC} -name .svn -or -name .cvsignore | ${XARGS} ${RM} -r -f
d58 2
@


1.3
log
@Build without using a temporary script.
@
text
@d10 1
d43 1
@


1.2
log
@Add a pkg-message file with a few hints.
@
text
@a20 1
BUILD_SCRIPT=	${WRKSRC}/build.lisp
d51 3
a53 4
	@@${ECHO_CMD} "(ccl:rebuild-ccl :full t)" > ${BUILD_SCRIPT}
	@@${ECHO_CMD} "(quit)" >> ${BUILD_SCRIPT}
	@@cd ${WRKSRC} && (${ECHO_CMD} "(quit)" \
		| ./${FX86CL} --batch --quiet --load ${BUILD_SCRIPT})
@


1.1
log
@Add Clozure CL, a free Common Lisp implementation that can be
bootstrapped from C code alone.

Unfortunately this port does not support CPUs without the SSE2
instruction set, and will fail to build with a diagnostic message
in those cases. Supported FreeBSD architectures are i386 and amd64.

pkg-descr contains a quick description of the main Clozure CL
features.
@
text
@d81 1
@

