Changeset View
Changeset View
Standalone View
Standalone View
devel/ncurses/Makefile
# Created by: Andrey Zakhvatov | # Created by: Andrey Zakhvatov | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= ncurses | PORTNAME= ncurses | ||||
DISTVERSION= 6.2-${SNAPSHOT} | DISTVERSION= 6.2-${SNAPSHOT} | ||||
PORTREVISION= 1 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= ftp://ftp.invisible-island.net/${PORTNAME}/current/ \ | MASTER_SITES= ftp://ftp.invisible-island.net/${PORTNAME}/current/ \ | ||||
https://invisible-mirror.net/archives/ncurses/current/ | https://invisible-mirror.net/archives/ncurses/current/ | ||||
DIST_SUBDIR= ${PORTNAME} | DIST_SUBDIR= ${PORTNAME} | ||||
MAINTAINER= swills@FreeBSD.org | MAINTAINER= swills@FreeBSD.org | ||||
COMMENT= Library for terminal-independent, full-screen output | COMMENT= Library for terminal-independent, full-screen output | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BROKEN_sparc64= cannot build: coredump: illegal instruction | BROKEN_sparc64= cannot build: coredump: illegal instruction | ||||
USES= cpe pkgconfig shebangfix tar:tgz terminfo | USES= cpe pkgconfig shebangfix tar:tgz terminfo | ||||
SNAPSHOT= 20210213 | SNAPSHOT= 20210213 | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --datadir=${PREFIX}/share/misc \ | CONFIGURE_ARGS= --datadir=${PREFIX}/share/misc \ | ||||
--with-terminfo-dirs="${PREFIX}/share/misc/terminfo:${LOCALBASE}/share/site-terminfo" \ | |||||
--disable-home-terminfo \ | --disable-home-terminfo \ | ||||
--disable-overwrite \ | --disable-overwrite \ | ||||
--disable-root-environ \ | --disable-root-environ \ | ||||
--disable-lib-suffixes \ | --disable-lib-suffixes \ | ||||
--enable-bsdpad \ | --enable-bsdpad \ | ||||
--enable-colorfgbg \ | --enable-colorfgbg \ | ||||
--enable-getcap \ | --enable-getcap \ | ||||
--enable-pc-files \ | --enable-pc-files \ | ||||
--enable-rpath \ | --enable-rpath \ | ||||
--enable-termcap \ | --enable-termcap \ | ||||
--enable-widec \ | --enable-widec \ | ||||
--includedir=${PREFIX}/include/ncurses \ | --includedir=${PREFIX}/include/ncurses \ | ||||
--program-prefix= \ | --program-prefix= \ | ||||
--with-hashed-db \ | --without-hashed-db \ | ||||
--with-manpage-format=gzip \ | --with-manpage-format=gzip \ | ||||
--with-pkg-config-libdir=${PREFIX}/libdata/pkgconfig \ | --with-pkg-config-libdir=${PREFIX}/libdata/pkgconfig \ | ||||
--with-pkg-config=yes \ | --with-pkg-config=yes \ | ||||
--with-shared \ | --with-shared \ | ||||
--with-termlib \ | --with-termlib \ | ||||
--without-manpage-renames | --without-manpage-renames | ||||
MAKE_JOBS_UNSAFE= yes | MAKE_JOBS_UNSAFE= yes | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | post-patch: | ||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/misc/ncurses-config.in | @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/misc/ncurses-config.in | ||||
post-install: | post-install: | ||||
${RM} ${STAGEDIR}${PREFIX}/lib/libncurses.so | ${RM} ${STAGEDIR}${PREFIX}/lib/libncurses.so | ||||
${ECHO} "INPUT(libncurses.so.${PORTVERSION:R} AS_NEEDED(-ltinfo))" > ${STAGEDIR}${PREFIX}/lib/libncurses.so | ${ECHO} "INPUT(libncurses.so.${PORTVERSION:R} AS_NEEDED(-ltinfo))" > ${STAGEDIR}${PREFIX}/lib/libncurses.so | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.${DISTVERSION:S/-${SNAPSHOT}//} | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.${DISTVERSION:S/-${SNAPSHOT}//} | ||||
${MV} ${STAGEDIR}${PREFIX}/share/misc/terminfo.db \ | |||||
${STAGEDIR}${PREFIX}/share/misc/terminfo.db.default | |||||
# backwards compatibility, remove 2021-07-02 | # backwards compatibility, remove 2021-07-02 | ||||
${RLN} ${STAGEDIR}${PREFIX}/lib/libncurses.so ${STAGEDIR}${PREFIX}/lib/libncursesw.so | ${RLN} ${STAGEDIR}${PREFIX}/lib/libncurses.so ${STAGEDIR}${PREFIX}/lib/libncursesw.so | ||||
${RLN} ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ncurses.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ncursesw.pc | ${RLN} ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ncurses.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ncursesw.pc | ||||
post-install-DOCS-on: | post-install-DOCS-on: | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
.for f in ${DOCS} | .for f in ${DOCS} | ||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ | ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |