Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.11 2016/08/30 11:02:41 jasper Exp $
  2. # "i386 architecture of input file is incompatible with i386:x86-64 output"
  3. ONLY_FOR_ARCHS= i386
  4. USE_WXNEEDED = Yes
  5. COMMENT = Oxford Oberon-2 compiler
  6. DISTNAME = obc-2.9.7
  7. CATEGORIES = lang
  8. HOMEPAGE = http://spivey.oriel.ox.ac.uk/corner/Oxford_Oberon-2_compiler
  9. MAINTAINER = Alexander Shiryaev <shiryaev.a.v@gmail.com>
  10. # BSD-3
  11. PERMIT_PACKAGE_CDROM = Yes
  12. MASTER_SITES = http://spivey.oriel.ox.ac.uk/wiki2/files/download/
  13. MODULES = lang/ocaml \
  14. lang/tcl
  15. WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  16. WANTLIB += Xrandr Xrender atk-1.0 c cairo curses fontconfig freetype
  17. WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
  18. WANTLIB += gtk-x11-2.0 gtksourceview-2.0 intl m pango-1.0 pangocairo-1.0
  19. WANTLIB += pangoft2-1.0 pthread z
  20. LIB_DEPENDS = x11/gtksourceview
  21. BUILD_DEPENDS = ${RUN_DEPENDS} \
  22. ${MODTCL_BUILD_DEPENDS} \
  23. devel/ocaml-ocamlbuild
  24. RUN_DEPENDS = STEM->=2.14.2p1:x11/lablgtk2
  25. USE_GMAKE = Yes
  26. CONFIGURE_STYLE = gnu
  27. CONFIGURE_ARGS = --enable-debug \
  28. --with-x
  29. CONFIGURE_ENV = CFLAGS="${CFLAGS} -m32 -I${X11BASE}/include" \
  30. TCLSH="${MODTCL_BIN}" \
  31. DLFLAGS="-Wl,-E"
  32. FAKE_FLAGS = prefix="${WRKINST}${PREFIX}"
  33. MAKE_ENV += STRIP="/usr/bin/true"
  34. pre-configure:
  35. perl -pi -e s,'tclsh',${MODTCL_BIN},g ${WRKSRC}/camldep
  36. post-install:
  37. ${INSTALL_DATA} ${WRKSRC}/lib/makeprims.tcl \
  38. ${PREFIX}/lib/obc/makeprims.tcl
  39. do-test:
  40. cd ${WRKSRC}/test && ${MAKE_PROGRAM} && ./regress && ./bigtest
  41. .include <bsd.port.mk>