2000-02-13 04:25:05 +01:00
|
|
|
# ex:ts=8
|
2000-02-13 20:55:08 +01:00
|
|
|
# Ports collection makefile for: Sather
|
|
|
|
# Date created: Mon Oct 31 22:04:12 PST 1994
|
|
|
|
# Whom: hsu
|
1994-11-01 07:08:02 +01:00
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1994-11-01 07:08:02 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= sather
|
|
|
|
PORTVERSION= 1.2.1
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 2
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= lang
|
2000-02-13 20:55:08 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2002-10-22 08:12:06 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1995-04-15 07:44:50 +02:00
|
|
|
|
2002-05-08 23:03:16 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Sather compiler
|
1996-11-12 03:19:40 +01:00
|
|
|
|
2002-10-22 08:12:06 +02:00
|
|
|
LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc \
|
|
|
|
tk83.1:${PORTSDIR}/x11-toolkits/tk83
|
1998-10-14 01:13:40 +02:00
|
|
|
|
2002-06-21 18:20:23 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-02-13 20:55:08 +01:00
|
|
|
USE_GMAKE= yes
|
2002-10-22 08:12:06 +02:00
|
|
|
ALL_TARGET= full optional
|
|
|
|
MAN1= sabrowse.1 sacomp.1
|
2000-02-13 20:55:08 +01:00
|
|
|
|
2005-12-04 21:36:54 +01:00
|
|
|
INFO= sather sather-mode sather-tutorial
|
|
|
|
|
2003-10-29 03:55:49 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 501000
|
|
|
|
BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
|
|
|
|
.endif
|
|
|
|
|
2002-10-22 08:12:06 +02:00
|
|
|
post-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}/System/Platforms/freebsd
|
|
|
|
.for file in CONFIG Makefile Platform.module header.h
|
|
|
|
@${CP} -f ${FILESDIR}/freebsd-${file} \
|
|
|
|
${WRKSRC}/System/Platforms/freebsd/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for file in Boot/sacomp.code/Makefile Browser/Web/convert-1.1 \
|
|
|
|
Browser/Web/gen_html_class_index Browser/Web/gen_html_sa_files \
|
|
|
|
Browser/Web/gen_html_shortflat Browser/Web/gen_html_top_level \
|
|
|
|
Browser/Web/gen_mml_sa_files Browser/Web/gen_mml_shortflat \
|
|
|
|
Browser/Web/graph2dot Library/System/unix.sa \
|
|
|
|
System/Common/CONFIG.proto System/Platforms/freebsd/CONFIG \
|
|
|
|
System/Platforms/X/Platform.module debian/bin-wrapper
|
|
|
|
@${REINPLACE_CMD} -e 's|%%VERSION%%|${PORTVERSION}|g ; \
|
|
|
|
s|%%CC%%|${CC}|g ; \
|
|
|
|
s|%%CFLAGS%%|${CFLAGS}|g ; \
|
|
|
|
s|%%GMAKE%%|${GMAKE}|g ; \
|
|
|
|
s|%%PREFIX%%|${PREFIX}|g ; \
|
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
|
|
|
s|%%X11BASE%%|${X11BASE}|g ; \
|
|
|
|
s|CONFIG_PLATFORMS|unix|g ; \
|
|
|
|
s|CONFIG_DEFAULT_PLATFORM|freebsd|g ; \
|
|
|
|
s|/usr/bin/tclsh|${LOCALBASE}/bin/tclsh8.3|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-build:
|
2004-04-10 19:26:55 +02:00
|
|
|
.for file in sather-tutorial.texinfo sather-mode.texinfo sather.texinfo
|
2002-10-22 08:12:06 +02:00
|
|
|
cd ${WRKSRC}/Emacs && /usr/bin/makeinfo --no-split ${file}
|
|
|
|
.endfor
|
1994-11-01 07:08:02 +01:00
|
|
|
|
1995-04-24 13:29:30 +02:00
|
|
|
do-install:
|
2002-10-22 08:12:06 +02:00
|
|
|
@${MKDIR} ${PREFIX}/lib/sather/Bin
|
|
|
|
.for file in sabrowse sacomp
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Bin/${file} ${PREFIX}/lib/sather/Bin
|
|
|
|
.endfor
|
|
|
|
.for file in PP gen_html saprep
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Bin/${file} ${PREFIX}/lib/sather/Bin
|
1996-03-07 14:00:53 +01:00
|
|
|
.endfor
|
2002-10-22 08:12:06 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/debian/bin-wrapper ${PREFIX}/lib/sather/Bin
|
|
|
|
.for link in sabrowse sacomp
|
|
|
|
${LN} -sf ${PREFIX}/lib/sather/Bin/bin-wrapper ${PREFIX}/bin/${link}
|
|
|
|
.endfor
|
|
|
|
.for obj in Browser Library System/Common System/Debug System/FORBID \
|
|
|
|
System/Platforms/X System/Platforms/dualgui System/Platforms/f77 \
|
|
|
|
System/Platforms/freebsd System/Platforms/gui System/Platforms/tcltk
|
|
|
|
${TAR} -C ${WRKSRC} -cf - \
|
|
|
|
--exclude "ActiveThreads" --exclude "Brahma" \
|
|
|
|
--exclude "CONFIG.proto" --exclude "Siva" \
|
|
|
|
--exclude "dual_gui_server.code" --exclude "*.bak" \
|
|
|
|
--exclude "*.config" --exclude "*.orig" \
|
|
|
|
--exclude "*Makefile*" ${obj} | \
|
|
|
|
${TAR} -C ${PREFIX}/lib/sather --unlink -xf -
|
|
|
|
@${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/sather/${obj}
|
|
|
|
.endfor
|
|
|
|
.for file in sabrowse.1 sacomp.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/Doc/man/man1/${file} ${MANPREFIX}/man/man1
|
|
|
|
.endfor
|
2005-12-05 01:53:19 +01:00
|
|
|
.for file in ${INFO}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Emacs/${file}.info ${PREFIX}/info
|
2002-10-22 08:12:06 +02:00
|
|
|
.endfor
|
|
|
|
.for file in hl319.el sather-lib.el sather-module.el sather.el
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Emacs/${file} ${PREFIX}/share/emacs/site-lisp
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${TAR} -C ${WRKSRC}/Doc --exclude '*GPL' --exclude man -cf - . | \
|
|
|
|
${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
1996-03-07 14:00:53 +01:00
|
|
|
.endif
|
1994-11-01 07:08:02 +01:00
|
|
|
|
2003-10-29 03:35:53 +01:00
|
|
|
.include <bsd.port.post.mk>
|