| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
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 |
| @@ -38,23 +38,27 @@ MAKE_JOBS_SAFE= no | | | @@ -38,23 +38,27 @@ MAKE_JOBS_SAFE= no |
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} |