head	1.50;
access;
symbols
	RELEASE_8_3_0:1.48
	RELEASE_9_0_0:1.48
	RELEASE_7_4_0:1.46
	RELEASE_8_2_0:1.46
	RELEASE_6_EOL:1.45
	RELEASE_8_1_0:1.45
	RELEASE_7_3_0:1.45
	RELEASE_8_0_0:1.44
	RELEASE_7_2_0:1.43
	RELEASE_7_1_0:1.43
	RELEASE_6_4_0:1.43
	RELEASE_5_EOL:1.43
	RELEASE_7_0_0:1.42
	RELEASE_6_3_0:1.42
	PRE_XORG_7:1.40
	RELEASE_4_EOL:1.38
	RELEASE_6_2_0:1.37
	RELEASE_6_1_0:1.34
	RELEASE_5_5_0:1.34
	RELEASE_6_0_0:1.32
	RELEASE_5_4_0:1.32
	RELEASE_4_11_0:1.32
	RELEASE_5_3_0:1.32
	RELEASE_4_10_0:1.32
	RELEASE_5_2_1:1.30
	RELEASE_5_2_0:1.30
	RELEASE_4_9_0:1.28
	RELEASE_5_1_0:1.28
	RELEASE_4_8_0:1.28
	RELEASE_5_0_0:1.27
	RELEASE_4_7_0:1.24
	RELEASE_4_6_2:1.23
	RELEASE_4_6_1:1.23
	RELEASE_4_6_0:1.23
	RELEASE_5_0_DP1:1.22
	RELEASE_4_5_0:1.22
	RELEASE_4_4_0:1.22
	RELEASE_4_3_0:1.22
	RELEASE_4_2_0:1.22
	RELEASE_4_1_1:1.22
	RELEASE_4_1_0:1.22
	RELEASE_3_5_0:1.22
	RELEASE_4_0_0:1.19
	RELEASE_3_4_0:1.16
	RELEASE_3_3_0:1.16
	RELEASE_3_2_0:1.15
	RELEASE_3_1_0:1.15
	RELEASE_2_2_8:1.15
	RELEASE_3_0_0:1.15
	RELEASE_2_2_7:1.14
	RELEASE_2_2_6:1.14
	RELEASE_2_2_5:1.14
	RELEASE_2_2_1:1.14
	RELEASE_2_2_2:1.14
	SATHER_1_0_1:1.1.1.1
	ICSI:1.1.1;
locks; strict;
comment	@# @;


1.50
date	2012.11.17.05.58.47;	author svnexp;	state Exp;
branches;
next	1.49;

1.49
date	2012.06.13.05.13.03;	author bapt;	state Exp;
branches;
next	1.48;

1.48
date	2011.10.24.03.33.08;	author stas;	state Exp;
branches;
next	1.47;

1.47
date	2011.04.12.08.02.33;	author pav;	state Exp;
branches;
next	1.46;

1.46
date	2010.12.08.19.58.48;	author ade;	state Exp;
branches;
next	1.45;

1.45
date	2009.12.18.04.11.03;	author stas;	state Exp;
branches;
next	1.44;

1.44
date	2009.08.02.19.34.26;	author mezz;	state Exp;
branches;
next	1.43;

1.43
date	2008.04.19.17.51.25;	author miwi;	state Exp;
branches;
next	1.42;

1.42
date	2007.11.18.22.37.50;	author ade;	state Exp;
branches;
next	1.41;

1.41
date	2007.05.19.20.13.31;	author flz;	state Exp;
branches;
next	1.40;

1.40
date	2007.03.24.14.03.03;	author pav;	state Exp;
branches;
next	1.39;

1.39
date	2007.02.05.23.05.07;	author stas;	state Exp;
branches;
next	1.38;

1.38
date	2006.11.01.22.21.30;	author stas;	state Exp;
branches;
next	1.37;

1.37
date	2006.08.04.14.12.41;	author rafan;	state Exp;
branches;
next	1.36;

1.36
date	2006.07.23.23.38.15;	author linimon;	state Exp;
branches;
next	1.35;

1.35
date	2006.05.09.20.52.11;	author edwin;	state Exp;
branches;
next	1.34;

1.34
date	2005.12.05.00.53.17;	author edwin;	state Exp;
branches;
next	1.33;

