# Created by: hsu # $FreeBSD$ PORTNAME= gcl PORTVERSION= 2.6.12 PORTREVISION= 5 CATEGORIES= lang tcl tk MASTER_SITES= GNU MAINTAINER= ports@FreeBSD.org COMMENT= GNU Common Lisp LICENSE= GPLv2 LGPL21 LICENSE_COMB= multi BROKEN= missing header BUILD_DEPENDS= gawk:lang/gawk LIB_DEPENDS= libgmp.so:math/gmp WRKSRC= ${WRKDIR}/${PORTNAME} USES= gmake readline USE_CSTD= gnu89 GNU_CONFIGURE= yes CONFIGURE_ENV= ac_cv_prog_AWK="${LOCALBASE}/bin/gawk" \ C_INCLUDE_PATH="${PREFIX}/include" LIBRARY_PATH="${PREFIX}/lib" CONFIGURE_ARGS= --enable-ansi \ --enable-machine=${OPSYS} \ --enable-emacsdir=${PREFIX}/share/emacs/site-lisp/gcl \ --enable-infodir=${PREFIX}/${INFO_PATH} \ --disable-dlopen \ --disable-dynsysbfd \ --disable-statsysbfd \ --enable-custreloc MAKEFILE= makefile INSTALL_TARGET= install-command LATE_INSTALL_ARGS=\ INSTALL_LIB_DIR="${PREFIX}/lib/${DISTNAME}" \ prefix="${PREFIX}" \ BINDIR="${PREFIX}/lib/${DISTNAME}/unixport" MAKE_JOBS_UNSAFE=yes CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lreadline -lgmp -lm INFO= gcl-si gcl-tk PORTDOCS= * PLIST_FILES= bin/gcl \ ${FILES_CLCS:S|^|lib/${DISTNAME}/clcs/|} \ ${FILES_CMPNEW:S|^|lib/${DISTNAME}/cmpnew/|} \ ${FILES_H:S|^|lib/${DISTNAME}/h/|} \ ${INFO:S|^|lib/${DISTNAME}/info/|:S|$|.info|} \ ${FILES_LSP:S|^|lib/${DISTNAME}/lsp/|} \ ${PCL_FILES:S|^|lib/${DISTNAME}/pcl/|} \ ${FILES_UNIXPORT:S|^|lib/${DISTNAME}/unixport/|} PLIST_DIRS= lib/${DISTNAME}/pcl ONLY_FOR_ARCHS= amd64 i386 OPTIONS_DEFINE= DOCS EMACS X11 OPTIONS_DEFAULT= EMACS X11 EMACS_DESC= Install Emacs syntax files EMACS_USE= emacs=yes EMACS_PLIST_FILES= ${FILES_ELISP:S|^|%%EMACS_SITE_LISPDIR%%/gcl/|} X11_USES= tk X11_USE= xorg=x11 X11_CONFIGURE_ON= --enable-tclconfig=${TCL_LIBDIR} \ --enable-tkconfig=${TK_LIBDIR} \ --with-x X11_CONFIGURE_OFF= --disable-xgcl X11_LDFLAGS= -lX11 X11_PLIST_FILES= ${FILES_GCLTK:S|^|lib/gcl-${PORTVERSION}/gcl-tk/|} \ ${FILES_GCLTK_DEMOS:S|^|lib/gcl-${PORTVERSION}/gcl-tk/demos/|} \ ${FILES_XGCL2:S|^|lib/gcl-${PORTVERSION}/xgcl-2/|} FILES_CLCS= sys-proclaim.lisp FILES_CMPNEW= gcl_cmpmain.lsp gcl_cmpopt.lsp gcl_collectfn.lsp \ gcl_collectfn.o gcl_lfun_list.lsp sys-proclaim.lisp FILES_H= cmpinclude.h FILES_LSP= gcl_auto_new.lsp gcl_autoload.lsp gcl_export.lsp \ gcl_gprof.lsp gcl_info.o gcl_profile.lsp \ sys-proclaim.lisp FILES_PCL= sys-proclaim.lisp FILES_UNIXPORT= gcl.script init_ansi_gcl.lsp libansi_gcl.a \ libgclp.a saved_ansi_gcl FILES_ELISP= add-default.el ansi-doc.el dbl.el doc-to-texi.el gcl.el \ man1-to-texi.el smart-complete.el sshell.el FILES_GCLTK= decode.tcl gcl.tcl gcltkaux gcltksrv tinfo.o \ tk-package.lsp tkl.o FILES_GCLTK_DEMOS=\ gc-monitor.lisp gc-monitor.o index.lsp \ mkBasic.lisp mkCanvText.lisp mkEntry.lisp \ mkEntry2.lisp mkForm.lisp mkHScale.lisp \ mkItems.lisp mkLabel.lisp mkListbox.lisp \ mkPlot.lisp mkRadio.lisp mkRuler.lisp \ mkSearch.lisp mkStyles.lisp mkTextBind.lisp \ mkVScale.lisp mkdialog.lisp nqthm-stack.lisp \ showVars.lisp widget.lisp FILES_XGCL2= gcl_dwtest.lsp gcl_dwtestcases.lsp sysdef.lisp .include .if ${PORT_OPTIONS:MEMACS} EMACS_NO_BUILD_DEPENDS=yes .endif post-patch: @${REINPLACE_CMD} -e \ 's|@@CFLAGS@@|${CFLAGS}| ; \ s|@@LOCALLIBS@@|${LDFLAGS}|' ${WRKSRC}/h/FreeBSD.defs post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/clcs .for i in ${FILES_CLCS} (cd ${WRKSRC}/clcs && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/clcs) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/cmpnew .for i in ${FILES_CMPNEW} (cd ${WRKSRC}/cmpnew && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/cmpnew) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/info .for i in ${INFO} (cd ${WRKSRC}/info && ${INSTALL_DATA} ${i}.info \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/info) (cd ${WRKSRC}/info && ${INSTALL_DATA} ${i}.info \ ${STAGEDIR}${PREFIX}/${INFO_PATH}) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/h .for i in ${FILES_H} (cd ${WRKSRC}/h && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/h) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/lsp .for i in ${FILES_LSP} (cd ${WRKSRC}/lsp && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/lsp) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/pcl .for i in ${PCL_FILES} (cd ${WRKSRC}/pcl && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/pcl) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/unixport .for i in saved_ansi_gcl (cd ${WRKSRC}/unixport && ${INSTALL_PROGRAM} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/unixport) .endfor .for i in ${FILES_UNIXPORT:Nsaved_ansi_gcl} (cd ${WRKSRC}/unixport && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/unixport) .endfor .if ${PORT_OPTIONS:MEMACS} @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/gcl .for i in ${FILES_ELISP} (cd ${WRKSRC}/elisp && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/gcl) .endfor .endif .if ${PORT_OPTIONS:MX11} @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk .for i in gcltkaux (cd ${WRKSRC}/gcl-tk && ${INSTALL_LIB} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk) .endfor .for i in ${FILES_GCLTK:Ngcltkaux} (cd ${WRKSRC}/gcl-tk && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk/demos .for i in ${FILES_GCLTK_DEMOS} (cd ${WRKSRC}/gcl-tk/demos && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk/demos) .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/xgcl-2 .for i in ${FILES_XGCL2} (cd ${WRKSRC}/xgcl-2 && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/xgcl-2) .endfor .endif @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/xgcl-2 && ${INSTALL_DATA} *.tex \ ${STAGEDIR}${DOCSDIR}) @${MKDIR} ${STAGEDIR}${DOCSDIR}/dwdoc (cd ${WRKSRC}/xgcl-2/dwdoc && ${INSTALL_DATA} *.html \ ${STAGEDIR}${DOCSDIR}/dwdoc) .include