blob: 5e3ea12ec285e95cc878a052e027308158fbe3c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
# 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 <bsd.port.options.mk>
.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 <bsd.port.mk>
|