blob: 87a4f7b88ce6531bad70610b42816f4ebacc8d71 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# $NetBSD: Makefile,v 1.9 2003/07/07 13:40:08 seb Exp $
DISTNAME= sather-1.2.1
PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=sather/}
MAINTAINER= tech-pkg@netbsd.org
HOMEPAGE= http://www.gnu.org/software/sather/index.html
COMMENT= Compiler for the Sather object oriented programming language
USE_BUILDLINK2= # defined
USE_X11= # defined
USE_GMAKE= # defined
ALL_TARGET= full optional
MAKE_ENV+= _OPSYS_RPATH_NAME=${_OPSYS_RPATH_NAME}
USE_NEW_TEXINFO= YES
USE_MAKEINFO= YES
INFO_FILES= sather.info sather-tutorial.info sather-mode.info
REPLACE_PERL= ${WRKSRC}/Browser/Web/ps2gif
do-configure:
for f in \
${WRKSRC}/Boot/sacomp.code/Makefile \
${WRKSRC}/Library/System/unix.sa \
${WRKSRC}/System/Common/CONFIG.proto \
${WRKSRC}/System/Platforms/netbsd/CONFIG \
${WRKSRC}/System/Platforms/X/Platform.module \
${WRKSRC}/debian/bin-wrapper \
${WRKSRC}/Browser/Web/convert-1.1 \
${WRKSRC}/Browser/Web/gen_html_class_index \
${WRKSRC}/Browser/Web/gen_html_sa_files \
${WRKSRC}/Browser/Web/gen_html_shortflat \
${WRKSRC}/Browser/Web/gen_html_top_level \
${WRKSRC}/Browser/Web/gen_mml_sa_files \
${WRKSRC}/Browser/Web/gen_mml_shortflat \
${WRKSRC}/Browser/Web/graph2dot; \
do \
${SED} -e 's:@CC@:${CC}:g' \
-e 's:@CFLAGS@:${CFLAGS}:g' \
-e 's:@GMAKE@:${GMAKE}:g' \
-e 's:@PREFIX@:${PREFIX}:g' \
-e 's:@X11BASE@:${X11BASE}:g' \
-e 's:@GC_PREFIX@:${BUILDLINK_PREFIX.boehm-gc}:g' \
-e 's:@TCL_PREFIX@:${BUILDLINK_PREFIX.tcl}:g' \
-e 's:@TK_PREFIX@:${BUILDLINK_PREFIX.tk}:g' \
-e 's:@_OPSYS_RPATH_NAME@:${_OPSYS_RPATH_NAME}:g' \
$$f > $$f.tmp; \
${MV} -f $$f.tmp $$f; \
done
post-build:
cd ${WRKSRC}/Emacs; ${MAKEINFO} sather.texinfo; \
${MAKEINFO} sather-tutorial.texinfo; \
${MAKEINFO} sather-mode.texinfo
${RM} -fr ${WRKSRC}/System/Platforms/dualgui/dual_gui_server.code
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/sather
${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/sather/Bin
cd ${WRKSRC}/Bin; \
${INSTALL_PROGRAM} sacomp sabrowse ${PREFIX}/lib/sather/Bin; \
${INSTALL_SCRIPT} PP gen_html saprep ${PREFIX}/lib/sather/Bin
${INSTALL_SCRIPT} ${WRKSRC}/debian/bin-wrapper \
${PREFIX}/lib/sather/Bin
cd ${PREFIX}/bin; \
${LN} -sf ../lib/sather/Bin/bin-wrapper sacomp; \
${LN} -sf ../lib/sather/Bin/bin-wrapper sabrowse; \
cd ${WRKSRC} && ${PAX} -rw Library System/FORBID System/Debug \
System/Common/*.c System/Common/*.h \
System/Common/*.module System/Common/CONFIG \
System/Platforms/f77 System/Platforms/netbsd \
System/Platforms/X System/Platforms/dualgui \
System/Platforms/gui System/Platforms/tcltk \
Browser ${PREFIX}/lib/sather
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/sather/Library \
${PREFIX}/lib/sather/System
${FIND} ${PREFIX}/lib/sather -name \*.config -o -name Makefile \
-o -name \*.orig | ${XARGS} ${RM} -f
${INSTALL_DATA} ${WRKSRC}/Emacs/*.info* ${PREFIX}/info
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sather
cd ${WRKSRC}/Doc && ${PAX} -rw . ${PREFIX}/share/doc/sather
${INSTALL_MAN} ${WRKSRC}/Doc/man/man1/sacomp.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/Doc/man/man1/sabrowse.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKSRC}/Emacs/*.el ${PREFIX}/share/emacs/site-lisp
.include "../../devel/boehm-gc/buildlink2.mk"
.include "../../x11/tk/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|