Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # $OpenBSD: Makefile,v 1.31 2016/03/12 23:16:55 naddy Exp $
  2. COMMENT-main = programming language with generators, X11 and more
  3. COMMENT-main-no_x11 = programming language with generators
  4. VERSION = 9.5.1
  5. DISTNAME = icon-v951src
  6. CATEGORIES = lang
  7. MASTER_SITES = http://www.cs.arizona.edu/icon/ftp/packages/unix/
  8. DISTFILES = icon-v951src.tgz
  9. MULTI_PACKAGES = -main #-compiler
  10. PKGNAME-main = icon-interp-${VERSION}
  11. REVISION-main = 0
  12. # Public domain
  13. PERMIT_PACKAGE_CDROM = Yes
  14. HOMEPAGE = http://www.cs.arizona.edu/icon/
  15. MAINTAINER = Marc Espie <espie@openbsd.org>
  16. FLAVORS = no_x11
  17. FLAVOR ?=
  18. MAKE_ENV = ARCH="${MACHINE_ARCH}"
  19. ALL_TARGET = Icont
  20. LIBDIR = ${TRUEPREFIX}/lib/icon
  21. WANTLIB-main = c m pthread
  22. .if ${FLAVOR:Mno_x11}
  23. CONFIGURE_TARGET = Configure
  24. .else
  25. CONFIGURE_TARGET = X-Configure
  26. WANTLIB-main += X11 Xpm
  27. .endif
  28. do-configure:
  29. cd ${WRKSRC} && ${MAKE} ${CONFIGURE_TARGET} name=bsd
  30. echo "RLINK=-rdynamic" >>${WRKSRC}/Makedefs
  31. .if ${FLAVOR:Mno_x11}
  32. echo "XINCLUDE=" >>${WRKSRC}/Makedefs
  33. .endif
  34. post-build:
  35. cd ${WRKSRC}/ipl/cfuncs && ${MAKE} ICONT=${WRKBUILD}/bin/icont
  36. # We put a wrapper around icont for finding the library files when
  37. # they're installed
  38. # The icon manpage is available separately... I've included it along
  39. # with the package. Ludicrous to get through a ftp connexion for such
  40. # a small file...
  41. do-install:
  42. ${SUBST_PROGRAM} ${FILESDIR}/icont.template ${PREFIX}/bin/icont
  43. ${INSTALL_DATA_DIR} ${WRKINST}${LIBDIR}
  44. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/icont ${WRKINST}${LIBDIR}
  45. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/iconx ${PREFIX}/bin
  46. ${INSTALL_MAN} ${WRKSRC}/man/man1/icont.1 ${PREFIX}/man/man1/icont.1
  47. cd ${PREFIX}/man/man1 && ln -f icont.1 iconx.1
  48. ${INSTALL_DATA_DIR} ${PREFIX}/share/ipl/ucode
  49. ${INSTALL_DATA} ${WRKBUILD}/ipl/cfuncs/cfunc.u? ${PREFIX}/share/ipl/ucode
  50. ${INSTALL_DATA} ${WRKBUILD}/ipl/cfuncs/libcfunc.so ${PREFIX}/lib
  51. TEST_FLAGS = HOME=/
  52. TEST_TARGET = Test-icont
  53. TEST_DEPENDS = lang/icon/lib
  54. .include <bsd.port.mk>