head	1.7;
access;
symbols
	RELEASE_8_3_0:1.6
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3;
locks; strict;
comment	@# @;


1.7
date	2012.11.17.05.58.53;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2009.04.26.05.52.53;	author rafan;	state Exp;
branches;
next	1.5;

1.5
date	2009.02.23.14.46.31;	author mm;	state Exp;
branches;
next	1.4;

1.4
date	2008.04.19.17.51.31;	author miwi;	state Exp;
branches;
next	1.3;

1.3
date	2007.10.30.09.43.22;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2007.09.17.10.35.02;	author thierry;	state Exp;
branches;
next	1.1;

1.1
date	2007.09.03.21.48.38;	author thierry;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Switch exporter over
@
text
@# ex:ts=8
# New ports collection makefile for:	ocs
# Date created:				8 July 2007
# Whom:	      				Bjrn Knig <bkoenig@@cs.tu-berlin.de>
#
# $FreeBSD: head/lang/ocs/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	ocs
PORTVERSION=	2.3k
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://user.cs.tu-berlin.de/~opal/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	bkoenig@@cs.tu-berlin.de
COMMENT=	The OPAL Compilation System

BUILD_DEPENDS=	${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed

WRKSRC=		${WRKDIR}/${PORTNAME}
PLIST=		${WRKDIR}/pkg-plist

# The Makefile of the source package doesn't have a 'build' target.
# It rather compiles and installs the software in a single step using
# an 'install' target. For this reason the port compiles/installs the
# software to a temporary directory at the 'do-build' stage and
# installs it manually at the 'do-install' stage.
ALL_TARGET=	install

USE_BZIP2=	yes
USE_TCL=	yes
USE_TK=		yes
USE_GMAKE=	yes
USE_PERL5=	yes
HAS_CONFIGURE=	yes
USE_XORG=	xt
USE_LDCONFIG=	${OCS}/lib/freebsd${OSREL}-${ARCH}

NOT_FOR_ARCHS=	amd64 ia64 sparc64

CONFIGURE_ARGS=	--prefix="${WRKDIR}" \
		--disable-absolute-pathes \
		--disable-locallinks \
		--with-tcl-lib="-L${LOCALBASE}/lib -ltcl${TCL_VER:S/.//}" \
		--with-tcl-incl="-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} -I${LOCALBASE}/include" \
		--with-tk-lib="-ltk${TK_VER:S/.//}" \
		--with-tk-incl="-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} -I${LOCALBASE}/include"

MAN1=		ocs.1 oc.1 genmake.1

OCS_LINKS=	oasys ocs
OCS_INSTALL=	bin etc lib packages

# This is the place of the temporary installation.
OCS_TEMPDIR=	${WRKDIR}/${PORTNAME}-${PORTVERSION}

# This is the target directory of the port installation.
OCS=		${PREFIX}/${PORTNAME}

.for f in ${OCS_LINKS}
PLIST_FILES+=	bin/$f
.endfor

post-patch:
.for f in src/om/scripts/oasys src/om/scripts/ocs
		@@${REINPLACE_CMD} "s,OCS=.*$$,OCS=\"${OCS}\"," ${WRKSRC}/$f
.endfor
		@@${REINPLACE_CMD} "s,\$$LIBS -ldl,\$$LIBS," ${WRKSRC}/configure

# The Makefile don't like an existing (temporary) installation directory.
# This won't hurt as long as we do a clean installation. But if you
# 'make build' several times because of an interrupted compilation then it
# is necessary to remove the directory to keep the make script satisfied.
pre-build:
		@@${RM} -rf ${OCS_TEMPDIR}

pre-install:
		@@${RM} -f ${PLIST}
		@@${TOUCH} ${PLIST}
.for d in ${OCS_INSTALL}
		@@${FIND} ${OCS_TEMPDIR}/$d -not -type d | ${SED} "s,${OCS_TEMPDIR},${PORTNAME}," >> ${PLIST}
		@@${FIND} -d ${OCS_TEMPDIR}/$d -type d | ${SED} "s,${OCS_TEMPDIR},@@dirrmtry ${PORTNAME}," >> ${PLIST}
.endfor
		@@${ECHO} "@@dirrmtry ${PORTNAME}" >> ${PLIST}
.if !defined(WITHOUT_EXAMPLES)
		@@${FIND} ${OCS_TEMPDIR}/examples -not -type d | ${SED} "s,${OCS_TEMPDIR}/examples,${EXAMPLESDIR_REL}," >> ${PLIST}
		@@${FIND} -d ${OCS_TEMPDIR}/examples -type d | ${SED} "s,${OCS_TEMPDIR}/examples,@@dirrmtry ${EXAMPLESDIR_REL}," >> ${PLIST}
.endif

do-install:
		@@${MKDIR} ${OCS}
.for d in ${OCS_INSTALL}
		@@(cd ${OCS_TEMPDIR}; ${COPYTREE_BIN} $d ${OCS})
.endfor
.if !defined(WITHOUT_EXAMPLES)
		@@(cd ${OCS_TEMPDIR}/examples; ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.for f in ${OCS_LINKS}
		@@${LN} -s ${OCS}/bin/$f ${PREFIX}/bin/$f
.endfor
.for f in ${MAN1}
		@@${INSTALL_MAN} ${OCS_TEMPDIR}/man/man1/$f ${MAN1PREFIX}/man/man1/
.endfor

.include <bsd.port.mk>
@


1.6
log
@- Update MASTER_SITES and WWW

PR:		ports/133885
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.5
log
@- Change default Tcl/Tk version to 8.5
- Bump PORTVERSION of ports affected

Tested by:	pointyhat (pav)
@
text
@d13 1
a13 1
MASTER_SITES=	http://uebb.cs.tu-berlin.de/opal/
@


1.4
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
@d11 1
@


1.3
log
@- Fix build on FreeBSD 5.X

Submitted by:	bjoen koenig (Maintainer)
@
text
@d45 1
a45 1
		--with-tcl-incl="-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} -I${X11BASE}/include" \
d47 1
a47 1
		--with-tk-incl="-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} -I${X11BASE}/include"
@


1.2
log
@Mark as not for sparc64 for the moment.

Submitted by:	Bjoern Koenig <bkoenig (at) cs.tu-berlin.de> (maintainer)
@
text
@d43 1
@


1.1
log
@The OPAL compilation system (OCS) is a set of development tools for
creating software using the algebraic programming language OPAL. The
package includes a native compiler and an interpreter.

OPAL is mainly developed at the Technical University of Berlin since
1986 and it is used for research and evaluation of language concepts,
algorithms and programming techniques.

WWW: http://uebb.cs.tu-berlin.de/opal/

PR:		ports/114511
Submitted by:	Bjrn Knig <bkoenig at cs.tu-berlin.de>
@
text
@d39 1
a39 1
NOT_FOR_ARCHS=	amd64 ia64
@

