openbsd-ports/lang/obc/Makefile
jasper 6b5442d0e3 import obc-2.9.1
Oberon-2 is clean and simple programming language.
This is portable compiler that translates Oberon-2 into bytecode, which
can be either interpreted or dynamically translated into machine code.
Dynamic translation uses a portable interface modelled on the one in GNU
Lightning, but is so far implemented only on x86 machines.  The
implementation includes a full garbage collector, and comes with
profiling tools and a simple GUI debugger.
[...]

    from Alexander Shiryaev (MAINTAINER) with tweaks by me
	
	    ok landry@
2011-01-15 13:07:50 +00:00

65 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/01/15 13:07:50 jasper Exp $
# Fatal error: assertion sizeof(page_index) == GC_PAGESIZE failed on line 1090 of file gc.c
ONLY_FOR_ARCHS= i386
SHARED_ONLY = Yes
COMMENT = Oxford Oberon-2 compiler
DISTNAME = obc-2.9.1
CATEGORIES = lang
HOMEPAGE = http://spivey.oriel.ox.ac.uk/corner/Oxford_Oberon-2_compiler
MAINTAINER = Alexander Shiryaev <shiryaev.a.v@gmail.com>
# BSD-3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://spivey.oriel.ox.ac.uk/wiki/resources/sw/
MODULES = devel/gettext \
lang/ocaml \
lang/tcl
WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 c cairo
WANTLIB += curses drm expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += gtk-x11-2.0 gtksourceview-2.0 m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pixman-1 png pthread pthread-stubs xcb
WANTLIB += xcb-render xcb-shm xml2 z
LIB_DEPENDS = x11/gtksourceview
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = STEM->=2.14.2p1:x11/lablgtk2
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-debug \
--with-x
CONFIGURE_ENV = CFLAGS="${CFLAGS} -m32 -I${X11BASE}/include" \
TCLSH="${MODTCL_BIN}" \
DLFLAGS="-Wl,-E"
FAKE_FLAGS = prefix="${WRKINST}${PREFIX}" \
mandir="${WRKINST}${PREFIX}/man"
MAKE_ENV += STRIP="/usr/bin/true"
pre-configure:
perl -pi -e s,'tclsh',${MODTCL_BIN},g ${WRKSRC}/camldep
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/makeprims.tcl \
${PREFIX}/lib/obc/makeprims.tcl
do-regress:
cd ${WRKSRC}/test && ${MAKE_PROGRAM} && ./regress && ./bigtest
.include <bsd.port.mk>