Makefile 2.1 KB

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