blob: 54384fee29f94e2102642cf3208689a9329f6919 (
plain)
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
|
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
# $FreeBSD$
PORTNAME= gforth
PORTVERSION= 0.7.3
PORTREVISION= 5
CATEGORIES= lang
MASTER_SITES= http://www.complang.tuwien.ac.at/forth/gforth/ \
GNU
MAINTAINER= johans@FreeBSD.org
COMMENT= Fast and portable Forth system
LIB_DEPENDS= libffi.so.6:devel/libffi \
libltdl.so:devel/libltdl
BUILD_DEPENDS= ${LOCALBASE}/include/avcall.h:devel/ffcall
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= GFORTHHIST=${WRKSRC}
MAKE_ENV+= GFORTHHIST=${WRKSRC}
USES= gmake libtool:build makeinfo
USE_GCC= any
USE_LDCONFIG= ${PREFIX}/lib/gforth/${PORTVERSION}/libcc-named
ALL_TARGET= kernel/version.fs more info
MAKE_JOBS_UNSAFE=yes
STRIP= #none
PLIST_SUB= PORTVERSION=${PORTVERSION} \
WORDSIZE=${WORDSIZE} BYTEORDER=${BYTEORDER}
PORTDOCS= AUTHORS BUGS Benchres COPYING COPYING.DOC \
INSTALL INSTALL.BINDIST NEWS README \
NEWS.vmgen README.vmgen ToDo
INFO= gforth vmgen
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} == i386 || ${ARCH} == powerpc
WORDSIZE=32
.else
WORDSIZE=64
.endif
.if ${ARCH} == powerpc || ${ARCH} == sparc64
BYTEORDER=b
.else
BYTEORDER=l
.endif
post-patch:
${REINPLACE_CMD} 's:@CC@:& -I${LOCALBASE}/include -L${LOCALBASE}/lib:' \
${WRKSRC}/envos.fs.in
${REINPLACE_CMD} '/ checkone/d' ${WRKSRC}/Makefile.in
post-install: install-doc remove-empty-files remove-empty-dirs
install-doc:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for filename in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${filename} ${STAGEDIR}${DOCSDIR}
. endfor
.endif
# Remove unused file
remove-empty-files:
@${RM} ${STAGEDIR}${DATADIR}/site-forth/siteinit.fs
# Remove unused directories
remove-empty-dirs:
@${FIND} -d ${STAGEDIR}${DATADIR}/${PORTVERSION}/arch/ -type d -empty -delete
.include <bsd.port.post.mk>
|