| @@ -1,60 +1,64 @@ | | | @@ -1,60 +1,64 @@ |
1 | # $NetBSD: Makefile.common,v 1.16 2011/04/06 14:02:47 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.17 2012/06/08 13:21:10 fhajny Exp $ |
2 | # | | 2 | # |
3 | # used by devel/ncursesw/Makefile | | 3 | # used by devel/ncursesw/Makefile |
4 | | | 4 | |
5 | DISTNAME= ncurses-${NC_VERS} | | 5 | DISTNAME= ncurses-${NC_VERS} |
6 | NC_VERS= 5.9 | | 6 | NC_VERS= 5.9 |
7 | CATEGORIES= devel | | 7 | CATEGORIES= devel |
8 | MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \ | | 8 | MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \ |
9 | ftp://dickey.his.com/ncurses/ \ | | 9 | ftp://dickey.his.com/ncurses/ \ |
10 | ftp://dickey.his.com/ncurses/${NC_VERS}/ | | 10 | ftp://dickey.his.com/ncurses/${NC_VERS}/ |
11 | | | 11 | |
12 | MAINTAINER= pkgsrc-users@NetBSD.org | | 12 | MAINTAINER= pkgsrc-users@NetBSD.org |
13 | HOMEPAGE= http://invisible-island.net/ncurses/ncurses.html | | 13 | HOMEPAGE= http://invisible-island.net/ncurses/ncurses.html |
14 | LICENSE= mit | | 14 | LICENSE= mit |
15 | | | 15 | |
16 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 16 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
17 | PKG_DESTDIR_SUPPORT= user-destdir | | 17 | PKG_DESTDIR_SUPPORT= user-destdir |
18 | | | 18 | |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | USE_LIBTOOL= yes | | 20 | USE_LIBTOOL= yes |
21 | USE_TOOLS+= tbl | | 21 | USE_TOOLS+= tbl |
22 | GNU_CONFIGURE= yes | | 22 | GNU_CONFIGURE= yes |
23 | CONFIGURE_ARGS+= --with-libtool | | 23 | CONFIGURE_ARGS+= --with-libtool |
24 | CONFIGURE_ARGS+= --enable-bsdpad | | 24 | CONFIGURE_ARGS+= --enable-bsdpad |
25 | CONFIGURE_ARGS+= --enable-overwrite | | 25 | CONFIGURE_ARGS+= --enable-overwrite |
26 | CONFIGURE_ARGS+= --with-cxx-binding | | 26 | CONFIGURE_ARGS+= --with-cxx-binding |
27 | CONFIGURE_ARGS+= --without-ada | | 27 | CONFIGURE_ARGS+= --without-ada |
28 | CONFIGURE_ARGS+= --without-gpm | | 28 | CONFIGURE_ARGS+= --without-gpm |
29 | CONFIGURE_ARGS+= --with-manpage-format=normal | | 29 | CONFIGURE_ARGS+= --with-manpage-format=normal |
30 | CONFIGURE_ARGS+= --with-manpage-tbl | | 30 | CONFIGURE_ARGS+= --with-manpage-tbl |
31 | CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR} | | 31 | CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR} |
32 | CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR} | | 32 | CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR} |
33 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses | | 33 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses |
34 | MAKE_JOBS_SAFE= no | | 34 | MAKE_JOBS_SAFE= no |
35 | | | 35 | |
36 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
37 | .if !defined(TOOLS_TBL) | | 37 | .if !defined(TOOLS_TBL) |
38 | # This means that groff needs to be built to get tbl(1). | | 38 | # This means that groff needs to be built to get tbl(1). |
39 | # We can only build groff if there is a builtin implementation of curses, | | 39 | # We can only build groff if there is a builtin implementation of curses, |
40 | # otherwise we get a circular dependency problem. | | 40 | # otherwise we get a circular dependency problem. |
41 | # Additionally, Interix is special, see ../../mk/curses.buildlink3.mk | | 41 | # Additionally, Interix is special, see ../../mk/curses.buildlink3.mk |
42 | . if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \ | | 42 | . if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \ |
43 | ${OPSYS} == "Interix" | | 43 | ${OPSYS} == "Interix" |
44 | # None was available, so disable use of tbl(1) | | 44 | # None was available, so disable use of tbl(1) |
45 | USE_TOOLS:= ${USE_TOOLS:Ntbl} | | 45 | USE_TOOLS:= ${USE_TOOLS:Ntbl} |
46 | CONFIGURE_ARGS+= --without-manpage-tbl | | 46 | CONFIGURE_ARGS+= --without-manpage-tbl |
47 | . endif | | 47 | . endif |
48 | .endif | | 48 | .endif |
49 | | | 49 | |
50 | .if ${OPSYS} == "SunOS" | | 50 | .if ${OPSYS} == "SunOS" |
| | | 51 | .include "../../mk/compiler.mk" |
| | | 52 | . if !empty(CC_VERSION:Mgcc-4.[6-9].*) |
| | | 53 | BUILDLINK_TRANSFORM+= rm:-D_XOPEN_SOURCE_EXTENDED |
| | | 54 | . endif |
51 | TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src | | 55 | TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src |
52 | TERMINFODIR= share/lib/terminfo | | 56 | TERMINFODIR= share/lib/terminfo |
53 | .else | | 57 | .else |
54 | TERMINFODIR= share/terminfo | | 58 | TERMINFODIR= share/terminfo |
55 | .endif | | 59 | .endif |
56 | | | 60 | |
57 | # This prevents tic from writing into ~/.terminfo | | 61 | # This prevents tic from writing into ~/.terminfo |
58 | INSTALLATION_DIRS+= ${TERMINFODIR} | | 62 | INSTALLATION_DIRS+= ${TERMINFODIR} |
59 | | | 63 | |
60 | PLIST_SUBST+= TERMINFODIR=${TERMINFODIR} | | 64 | PLIST_SUBST+= TERMINFODIR=${TERMINFODIR} |