Annotation of pkgsrc/devel/ncurses/Makefile, Revision 1.87
1.87 ! wiz 1: # $NetBSD: Makefile,v 1.86 2011/04/01 20:27:03 tez Exp $
1.73 tron 2:
3: .include "Makefile.common"
1.1 hubertf 4:
1.57 adam 5: COMMENT= CRT screen handling and optimization package
1.87 ! wiz 6: PKGREVISION= 1
1.32 jlam 7:
1.78 rillig 8: INSTALLATION_DIRS+= share/examples
1.55 jlam 9:
1.71 rillig 10: .if ${OPSYS} == "SunOS"
1.85 adam 11: # misc/screen installs screen, screen-bce and screen-s, so we need to remove
12: # these here to avoid a conflict; this means we also remove the entries which
13: # have a use=screen in them
1.71 rillig 14: SUBST_CLASSES+= ti
15: SUBST_STAGE.ti= post-configure
16: SUBST_MESSAGE.ti= Removing screen entries from the terminfo database.
17: SUBST_FILES.ti= ${TERMINFO_SRC}
1.76 dmcmahil 18: # see misc/screen/PLIST for these:
1.71 rillig 19: SUBST_SED.ti= -e '/^screen|/,/^$$/d'
1.76 dmcmahil 20: SUBST_SED.ti+= -e '/^screen-bce|/,/^$$/d'
1.86 tez 21: SUBST_SED.ti+= -e '/^screen-bce.xterm-new|/,/^$$/d'
22: SUBST_SED.ti+= -e '/^screen-bce.rxvt|/,/^$$/d'
23: SUBST_SED.ti+= -e '/^screen-bce.Eterm|/,/^$$/d'
24: SUBST_SED.ti+= -e '/^screen-bce.mrxvt|/,/^$$/d'
25: SUBST_SED.ti+= -e '/^screen-bce.gnome|/,/^$$/d'
26: SUBST_SED.ti+= -e '/^screen-bce.konsole|/,/^$$/d'
27: SUBST_SED.ti+= -e '/^screen-bce.linux|/,/^$$/d'
28: SUBST_SED.ti+= -e '/^screen-bce.mlterm|/,/^$$/d'
1.76 dmcmahil 29: SUBST_SED.ti+= -e '/^screen-s|/,/^$$/d'
30: # see ${TERMINFO_SRC} and look for use=screen for these
31: SUBST_SED.ti+= -e '/^screen.teraterm|/,/^$$/d'
32: SUBST_SED.ti+= -e '/^screen.linux|/,/^$$/d'
1.71 rillig 33: SUBST_SED.ti+= -e '/^screen-w|/,/^$$/d'
1.76 dmcmahil 34: SUBST_SED.ti+= -e '/^screen-16color/,/^$$/d'
35: SUBST_SED.ti+= -e '/^screen-256color/,/^$$/d'
1.83 adrianp 36: SUBST_SED.ti+= -e '/^screen.mlterm/,/^$$/d'
37: SUBST_SED.ti+= -e '/^screen.rxvt/,/^$$/d'
1.71 rillig 38: .endif
39:
1.84 tron 40: PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.terminfo
41:
1.28 jlam 42: post-configure:
1.32 jlam 43: cd ${WRKSRC}/man; \
1.43 salo 44: for f in *.1m; do \
1.80 hira 45: mv -f $${f} `${BASENAME} $${f} .1m`.1; \
1.32 jlam 46: done; \
1.43 salo 47: for f in *.3x; do \
1.80 hira 48: mv -f $${f} `${BASENAME} $${f} .3x`.3; \
1.28 jlam 49: done
1.27 jlam 50:
51: post-install:
52: ${INSTALL_DATA} ${WRKSRC}/c++/demo.cc \
1.74 joerg 53: ${DESTDIR}${PREFIX}/share/examples/ncurses++demo.cc
1.84 tron 54: ${FIND} ${DESTDIR}${PREFIX}/${TERMINFODIR} -type f -print | ${SORT} | \
55: ${SED} -e "s,^${DESTDIR}${PREFIX}/,," >${WRKDIR}/PLIST.terminfo
1.1 hubertf 56:
1.13 agc 57: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>