| @@ -1,91 +1,83 @@ | | | @@ -1,91 +1,83 @@ |
1 | # $NetBSD: Makefile.common,v 1.29 2015/08/17 17:10:31 wiz Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.30 2015/08/28 07:09:57 richard Exp $ |
2 | # | | 2 | # |
3 | # used by devel/ncurses/Makefile | | 3 | # used by devel/ncurses/Makefile |
4 | # used by devel/ncursesw/Makefile | | 4 | # used by devel/ncursesw/Makefile |
5 | | | 5 | |
6 | DISTNAME= ncurses-${NC_VERS} | | 6 | DISTNAME= ncurses-${NC_VERS} |
7 | NC_VERS= 6.0 | | 7 | NC_VERS= 6.0 |
8 | CATEGORIES= devel | | 8 | CATEGORIES= devel |
9 | MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \ | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \ |
10 | ftp://dickey.his.com/ncurses/ \ | | 10 | ftp://dickey.his.com/ncurses/ \ |
11 | ftp://dickey.his.com/ncurses/${NC_VERS}/ | | 11 | ftp://dickey.his.com/ncurses/${NC_VERS}/ |
12 | | | 12 | |
13 | MAINTAINER= pkgsrc-users@NetBSD.org | | 13 | MAINTAINER= pkgsrc-users@NetBSD.org |
14 | HOMEPAGE= http://invisible-island.net/ncurses/ncurses.html | | 14 | HOMEPAGE= http://invisible-island.net/ncurses/ncurses.html |
15 | LICENSE= mit | | 15 | LICENSE= mit |
16 | | | 16 | |
17 | USE_LANGUAGES= c c++ | | 17 | USE_LANGUAGES= c c++ |
18 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
19 | USE_TOOLS+= gmake tbl | | 19 | USE_TOOLS+= gmake tbl |
20 | GNU_CONFIGURE= yes | | 20 | GNU_CONFIGURE= yes |
21 | CONFIGURE_ARGS+= --with-libtool | | 21 | CONFIGURE_ARGS+= --with-libtool |
22 | CONFIGURE_ARGS+= --enable-bsdpad | | 22 | CONFIGURE_ARGS+= --enable-bsdpad |
23 | CONFIGURE_ARGS+= --enable-overwrite | | 23 | CONFIGURE_ARGS+= --enable-overwrite |
24 | CONFIGURE_ARGS+= --with-cxx-binding | | 24 | CONFIGURE_ARGS+= --with-cxx-binding |
25 | CONFIGURE_ARGS+= --without-ada | | 25 | CONFIGURE_ARGS+= --without-ada |
26 | CONFIGURE_ARGS+= --without-gpm | | 26 | CONFIGURE_ARGS+= --without-gpm |
27 | CONFIGURE_ARGS+= --with-manpage-format=normal | | 27 | CONFIGURE_ARGS+= --with-manpage-format=normal |
28 | CONFIGURE_ARGS+= --with-manpage-tbl | | 28 | CONFIGURE_ARGS+= --with-manpage-tbl |
29 | CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR} | | 29 | CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR} |
30 | CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR} | | 30 | CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR} |
31 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses | | 31 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses |
32 | | | 32 | |
33 | SUBST_CLASSES+= rpath | | 33 | SUBST_CLASSES+= rpath |
34 | SUBST_FILES.rpath+= misc/ncurses-config | | 34 | SUBST_FILES.rpath+= misc/ncurses-config |
35 | SUBST_STAGE.rpath= post-configure | | 35 | SUBST_STAGE.rpath= post-configure |
36 | SUBST_SED.rpath+= -e "s|-L\\(.libdir\\)|${COMPILER_RPATH_FLAG}\\1 -L\\1|" | | 36 | SUBST_SED.rpath+= -e "s|-L\\(.libdir\\)|${COMPILER_RPATH_FLAG}\\1 -L\\1|" |
37 | SUBST_MESSAGE.rpath= Fixing rpath in ncurses-config. | | 37 | SUBST_MESSAGE.rpath= Fixing rpath in ncurses-config. |
38 | | | 38 | |
39 | .include "../../mk/bsd.prefs.mk" | | 39 | .include "../../mk/bsd.prefs.mk" |
40 | | | 40 | |
41 | .if ${OPSYS} == "Darwin" | | 41 | .if ${OPSYS} == "Darwin" |
42 | CONFIGURE_ARGS+= --disable-mixed-case | | 42 | CONFIGURE_ARGS+= --disable-mixed-case |
43 | .endif | | 43 | .endif |
44 | | | 44 | |
45 | .if ${OPSYS} == "SunOS" | | | |
46 | USE_LANGUAGES+= c99 | | | |
47 | .endif | | | |
48 | | | | |
49 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 45 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
50 | TOOL_DEPENDS+= ncurses-${NC_VERS}:../../devel/ncurses | | 46 | TOOL_DEPENDS+= ncurses-${NC_VERS}:../../devel/ncurses |
51 | CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} | | 47 | CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} |
52 | CONFIGURE_ENV+= ac_cv_path_TIC_PATH=${LOCALBASE}/bin/tic | | 48 | CONFIGURE_ENV+= ac_cv_path_TIC_PATH=${LOCALBASE}/bin/tic |
53 | .endif | | 49 | .endif |
54 | | | 50 | |
55 | .if !defined(TOOLS_TBL) | | 51 | .if !defined(TOOLS_TBL) |
56 | # This means that groff needs to be built to get tbl(1). | | 52 | # This means that groff needs to be built to get tbl(1). |
57 | # We can only build groff if there is a builtin implementation of curses, | | 53 | # We can only build groff if there is a builtin implementation of curses, |
58 | # otherwise we get a circular dependency problem. | | 54 | # otherwise we get a circular dependency problem. |
59 | # Additionally, Interix is special, see ../../mk/curses.buildlink3.mk | | 55 | # Additionally, Interix is special, see ../../mk/curses.buildlink3.mk |
60 | . if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \ | | 56 | . if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \ |
61 | ${OPSYS} == "Interix" | | 57 | ${OPSYS} == "Interix" |
62 | # None was available, so disable use of tbl(1) | | 58 | # None was available, so disable use of tbl(1) |
63 | USE_TOOLS:= ${USE_TOOLS:Ntbl} | | 59 | USE_TOOLS:= ${USE_TOOLS:Ntbl} |
64 | CONFIGURE_ARGS+= --without-manpage-tbl | | 60 | CONFIGURE_ARGS+= --without-manpage-tbl |
65 | . endif | | 61 | . endif |
66 | .endif | | 62 | .endif |
67 | | | 63 | |
68 | .include "../../mk/compiler.mk" | | 64 | .include "../../mk/compiler.mk" |
69 | | | 65 | |
70 | .if ${OPSYS} == "SunOS" | | 66 | .if ${OPSYS} == "SunOS" |
71 | . if !empty(CC_VERSION:Mgcc-4.*) | | 67 | CONFIGURE_ARGS+= --disable-const |
72 | #This may yet need to be adapted for systems prior to Solaris 10 | | | |
73 | BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_POSIX_C_SOURCE=200112L | | | |
74 | BUILDLINK_TRANSFORM+= rm:-D_XOPEN_SOURCE_EXTENDED | | | |
75 | . endif | | | |
76 | TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src | | 68 | TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src |
77 | TERMINFODIR= share/lib/terminfo | | 69 | TERMINFODIR= share/lib/terminfo |
78 | .else | | 70 | .else |
79 | TERMINFODIR= share/terminfo | | 71 | TERMINFODIR= share/terminfo |
80 | .endif | | 72 | .endif |
81 | | | 73 | |
82 | .if !empty(CC_VERSION:Mgcc-5.*) | | 74 | .if !empty(CC_VERSION:Mgcc-5.*) |
83 | # Inhibit generation of line markers in the output from the preprocessor | | 75 | # Inhibit generation of line markers in the output from the preprocessor |
84 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60723 | | 76 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60723 |
85 | CPPFLAGS+= -P | | 77 | CPPFLAGS+= -P |
86 | .endif | | 78 | .endif |
87 | | | 79 | |
88 | # This prevents tic from writing into ~/.terminfo | | 80 | # This prevents tic from writing into ~/.terminfo |
89 | INSTALLATION_DIRS+= ${TERMINFODIR} | | 81 | INSTALLATION_DIRS+= ${TERMINFODIR} |
90 | | | 82 | |
91 | PLIST_SUBST+= TERMINFODIR=${TERMINFODIR} | | 83 | PLIST_SUBST+= TERMINFODIR=${TERMINFODIR} |