1.33
date	2005.12.04.20.33.25;	author edwin;	state Exp;
branches;
next	1.32;

1.32
date	2004.04.10.17.26.41;	author trevor;	state Exp;
branches;
next	1.31;

1.31
date	2004.02.04.05.21.31;	author marcus;	state Exp;
branches;
next	1.30;

1.30
date	2003.10.29.02.55.49;	author linimon;	state Exp;
branches;
next	1.29;

1.29
date	2003.10.29.02.35.53;	author linimon;	state Exp;
branches;
next	1.28;

1.28
date	2003.02.20.18.37.55;	author knu;	state Exp;
branches;
next	1.27;

1.27
date	2002.11.10.16.46.48;	author lioux;	state Exp;
branches;
next	1.26;

1.26
date	2002.11.06.22.45.46;	author adamw;	state Exp;
branches;
next	1.25;

1.25
date	2002.10.22.06.12.05;	author ijliao;	state Exp;
branches;
next	1.24;

1.24
date	2002.06.21.16.20.22;	author ijliao;	state Exp;
branches;
next	1.23;

1.23
date	2002.05.08.20.51.40;	author obrien;	state Exp;
branches;
next	1.22;

1.22
date	2000.04.12.06.17.44;	author obrien;	state Exp;
branches;
next	1.21;

1.21
date	2000.03.22.00.26.29;	author obrien;	state Exp;
branches;
next	1.20;

1.20
date	2000.03.20.02.36.00;	author obrien;	state Exp;
branches;
next	1.19;

1.19
date	2000.02.13.20.25.00;	author obrien;	state Exp;
branches;
next	1.18;

1.18
date	2000.02.13.19.55.01;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	2000.02.13.03.22.57;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	99.08.25.06.34.13;	author obrien;	state Exp;
branches;
next	1.15;

1.15
date	98.10.13.23.13.40;	author jseger;	state Exp;
branches;
next	1.14;

1.14
date	96.11.25.03.49.08;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	96.11.17.06.12.29;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	96.11.12.02.18.03;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	96.03.07.13.00.53;	author asami;	state Exp;
branches;
next	1.10;

1.10
date	95.11.22.13.12.26;	author asami;	state Exp;
branches;
next	1.9;

1.9
date	95.04.24.11.28.53;	author asami;	state Exp;
branches;
next	1.8;

1.8
date	95.04.16.21.28.20;	author asami;	state Exp;
branches;
next	1.7;

1.7
date	95.04.15.05.44.29;	author asami;	state Exp;
branches;
next	1.6;

1.6
date	95.04.01.12.46.40;	author jkh;	state Exp;
branches;
next	1.5;

1.5
date	95.03.05.08.20.43;	author hsu;	state Exp;
branches;
next	1.4;

1.4
date	95.02.25.19.42.36;	author hsu;	state Exp;
branches;
next	1.3;

1.3
date	94.12.31.02.21.20;	author hsu;	state Exp;
branches;
next	1.2;

1.2
date	94.11.22.10.05.33;	author hsu;	state Exp;
branches;
next	1.1;

1.1
date	94.11.01.06.08.01;	author hsu;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.11.01.06.08.02;	author hsu;	state Exp;
branches;
next	;


desc
@@


1.50
log
@Switch exporter over
@
text
@# ex:ts=8
# Ports collection makefile for:  Sather
# Date created:			  Mon Oct 31 22:04:12 PST 1994
# Whom:				  hsu
#
# $FreeBSD: head/lang/Sather/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	sather
PORTVERSION=	1.2.2
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Sather compiler

#
# NOTE: currently build fails with threaded Tk
#
LIB_DEPENDS=	tk84.1:${PORTSDIR}/x11-toolkits/tk84 \
		gc-redirect.1:${PORTSDIR}/devel/boehm-gc-redirect
BUILD_DEPENDS=	${LOCALBASE}/bin/libtool:${PORTSDIR}/devel/libtool

USE_BZIP2=	yes
USE_GMAKE=	yes
ALL_TARGET=	full optional
MAN1=		sabrowse.1 sacomp.1

INFO=		sather sather-mode sather-tutorial

SAT_CFLAGS=	${CFLAGS} -I. \
		-I../System/Common \
		-I${LOCALBASE}/include \
		-I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4
