Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.2 2016/09/13 11:44:07 naddy Exp $
  2. COMMENT = Tcl/Tk based digital circuit editor and simulator
  3. DISTNAME = tkgate-2.0-rc3
  4. PKGNAME = tkgate-2.0rc3
  5. CATEGORIES = cad x11
  6. HOMEPAGE = http://www.tkgate.org/
  7. MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
  8. MASTER_SITES = https://bitbucket.org/starling13/tkgate/downloads/
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += ICE SM X11 c iconv m pthread ${MODTK_WANTLIB}
  12. MODULES = x11/tk
  13. LIB_DEPENDS = converters/libiconv
  14. BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS}
  15. RUN_DEPENDS = ${MODTK_RUN_DEPENDS} \
  16. devel/desktop-file-utils
  17. SEPARATE_BUILD = Yes
  18. CONFIGURE_STYLE = gnu
  19. CONFIGURE_ENV += TKGATE_LIBDIRS="${MODTCL_LIBDIR} ${MODTK_LIBDIR} \
  20. ${LOCALBASE}/lib ${X11BASE}/lib" \
  21. TKGATE_INCDIRS="${MODTCL_INCDIR} ${MODTK_INCDIR} \
  22. ${LOCALBASE}/include ${X11BASE}/include" \
  23. TKGATE_TCLTK_VERSIONS=${MODTK_VERSION}
  24. post-extract:
  25. rm ${WRKSRC}/src/gmac/luthor.c
  26. rm ${WRKSRC}/src/verga/luthor.c
  27. rm ${WRKSRC}/src/verga/vgrammar.c
  28. rm ${WRKSRC}/src/verga/vgrammar.h
  29. rm ${WRKSRC}/src/tkgate/luthor.c
  30. rm ${WRKSRC}/src/tkgate/vgrammar.c
  31. rm ${WRKSRC}/src/tkgate/vgrammar.h
  32. pre-configure:
  33. ${SUBST_CMD} ${WRKSRC}/scripts/parms.tcl ${WRKSRC}/src/tkgate/verilog_out.c
  34. ${MODTCL_WISH_ADJ} ${WRKSRC}/scripts/tree.tcl
  35. post-install:
  36. rm ${PREFIX}/share/tkgate/scripts/parms.tcl.*
  37. .include <bsd.port.mk>