1 # $NetBSD: Makefile.common,v 1.13 2010/06/21 14:49:00 tron Exp $
3 # used by devel/ncursesw/Makefile
5 DISTNAME= ncurses-${NC_VERS}
8 MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \
9 ftp://dickey.his.com/ncurses/ \
10 ftp://dickey.his.com/ncurses/${NC_VERS}/
12 MAINTAINER= pkgsrc-users@NetBSD.org
13 HOMEPAGE= http://dickey.his.com/ncurses/ncurses.html
15 PKG_INSTALLATION_TYPES= overwrite pkgviews
16 PKG_DESTDIR_SUPPORT= user-destdir
22 CONFIGURE_ARGS+= --with-libtool
23 CONFIGURE_ARGS+= --enable-bsdpad
24 CONFIGURE_ARGS+= --enable-overwrite
25 CONFIGURE_ARGS+= --with-cxx-binding
26 CONFIGURE_ARGS+= --without-ada
27 CONFIGURE_ARGS+= --without-gpm
28 CONFIGURE_ARGS+= --with-manpage-format=normal
29 CONFIGURE_ARGS+= --with-manpage-tbl
30 CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR}
31 CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
32 CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses
35 .include "../../mk/bsd.prefs.mk"
36 .if !defined(TOOLS_TBL)
37 # This means that groff needs to be built to get tbl(1).
38 # We can only build groff if there is a builtin implementation of curses,
39 # otherwise we get a circular dependency problem.
40 # Additionally, Interix is special, see ../../mk/curses.buildlink3.mk
41 . if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \
43 # None was available, so disable use of tbl(1)
44 USE_TOOLS:= ${USE_TOOLS:Ntbl}
45 CONFIGURE_ARGS+= --without-manpage-tbl
49 .if ${OPSYS} == "SunOS"
50 TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src
51 TERMINFODIR= share/lib/terminfo
53 TERMINFODIR= share/terminfo
56 # This prevents tic from writing into ~/.terminfo
57 INSTALLATION_DIRS+= ${TERMINFODIR}
59 PLIST_SUBST+= TERMINFODIR=${TERMINFODIR:Q}