SAT_LIBS=	-L${LOCALBASE}/lib -lgc-redirect -lm
SAT_LIBDIR=	${PREFIX}/lib/sather

OPTIONS_DEFINE=	EMACS DOCS
EMACS_DESC=	Install Emacs syntax files

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900000
BROKEN=		segfaults during build on 9.X
.endif

post-extract:
#
#	Precompiled binaries are for Linux only
#
	${RM} -f ${WRKSRC}/Boot/sacomp.code/*.o

post-patch:
	@@${REINPLACE_CMD} -E \
		-e "s,/usr/lib/sather,${SAT_LIBDIR}," \
		-e "s,/usr/X11R6,${LOCALBASE}," \
		-e "s,/usr/X11R6,${LOCALBASE}," \
		${WRKSRC}/Boot/sacomp.code/strings.c \
		${WRKSRC}/Doc/Installation.html \
		${WRKSRC}/Doc/man/man1/sabrowse.1 \
		${WRKSRC}/Doc/man/man1/sacomp.1 \
		${WRKSRC}/Library/System/unix.sa \
		${WRKSRC}/System/Platforms/X/Platform.module \
		${WRKSRC}/System/Platforms/tcltk/startup.tcl \
		${WRKSRC}/debian/bin-wrapper

	@@${REINPLACE_CMD} -E \
		-e "s,(TK_LIB_NAME[[:space:]]*=[[:space:]]*).*,\1tk84," \
		-e "s,(TCL_LIB_NAME[[:space:]]*=[[:space:]]*).*,\1tcl84," \
		${WRKSRC}/System/Platforms/tcltk/Make.target.inc

	@@${REINPLACE_CMD} -E \
		-e 's,(VERSION:[[:space:]]*).*,\1"${PORTVERSION}";,' \
		-e 's,(C_COMPILER:[[:space:]]*).*,\1"${CC}";,' \
		-e 's,(CC_OPTIONS:[[:space:]]*).*,\1"${SAT_CFLAGS}";,' \
		-e 's,(GC_LINK:[[:space:]]*).*,\1"${SAT_LIBS}";,' \
		-e 's,(CC_OPTIMIZE_FLAG:[[:space:]]*).*,\1""\,"${CFLAGS}";,' \
		-e 's,(MAKE_COMMAND:[[:space:]]*).*,\1"${GMAKE}";,' \
		-e 's,(FORTRAN_APPEND_UNDERSCORE:[[:space:]]*).*,\1"true";,' \
		-e 's,CONFIG_PLATFORMS,unix,' \
		-e 's,CONFIG_DEFAULT_PLATFORM,freebsd,' \
		${WRKSRC}/System/Common/CONFIG.proto \
		${WRKSRC}/System/Platforms/freebsd/CONFIG

	@@${REINPLACE_CMD} -E \
		-e "s,(DEFAULT_PLATFORM[[:space:]]*=[[:space:]]*).*,\1freebsd,"\
		-e "s,(CPP[[:space:]]*=[[:space:]]*).*,\1/usr/bin/cpp -P," \
		-e "s,(CC[[:space:]]*=[[:space:]]*).*,\1${CC}," \
		-e "s,(CFLAGS[[:space:]]*=[[:space:]]*).*,\1${SAT_CFLAGS}," \
		-e "s,(LIBS[[:space:]]*=[[:space:]]*).*,\1${SAT_LIBS}," \
		${WRKSRC}/Makefile ${WRKSRC}/Boot/sacomp.code/Makefile

	@@${REINPLACE_CMD} -E \
		-e 's,/usr/bin/tclsh,${LOCALBASE}/bin/tclsh8.4,' \
			${WRKSRC}/Browser/Web/*
#
# Don't generate cpp comments - Sather won't like it
#
	@@${REINPLACE_CMD} -E \
		-e 's,#(CPP[[:space:]]*=[[:space:]]*).*,\1/usr/bin/cpp -P,' \
		${WRKSRC}/System/Common/Makefile
#
# We have this function in stdlib
#
	@@${ECHO_CMD} \"abort2\" >> ${WRKSRC}/System/FORBID

post-build:
.for file in sather-tutorial.texinfo sather-mode.texinfo sather.texinfo
	cd ${WRKSRC}/Emacs && makeinfo --no-split ${file}
.endfor

do-install:
	@@${MKDIR} ${SAT_LIBDIR}/Bin
.for file in sabrowse sacomp
	${INSTALL_PROGRAM} ${WRKSRC}/Bin/${file} ${SAT_LIBDIR}/Bin
.endfor
.for file in PP gen_html saprep
	${INSTALL_SCRIPT} ${WRKSRC}/Bin/${file} ${SAT_LIBDIR}/Bin
.endfor
	${INSTALL_SCRIPT} ${WRKSRC}/debian/bin-wrapper ${SAT_LIBDIR}/Bin
.for link in sabrowse sacomp
	${LN} -sf ${SAT_LIBDIR}/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 ${SAT_LIBDIR} --unlink -xf -
.endfor

#
# Permissions safety
#
	@@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SAT_LIBDIR}
	@@${FIND} ${SAT_LIBDIR}/ -type f ! -perm +111 -exec ${CHMOD} \
		${SHAREMODE} {} \;
	@@${FIND} ${SAT_LIBDIR}/ -type f -perm +111 -exec ${CHMOD} \
		${BINMODE} {} \;
	@@${FIND} ${SAT_LIBDIR}/ -type d -exec ${CHMOD} 755 {} \;

#
# Generate PLIST
#
	@@${FIND} -d ${SAT_LIBDIR}/ -type f | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@@${FIND} -d ${SAT_LIBDIR}/ -type d | \
		${SED} 's,^${PREFIX}/,@@dirrm ,' >> ${TMPPLIST}
.for FILE in sabrowse sacomp
	@@${ECHO_CMD} \
		"@@exec ${LN} -sf %D/lib/sather/Bin/bin-wrapper %D/bin/${FILE}"\
		>> ${TMPPLIST}
	@@${ECHO_CMD} "bin/${FILE}" >> ${TMPPLIST}
.endfor

.for file in sabrowse.1 sacomp.1
	${INSTALL_MAN} ${WRKSRC}/Doc/man/man1/${file} ${MANPREFIX}/man/man1
.endfor
.for file in ${INFO}
	${INSTALL_DATA} ${WRKSRC}/Emacs/${file}.info ${PREFIX}/info
.endfor
.if ${PORT_OPTIONS:MEMACS}
. for file in hl319.el sather-lib.el sather-module.el sather.el
	${INSTALL_DATA} ${WRKSRC}/Emacs/${file} ${PREFIX}/share/emacs/site-lisp
	@@${ECHO_CMD} "share/emacs/site-lisp/${file}" >> ${TMPPLIST}
. endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@(cd ${WRKSRC}/Doc && ${COPYTREE_SHARE} "*" ${DOCSDIR} \
		"! -regex .*man.* ! -regex .*GPL ! -regex .*\.bak")
.endif

.include <bsd.port.post.mk>
@


1.49
log
@Convert to new options framework
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.48
log
@- Return my ports back to the pool.  I was unable to make any fixes to
  my ports in the past 3 weeks while ports were broken on any 10.x
  machines, which means I'm unable to maintain them.  So let people know
  that there's no available support for them until things are back to
  normal (which also means that anyone with spare time will be able
  to fix them without getting approval).
@
text
@d40 2
a41 1
OPTIONS=	EMACS "Install Emacs syntax files" off
d172 1
a172 1
.if defined(WITH_EMACS)
d178 1
a178 1
.if !defined(NOPORTDOCS)
@


1.47
log
@- Mark BROKEN on 9.X: segfaults during build

Reported by:	pointyhat
@
text
@d16 1
a16 1
MAINTAINER=	stas@@FreeBSD.org
@


1.46
log
@Clean up "current" versions of autotools components to further reduce
tree-churn on updates.
@
text
@d48 4
@


1.45
log
@- Use libraries from boehm-gc-redirect instead of building own version.
  This fixes build failure after the boehm-gc update.

Reported by:	pav
@
text
@d24 1
a24 1
BUILD_DEPENDS=	${LOCALBASE}/bin/libtool:${PORTSDIR}/devel/libtool22
@


1.44
log
@-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
@
text
@d11 1
a11 1
PORTREVISION=	1
d22 2
a23 1
LIB_DEPENDS=	tk84.1:${PORTSDIR}/x11-toolkits/tk84
d33 1
a33 1
SAT_CFLAGS=	${CFLAGS} -I. -I${BC_DIR}/include \
d37 1
a37 1
SAT_LIBS=	-L${BC_DIR}/.libs -L${LOCALBASE}/lib -lgc -lm
a47 6
.if ${ARCH} == "ia64"
BROKEN=		boehm-gc is broken on ia64
.endif

BC_DIR!=	cd ${PORTSDIR}/devel/boehm-gc && ${MAKE} -V WRKSRC

a107 11
pre-build:
#
# We need to clean since REDIRECT is required
#
	@@(cd ${PORTSDIR}/devel/boehm-gc && \
		${MAKE} BATCH=yes WITH_REDIRECT=yes clean all)
#
# We're wanting static linking
#
	@@${RM} -f ${BC_DIR}/.libs/*.so*

@


1.43
log
@- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
@
text
@d23 1
a23 1
BUILD_DEPENDS=	${LOCALBASE}/bin/libtool:${PORTSDIR}/devel/libtool15
@


1.42
log
@Replace remaining hardcoded instances of /usr/bin/makeinfo with makeinfo
as part of some cleanup work.

Approved by:	portmgr (linimon)
@
text
@d34 1
a34 1
		-I${LOCALBASE}/include -I${X11BASE}/include \
d62 2
a63 2
		-e "s,/usr/X11R6,${X11BASE}," \
		-e "s,/usr/X11R6,${X11BASE}," \
@


1.41
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d126 1
a126 1
	cd ${WRKSRC}/Emacs && /usr/bin/makeinfo --no-split ${file}
@


1.40
log
@- COPYTREE_* are now part of bsd.port.mk

PR:		ports/100996
Submitted by:	stass
@
text
@d11 1
a11 1
PORTREVISION=	0
@


1.39
log
@- Depend on libtool directly. This port builds a local copy of boehm-gc
  which depend on it. Letting the boehm-gc to install it will effectively
  touch the filesystem in pre-build stage.

Reported by:	kris
@
text
@a52 7
# XXX: exists untill it will be committed to bsd.port.mk
COPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
		2>&1) && \
		${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
		${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
		${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --

@


1.38
log
@- Mark broken on ia64 because of boehm-gc doesn't support it
- Change my email

Reported by:	kris via pointyhat
@
text
@d23 1
@


1.37
log
@- Update to 1.2.2
- Unbrake on all platforms
- Use tk8.4 instead of tk8.3
- Fix bug with abort2 function
- Fix installed files's permissions
- Use PORTDOCS macro

Some notes from maintainer:
1) Due to some GC/Sather bugs we need specific options to compile GC.
   To achive this i compile GC separately and link it statically. I've
   not include it in dependencies to not bother user with GC's OPTIONS.
2) Port can be build currently only against non-threaded Tk/Tcl library.
   Don't know currently how to investigate this since there are no way to
   find if Tk build with or without threads. Furthermore, tk and tk-threads
   are mutually exclusive. Linking agains static Tk is bogus...

PR:		ports/100964
Submitted by:	Stanislav Sedov <ssedov at mbsd.msk.ru> (maintainer)
@
text
@d16 1
a16 1
MAINTAINER=	ssedov@@mbsd.msk.ru
d46 4
@


1.36
log
@Factor OSVERSION out of BROKEN/IGNORE strings to make them more consistent
across different OSVERSION scans.
@
text
@d10 2
a11 2
PORTVERSION=	1.2.1
PORTREVISION=	2
d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
d19 4
a22 2
LIB_DEPENDS=	gc.1:${PORTSDIR}/devel/boehm-gc \
		tk83.1:${PORTSDIR}/x11-toolkits/tk83
d24 1
d31 13
d46 8
a53 3
.if ${OSVERSION} >= 501000
BROKEN=		Does not compile on FreeBSD > 5.0
.endif
d56 4
a59 5
	@@${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
d62 63
a124 18
.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
d132 1
a132 1
	@@${MKDIR} ${PREFIX}/lib/sather/Bin
d134 1
a134 1
	${INSTALL_PROGRAM} ${WRKSRC}/Bin/${file} ${PREFIX}/lib/sather/Bin
d137 1
a137 1
	${INSTALL_SCRIPT} ${WRKSRC}/Bin/${file} ${PREFIX}/lib/sather/Bin
d139 1
a139 1
	${INSTALL_SCRIPT} ${WRKSRC}/debian/bin-wrapper ${PREFIX}/lib/sather/Bin
d141 1
a141 1
	${LN} -sf ${PREFIX}/lib/sather/Bin/bin-wrapper ${PREFIX}/bin/${link}
d152 25
a176 2
		${TAR} -C ${PREFIX}/lib/sather --unlink -xf -
	@@${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/sather/${obj}
d178 1
d185 2
a186 1
.for file in hl319.el sather-lib.el sather-module.el sather.el
d188 3
a190 1
.endfor
d193 2
a194 3
	${TAR} -C ${WRKSRC}/Doc --exclude '*GPL' --exclude man -cf - . | \
		${TAR} -C ${DOCSDIR} --unlink -xf -
	@@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@


1.35
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d31 1
a31 1
BROKEN=		"Does not compile on FreeBSD ${OSVERSION}"
@


1.34
log
@Remove install-info from Makefile, it's automatically done when INFO is defined
@
text
@a21 1
USE_REINPLACE=	yes
@


1.33
log
@Use INFO macro
@
text
@d94 2
a95 3
.for file in sather-mode.info sather-tutorial.info sather.info
	${INSTALL_DATA} ${WRKSRC}/Emacs/${file} ${PREFIX}/info
	@@install-info ${PREFIX}/info/${file} ${PREFIX}/info/dir
@


1.32
log
@Tidy up whitespace.
@
text
@d27 2
@


1.31
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d61 1
a61 1
.for file in sather-tutorial.texinfo sather-mode.texinfo sather.texinfo 
@


1.30
log
@Move the inclusion of bsd.port.pre.mk earlier, where it apparently
should be.
@
text
@d11 1
a11 1
PORTREVISION=	1
@


1.29
log
@Mark broken on 5.x per the usual gcc3.3 reasons.
@
text
@a18 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=		"Does not compile on FreeBSD ${OSVERSION}"
.endif

d26 6
@


1.28
log
@De-pkg-comment.
@
text
@d19 6
d106 1
a106 1
.include <bsd.port.mk>
@


1.27
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@d17 1
@


1.26
log
@Use PORTCOMMENT in the Makefile, and whack the pkg-comment.

Approved by:	pat
@
text
@a17 2
PORTCOMMENT=	Sather compiler

@


1.25
log
@- Fix build
- Add several libraries, utilities and documents

PR:		44349
Submitted by:	Ports Fury
@
text
@d18 2
@


1.24
log
@Replace ${PERL} with ${REINPLACE_CMD}

PR:		39605
Submitted by:	Oliver Braun <obraun@@informatik.unibw-muenchen.de>
@
text
@d11 1
d14 1
a14 1
MASTER_SITE_SUBDIR=	sather
d18 2
a19 1
BUILD_DEPENDS=	${LOCALBASE}/lib/libgc.a:${PORTSDIR}/devel/boehm-gc
d23 2
a24 2
ALL_TARGET=	full
MAN1=		sacomp.1
d26 31
a56 7
pre-configure:
	@@${REINPLACE_CMD} \
		-e "s:%%CC%%:${CC}:g			;" \
	        -e "s:%%CFLAGS%%:${CFLAGS}:g		;" \
	        -e "s:%%LOCALBASE%%:${LOCALBASE}:g	;" \
	        -e "s:%%GMAKE%%:${GMAKE}:g		;" \
		${WRKSRC}/System/Common/CONFIG.proto
d59 33
a91 4
	${INSTALL_PROGRAM} ${WRKSRC}/Bin/sacomp ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/Doc/man/man1/sacomp.1 ${PREFIX}/man/man1
	@@${MKDIR} ${PREFIX}/share/doc/sather
	${INSTALL_DATA} ${WRKSRC}/Doc/License ${PREFIX}/share/doc/sather
d93 4
a96 4
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sather
.for file in Bugs Changes Contributing FAQ programmer-manual.ps
	${INSTALL_DATA} ${WRKSRC}/Doc/${file} ${PREFIX}/share/doc/sather
.endfor
@


1.23
log
@To ports@@freebsd.org.
@
text
@d19 1
d25 1
a25 1
	@@${PERL} -pi.in \
@


1.22
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/Sather/Makefile,v 1.21 2000/03/22 00:26:29 obrien Exp $
d15 1
a15 1
MAINTAINER=	obrien@@FreeBSD.org
@


1.21
log
@Restore useless version required comments.
@
text
@a2 1
# Version required: 0.0
d6 1
a6 1
# $FreeBSD: ports/lang/Sather/Makefile,v 1.20 2000/03/20 02:36:00 obrien Exp $
d9 2
a10 1
DISTNAME=	sather-1.2.1
@


1.20
log
@Remove the "version required" line.
@
text
@d3 1
d7 1
a7 1
# $FreeBSD: ports/lang/Sather/Makefile,v 1.19 2000/02/13 20:25:00 obrien Exp $
@


1.19
log
@Fix my perl recipie.
@
text
@a2 1
# Version required:		  1.2.1
d6 1
a6 1
# $FreeBSD: ports/lang/Sather/Makefile,v 1.18 2000/02/13 19:55:01 obrien Exp $
@


1.18
log
@Upgrade to version 1.2.1

PR:		16675
Submitted by:	KATO Tsuguru <tkato@@prontomail.ne.jp>
@
text
@d7 1
a7 1
# $FreeBSD: ports/lang/Sather/Makefile,v 1.17 2000/02/13 03:22:57 obrien Exp $
d25 4
a28 4
		-e 's:%%CC%%:${CC}:g' \
	        's:%%CFLAGS%%:${CFLAGS}:g' \
	        's:%%LOCALBASE%%:${LOCALBASE}:g' \
	        's:%%GMAKE%%:${GMAKE}:g' \
@


1.17
log
@Style nits in the ports I maintain.
@
text
@d2 4
a5 4
# New ports collection makefile for:    Sather
# Version required:     1.0.5
# Date created:         Mon Oct 31 22:04:12 PST 1994
# Whom:                 hsu
d7 1
a7 1
# $FreeBSD: ports/lang/Sather/Makefile,v 1.16 1999/08/25 06:34:13 obrien Exp $
d10 1
a10 2
DISTNAME=       Sather-1.0.5
PKGNAME=        sather-1.0.5
d12 2
a13 7
MASTER_SITES=   ftp://ftp.icsi.berkeley.edu/pub/sather/  \
		ftp://ftp.sterling.com/programming/languages/sather/  \
		ftp://ftp.uni-muenster.de/pub/languages/sather/  \
		ftp://ftp.nis.co.jp/pub/lang/sather/  \
		ftp://ftp.th-darmstadt.de/pub/programming/languages/sather/  \
		ftp://ftp.sra.co.jp/pub/lang/sather/  \
		ftp://ftp.infomagic.com/pub/mirrors/.mirror14/languages/sather/
d17 1
a17 1
BROKEN_ELF=	gcc: ../../System/GC/gc.a: No such file or directory
d19 11
a29 3
WRKSRC=		${WRKDIR}/Sather
ALL_TARGET=	testall
MAN1=		cs.1
d32 3
a34 3
	${INSTALL_PROGRAM} ${WRKSRC}/Compiler/cs ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/Doc/man/man1/cs.1 ${PREFIX}/man/man1
	${MKDIR} ${PREFIX}/share/doc/sather
d37 2
a38 1
.for file in Bugs Changes Contributing FAQ README manual.ps
@


1.16
log
@Change Id->FreeBSD.
@
text
@d1 1
d7 1
a7 1
# $FreeBSD$
@


1.15
log
@Mark BROKEN for ELF:
gcc -O2 -o ../cs globals.o code0.o code1.o code2.o code3.o code4.o code5.o code6.o code7.o code8.o code9.o code10.o  ../../System/base.a ../../System/GC/gc.a -lm
gcc: ../../System/GC/gc.a: No such file or directory
*** Error code 1
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.14 1996/11/25 03:49:08 obrien Exp $
@


1.14
log
@Added some extra MASTER_SITES.  Note, only one of them still has version 1.05
(which is what we try to fetch).  The others have 1.08 and 1.1.
I'll update this port in two-three weeks.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.13 1996/11/17 06:12:29 obrien Exp $
d21 2
@


1.13
log
@Converted to MAN[1-9NL]
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.12 1996/11/12 02:18:03 obrien Exp $
d12 7
a18 1
MASTER_SITES=   ftp://ftp.icsi.berkeley.edu/pub/sather/
d20 1
a20 1
MAINTAINER=	ports@@FreeBSD.org
@


1.12
log
@CATAGORIES+= -> CATAGORIES=
Reordered vars where needed.  Added MAINTAINERS where needed, many
mkdir --> ${MKDIR}, install -> ${INSTALL_*}, etc.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.11 1996/03/07 13:00:53 asami Exp $
d18 1
a22 1
	-gzip -9nf ${PREFIX}/man/man1/cs.1
@


1.11
log
@Install additional documents conditional to NOPORTDOCS.  Note that
"License" is installed unconditionally.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.10 1995/11/22 13:12:26 asami Exp $
d11 1
a11 1
CATEGORIES+=	lang
d14 2
d20 2
a21 2
	install -c -m 555 ${WRKSRC}/Compiler/cs ${PREFIX}/bin
	install -c -m 444 ${WRKSRC}/Doc/man/man1/cs.1 ${PREFIX}/man/man1
d23 2
a24 2
	mkdir -p ${PREFIX}/share/doc/sather
	install -c -m 444 ${WRKSRC}/Doc/License ${PREFIX}/share/doc/sather
d27 1
a27 1
	install -c -m 444 ${WRKSRC}/Doc/${file} ${PREFIX}/share/doc/sather
@


1.10
log
@Change category nome from "languages" to "lang".  Also remove "programming"
which appeared in some of them, everything here is a programming language! :)
@
text
@d2 1
a2 1
# Version required:     1.0.1
d6 1
a6 1
# $Id: Makefile,v 1.9 1995/04/24 11:28:53 asami Exp $
d10 1
d19 1
a19 1
	install -c -m 555 ${WRKSRC}/Doc/man/man1/cs.1 ${PREFIX}/man/man1
d21 7
@


1.9
log
@Update lang Makefiles, compressing some man pages and stripping some
executables along the way.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.8 1995/04/16 21:28:20 asami Exp $
d10 1
a10 1
CATEGORIES+=	languages
@


1.8
log
@Oops, why did I miss this in the previous commit?  Anyway, install
depends on build.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.7 1995/04/15 05:44:29 asami Exp $
d16 1
a16 3
install: build
	@@if [ ! -e ${PREFIX}/bin ]; then mkdir -p ${PREFIX}/bin; fi
	@@if [ ! -e ${PREFIX}/man/man1 ]; then mkdir -p ${PREFIX}/man/man1; fi
d19 1
a19 1
	-gzip -9 -f ${PREFIX}/man/man1/cs.1
@


1.7
log
@Update of lang Makefiles....
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.6 1995/04/01 12:46:40 jkh Exp $
d16 1
a16 1
install:
@


1.6
log
@Add CATEGORIES lines to a whole bunch of port Makefiles.  Some ports are in
multiple catagories - I'll expect the various MAINTAINERS to make further
adjustments (and add any KEYWORDS lines) themselves.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.5 1995/03/05 08:20:43 hsu Exp $
d10 1
d12 1
a12 1
CATEGORIES+=	languages
@


1.5
log
@Give gzip the correct path of installed man page.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.4 1995/02/25 19:42:36 hsu Exp $
d11 1
@


1.4
log
@Upgrade to 1.0.5.
Compress installed man page.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.3 1994/12/31 02:21:20 hsu Exp $
d19 1
a19 1
	gzip -9 -f ${PREFIX}/man/man1
@


1.3
log
@Bump version number to 1.0.4.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.2 1994/11/22 10:05:33 hsu Exp $
d9 1
a9 1
DISTNAME=       Sather-1.0.4
a10 1
DISTFILES=      Sather-1.0.4.tar.Z
d19 1
@


1.2
log
@Update DISTNAME to Sather-1.0.2.
Make use of ALL_TARGET instead of adding the all target to the
  underlying Makefile.
Obtained from:
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.1.1.1 1994/11/01 06:08:02 hsu Exp $
d9 1
a9 1
DISTNAME=       Sather-1.0.2
d11 1
a11 1
DISTFILES=      Sather-1.0.2.tar.Z
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Id$
d9 1
a9 1
DISTNAME=       Sather-1.0.1
d11 1
a11 1
DISTFILES=      Sather-1.0.1.tar.Z
d13 1
@


1.1.1.1
log
@The Sather 1.0 language.
@
text
@@
