You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=mandoc
  3. PKG_VERSION:=1.14.6
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://mandoc.bsd.lv/snapshots/
  7. PKG_HASH:=8bf0d570f01e70a6e124884088870cbed7537f36328d512909eb10cd53179d9c
  8. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  9. PKG_LICENSE:=BSD-3-Clause BSD-2-Clause
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/mandoc
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=mandoc document formatting system
  18. DEPENDS:=+zlib
  19. URL:=https://mandoc.bsd.lv/
  20. endef
  21. define Package/sed/description
  22. mandoc is a suite of tools compiling mdoc, the roff macro language
  23. of choice for BSD manual pages, and man, the predominant historical
  24. language for UNIX manuals. It is small, ISO C, ISC-licensed, and quite
  25. fast. The main component of the toolset is the mandoc utility program,
  26. based on the libmandoc validating compiler, to format output for UTF-8
  27. and ASCII UNIX terminals, HTML 5, PostScript, and PDF.
  28. endef
  29. define Build/Prepare
  30. $(call Build/Prepare/Default)
  31. { \
  32. echo PREFIX=/usr; \
  33. echo HAVE_FTS=0; \
  34. echo HAVE_REALLOCARRAY=0; \
  35. echo "#Fix build on Darwin host (that values must be used for target build):"; \
  36. echo HAVE_DIRENT_NAMLEN=0; \
  37. echo HAVE_ENDIAN=1; \
  38. echo HAVE_SYS_ENDIAN=0; \
  39. echo HAVE_EFTYPE=0; \
  40. echo HAVE_PROGNAME=0; \
  41. echo HAVE_REWB_BSD=0; \
  42. echo HAVE_REWB_SYSV=1; \
  43. echo HAVE_STRCASESTR=1; \
  44. echo HAVE_STRINGLIST=0; \
  45. echo HAVE_STRLCAT=0; \
  46. echo HAVE_STRLCPY=0; \
  47. echo HAVE_STRPTIME=1; \
  48. echo HAVE_STRTONUM=0; \
  49. echo HAVE_VASPRINTF=1; \
  50. echo NEED_GNU_SOURCE=1; \
  51. echo HAVE_WCHAR=1; \
  52. echo UTF8_LOCALE=en_US.utf8; \
  53. echo STATIC=-static; \
  54. } > $(PKG_BUILD_DIR)/configure.local
  55. endef
  56. define Package/mandoc/install
  57. $(INSTALL_DIR) $(1)/usr/bin/
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mandoc $(1)/usr/bin/
  59. endef
  60. $(eval $(call BuildPackage,mandoc))