Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # $OpenBSD: Makefile,v 1.20 2017/04/23 20:52:33 stu Exp $
  2. COMMENT = Tcl implementation for the CLR
  3. V = 1.0
  4. P = 6234.51946
  5. DISTNAME = eagle-${V}
  6. PKGNAME = ${DISTNAME}-beta39
  7. CATEGORIES = lang lang/tcl
  8. HOMEPAGE = http://eagle.to/
  9. MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
  10. # BSD
  11. PERMIT_PACKAGE_CDROM = Yes
  12. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=eagle/} \
  13. https://eagle.to/releases/${V}.${P}/ \
  14. https://distfiles.nl/
  15. DISTFILES = EagleBinaryMonoOnUnix${V}.${P}.rar
  16. EXTRACT_CASES = *.rar) ${LOCALBASE}/bin/unrar x -idq ${DISTDIR}/$$archive;;
  17. MODULES = lang/mono
  18. MODMONO_DEPS = No
  19. BUILD_DEPENDS = archivers/unrar
  20. RUN_DEPENDS = ${MODMONO_RUN_DEPENDS}
  21. TEST_DEPENDS = ${MODMONO_RUN_DEPENDS}
  22. TEST_IS_INTERACTIVE = X11
  23. NO_BUILD = Yes
  24. WRKSRC = ${WRKDIR}/Eagle
  25. EAGLE_DIR = libdata/Eagle
  26. EAGLE_INS_DIR = ${PREFIX}/${EAGLE_DIR}
  27. EAGLE_BIN_DIR = ${EAGLE_INS_DIR}/bin
  28. EAGLE_LIB_DIR = ${EAGLE_INS_DIR}/lib/Eagle${V}
  29. EAGLE_BIN = ${PREFIX}/bin/eagle
  30. # Skip tests that are too timing-sensitive to succeed everywhere
  31. EAGLE_TEST_FLAGS = -notFile 'benchmark.eagle perf*.eagle'
  32. # Skip tests that may hang or fail due to pthread and/or Mono issues
  33. EAGLE_TEST_FLAGS += -skip 'interp-1.72 object-8.108 object-10.* socket-2.2 host-1.3'
  34. # "-namespaces 1" enables namespace tests
  35. # "set no(bigLists) 1" avoids oom problems
  36. # "set no(exec) 1; set no(compileCSharp) 1" to work around Mono bugs
  37. # "set no(tcl) 1" ignores any installed Tcl
  38. # "set test_log {}" disables logging test results to a file
  39. # "set test_(all_)path {...}" to work around Eagle test bugs
  40. do-test:
  41. ${SETENV} ${ALL_TEST_ENV} ${ALL_TEST_FLAGS} \
  42. ${LOCALBASE}/bin/mono ${WRKSRC}/bin/EagleShell.exe \
  43. -namespaces 1 \
  44. -preInitialize 'set no(bigLists) 1; set no(exec) 1; set no(compileCSharp) 1; set no(tcl) 1' \
  45. -preInitialize 'set test_log {}; set test_path {${WRKSRC}/Tests}; set test_all_path {${WRKSRC}/lib/Test1.0}' \
  46. -file ${WRKSRC}/Tests/all.eagle \
  47. ${EAGLE_TEST_FLAGS}
  48. do-install:
  49. ${INSTALL_DATA_DIR} ${EAGLE_BIN_DIR} ${EAGLE_LIB_DIR}
  50. .for SRC GLOB DEST in \
  51. bin * ${EAGLE_BIN_DIR} \
  52. lib/Eagle${V} * ${EAGLE_LIB_DIR} \
  53. . license.terms ${EAGLE_INS_DIR}
  54. ${INSTALL_DATA} ${WRKSRC}/${SRC}/${GLOB} ${DEST}
  55. .endfor
  56. echo '#! /bin/sh' > ${EAGLE_BIN}
  57. echo 'exec mono ${TRUEPREFIX}/${EAGLE_DIR}/bin/EagleShell.exe $${1+"$$@"}' >> ${EAGLE_BIN}
  58. chown ${BINOWN}:${BINGRP} ${EAGLE_BIN}
  59. chmod ${BINMODE} ${EAGLE_BIN}
  60. rm ${EAGLE_BIN_DIR}/EagleShell32.exe
  61. .include <bsd.port.mk>