Changeset View
Changeset View
Standalone View
Standalone View
devel/notcurses/Makefile
| Show All 12 Lines | |||||
| LICENSE= APACHE20 MIT | LICENSE= APACHE20 MIT | ||||
| LICENSE_COMB= dual | LICENSE_COMB= dual | ||||
| LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \ | LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \ | ||||
| libdeflate.so:archivers/libdeflate \ | libdeflate.so:archivers/libdeflate \ | ||||
| libqrcodegen.so:graphics/qr-code-generator \ | libqrcodegen.so:graphics/qr-code-generator \ | ||||
| libunistring.so:devel/libunistring | libunistring.so:devel/libunistring | ||||
| USES= cmake:noninja compiler:c++17-lang localbase pkgconfig | USES= cmake:noninja compiler:c++17-lang localbase ncurses pkgconfig | ||||
| USE_GITHUB= yes | USE_GITHUB= yes | ||||
| GH_ACCOUNT= dankamongmen | GH_ACCOUNT= dankamongmen | ||||
| USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
| CMAKE_ON= USE_QRCODEGEN | CMAKE_ON= USE_QRCODEGEN | ||||
| # we leave USE_POC=on (and BUILD_TESTING=on) so that we can run some basic | # we leave USE_POC=on (and BUILD_TESTING=on) so that we can run some basic | ||||
| # tests, if not the full notcurses-tester suite. | # tests, if not the full notcurses-tester suite. | ||||
| CMAKE_OFF= USE_DOCTEST USE_PANDOC | CMAKE_OFF= USE_DOCTEST USE_PANDOC | ||||
| TEST_TARGET= test | TEST_TARGET= test | ||||
| PLIST_SUB= ABI_VER=${ABIVERSION} \ | PLIST_SUB= ABI_VER=${ABIVERSION} \ | ||||
| REL_VER=${DISTVERSION} | REL_VER=${DISTVERSION} | ||||
| OPTIONS_DEFINE= DOCS MANPAGES | OPTIONS_DEFINE= DOCS MANPAGES | ||||
| OPTIONS_DEFAULT= MANPAGES | OPTIONS_DEFAULT= MANPAGES | ||||
| OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
| ABIVERSION= 3 | ABIVERSION= 3 | ||||
| .include <bsd.port.options.mk> | |||||
| # ncursesw and tinfo >= 6.1 seem to be needed (see CMakeLists.txt:l104) | |||||
| .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400035 | |||||
| USES+=ncurses:port | |||||
| .else | |||||
| USES+=ncurses | |||||
| .endif | |||||
| post-patch-DOCS-off: | post-patch-DOCS-off: | ||||
| @${REINPLACE_CMD} -e 's|install(FILES $${MARKDOWN} DESTINATION $${CMAKE_INSTALL_DOCDIR})|#install(FILES $${MARKDOWN} DESTINATION $${CMAKE_INSTALL_DOCDIR})|' \ | @${REINPLACE_CMD} -e 's|install(FILES $${MARKDOWN} DESTINATION $${CMAKE_INSTALL_DOCDIR})|#install(FILES $${MARKDOWN} DESTINATION $${CMAKE_INSTALL_DOCDIR})|' \ | ||||
| ${WRKSRC}/CMakeLists.txt | ${WRKSRC}/CMakeLists.txt | ||||
| post-install-MANPAGES-on: | post-install-MANPAGES-on: | ||||
| ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1 ${STAGEDIR}${PREFIX}/share/man/man3 | ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1 ${STAGEDIR}${PREFIX}/share/man/man3 | ||||
| # we don't want to install e.g. "notcurses-x.x.1" | # we don't want to install e.g. "notcurses-x.x.1" | ||||
| ${FIND} ${WRKDIR} -maxdepth 1 -type f -iname \*.1 -execdir ${INSTALL_MAN} {} ${STAGEDIR}${PREFIX}/share/man/man1 \; | ${FIND} ${WRKDIR} -maxdepth 1 -type f -iname \*.1 -execdir ${INSTALL_MAN} {} ${STAGEDIR}${PREFIX}/share/man/man1 \; | ||||
| ${FIND} ${WRKDIR} -maxdepth 1 -type f -iname \*.3 -execdir ${INSTALL_MAN} {} ${STAGEDIR}${PREFIX}/share/man/man3 \; | ${FIND} ${WRKDIR} -maxdepth 1 -type f -iname \*.3 -execdir ${INSTALL_MAN} {} ${STAGEDIR}${PREFIX}/share/man/man3 \; | ||||
| .include <bsd.port.mk> | .include <bsd.port.mk> | ||||