Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # $OpenBSD: Makefile,v 1.18 2017/06/04 23:21:02 schwarze Exp $
  2. COMMENT = Tool Command Language
  3. P = 6
  4. DISTNAME = tcl8.6.${P}
  5. PKGNAME = tcl-8.6.${P}
  6. REVISION = 0
  7. SHARED_LIBS = tcl86 1.${P}
  8. CATEGORIES = lang lang/tcl
  9. HOMEPAGE = http://www.tcl.tk/
  10. MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
  11. # BSD
  12. PERMIT_PACKAGE_CDROM = Yes
  13. WANTLIB = c m pthread z
  14. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tcl/}
  15. DISTFILES = tcl-core8.6.${P}-src.tar.gz
  16. MAKE_FLAGS = TCL_LIBRARY='$$(prefix)/lib/tcl/tcl$$(VERSION)'
  17. FAKE_FLAGS = INSTALL_DATA_DIR="${INSTALL_DATA_DIR}" \
  18. INSTALL_LIBRARY="${INSTALL_DATA}" \
  19. INSTALL_DATA="${INSTALL_DATA}" \
  20. INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
  21. CONFIG_INSTALL_DIR='$$(SCRIPT_INSTALL_DIR)' \
  22. INSTALL_PACKAGE_TARGETS=''
  23. TEST_FLAGS = HOME=${TESTHOME} TESTFLAGS="${TESTFLAGS}"
  24. SEPARATE_BUILD = Yes
  25. CONFIGURE_STYLE = gnu old
  26. CONFIGURE_ARGS += --includedir="${PREFIX}/include/tcl8.6" \
  27. --mandir="${PREFIX}/lib/tcl/tcl8.6/man" \
  28. --sysconfdir="${SYSCONFDIR}" \
  29. --enable-man-symlinks \
  30. --disable-rpath \
  31. EXTRA_INSTALL_BINARIES='@echo "Installing libtcl86.a to $$(LIB_INSTALL_DIR)/" \
  32. && $$(INSTALL_DATA) libtcl86.a $$(LIB_INSTALL_DIR)/libtcl86.a \
  33. && (cd $$(LIB_INSTALL_DIR) ; $$(RANLIB) libtcl86.a)' \
  34. SHLIB_VERSION="${LIBtcl86_VERSION}"
  35. ALL_TARGET = binaries libtcl86.a
  36. WRKSRC = ${WRKDIST}/unix
  37. TEST_TARGET = test-tcl
  38. TESTHOME = ${WRKDIR}/testhome
  39. # Use TESTFLAGS to control the Tcl tests
  40. TESTFLAGS =
  41. # These tests will always fail due to assumptions that don't hold on OpenBSD.
  42. # Skip them until they're improved.
  43. # fCmd-9.4.b expects to be able to overwrite a read-only directory.
  44. # http-4.14 and many socket-14.* expect certain socket errors to occur
  45. # later rather than sooner. Bug 2911139.
  46. TESTFLAGS += -skip 'fCmd-9.4.b http-4.14 socket-14.*'
  47. pre-configure:
  48. @${SUBST_CMD} ${WRKDIST}/library/init.tcl
  49. pre-test:
  50. mkdir -p ${TESTHOME}
  51. post-install:
  52. ${INSTALL_DATA} ${WRKDIST}/license.terms ${PREFIX}/lib/tcl/tcl8.6/man
  53. ln -s libtcl86.a ${PREFIX}/lib/libtcl86_pic.a
  54. ln -s libtclstub86.a ${PREFIX}/lib/libtclstub86_pic.a
  55. .include <bsd.port.mk>