Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $OpenBSD: Makefile,v 1.19 2017/05/31 08:08:17 espie Exp $
  2. COMMENT = command line double-entry accounting ledger
  3. GH_TAGNAME = v3.1.1
  4. GH_ACCOUNT = ledger
  5. GH_PROJECT = ledger
  6. SHARED_LIBS += ledger 0.0 # 3.0
  7. CATEGORIES = productivity
  8. HOMEPAGE = http://www.ledger-cli.org/
  9. MAINTAINER = Sergey Bronnikov <estetus@gmail.com>
  10. # BSD
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += boost_date_time-mt boost_filesystem-mt boost_iostreams-mt
  13. WANTLIB += boost_regex-mt boost_system-mt boost_unit_test_framework-mt
  14. WANTLIB += c gmp m mpfr pthread ${LIBECXX}
  15. MODULES = devel/cmake \
  16. lang/python
  17. COMPILER = gcc
  18. BUILD_DEPENDS = devel/utfcpp
  19. LIB_DEPENDS = devel/boost \
  20. devel/gmp \
  21. devel/mpfr
  22. LIBledger_MAJOR = ${LIBledger_VERSION:R}
  23. LIBledger_MINOR = ${LIBledger_VERSION:E}
  24. SUBST_VARS += LIBledger_MAJOR LIBledger_MINOR
  25. CONFIGURE_ARGS= -DUTFCPP_PATH=${LOCALBASE}/include/utfcpp
  26. # Use this to make sure version.info gets generated, the actual
  27. # installation bits are removed as the remaining .info files are
  28. # not generated...see post-install below.
  29. CONFIGURE_ARGS += -DBUILD_DOCS:Bool=On
  30. pre-configure:
  31. ${SUBST_CMD} ${WRKSRC}/src/CMakeLists.txt
  32. post-install:
  33. .for i in ledger3 ledger-mode
  34. cd ${WRKBUILD}/doc/ && \
  35. cp ${WRKSRC}/doc/$i.texi . && \
  36. makeinfo --force --no-split -o ${PREFIX}/info/$i.info $i.texi
  37. .endfor
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ledger/
  39. .for d in LICENSE.md doc/GLOSSARY.md
  40. ${INSTALL_DATA} ${WRKSRC}/$d ${PREFIX}/share/doc/ledger/
  41. .endfor
  42. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ledger
  43. cd ${WRKSRC}/contrib && umask 022 && pax -rw . ${PREFIX}/share/examples/ledger
  44. .include <bsd.port.mk>