| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.45 2020/03/09 06:11:55 wiz Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.46 2020/06/01 07:01:19 jperkin 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.2 | | 7 | NC_VERS= 6.2 |
8 | CATEGORIES= devel | | 8 | CATEGORIES= devel |
9 | MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} |
10 | MASTER_SITES+= ftp://dickey.his.com/ncurses/ | | 10 | MASTER_SITES+= ftp://dickey.his.com/ncurses/ |
11 | MASTER_SITES+= ftp://dickey.his.com/ncurses/${NC_VERS}/ | | 11 | MASTER_SITES+= ftp://dickey.his.com/ncurses/${NC_VERS}/ |
12 | | | 12 | |
13 | MAINTAINER= pkgsrc-users@NetBSD.org | | 13 | MAINTAINER= pkgsrc-users@NetBSD.org |
14 | HOMEPAGE= https://invisible-island.net/ncurses/ncurses.html | | 14 | HOMEPAGE= https://invisible-island.net/ncurses/ncurses.html |
| @@ -17,63 +17,54 @@ LICENSE= mit | | | @@ -17,63 +17,54 @@ LICENSE= mit |
17 | USE_LANGUAGES= c c++ | | 17 | USE_LANGUAGES= c c++ |
18 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
19 | USE_TOOLS+= gmake pkg-config tbl | | 19 | USE_TOOLS+= gmake pkg-config 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+= --enable-pc-files | | 25 | CONFIGURE_ARGS+= --enable-pc-files |
26 | CONFIGURE_ARGS+= --with-pkg-config-libdir=${PREFIX}/lib/pkgconfig | | 26 | CONFIGURE_ARGS+= --with-pkg-config-libdir=${PREFIX}/lib/pkgconfig |
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 | | | |
31 | CONFIGURE_ARGS+= --without-manpage-renames | | 30 | CONFIGURE_ARGS+= --without-manpage-renames |
32 | CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR} | | 31 | CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR} |
33 | CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR} | | 32 | CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR} |
34 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses | | 33 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncurses |
35 | | | 34 | |
36 | SUBST_CLASSES+= rpath | | 35 | SUBST_CLASSES+= rpath |
37 | SUBST_FILES.rpath+= misc/ncurses-config | | 36 | SUBST_FILES.rpath+= misc/ncurses-config |
38 | SUBST_STAGE.rpath= post-configure | | 37 | SUBST_STAGE.rpath= post-configure |
39 | SUBST_SED.rpath+= -e "s|-L\\(.libdir\\)|${COMPILER_RPATH_FLAG}\\1 -L\\1|" | | 38 | SUBST_SED.rpath+= -e "s|-L\\(.libdir\\)|${COMPILER_RPATH_FLAG}\\1 -L\\1|" |
40 | SUBST_MESSAGE.rpath= Fixing rpath in ncurses-config. | | 39 | SUBST_MESSAGE.rpath= Fixing rpath in ncurses-config. |
41 | | | 40 | |
42 | .include "../../mk/bsd.prefs.mk" | | 41 | .include "../../mk/bsd.prefs.mk" |
43 | | | 42 | |
44 | CONFIGURE_ARGS.Darwin+= --disable-mixed-case | | 43 | CONFIGURE_ARGS.Darwin+= --disable-mixed-case |
45 | | | 44 | |
46 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 45 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
47 | TOOL_DEPENDS+= ncurses-${NC_VERS}:../../devel/ncurses | | 46 | TOOL_DEPENDS+= ncurses-${NC_VERS}:../../devel/ncurses |
48 | CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} | | 47 | CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} |
49 | CONFIGURE_ENV+= ac_cv_path_TIC_PATH=${LOCALBASE}/bin/tic | | 48 | CONFIGURE_ENV+= ac_cv_path_TIC_PATH=${LOCALBASE}/bin/tic |
50 | .endif | | 49 | .endif |
51 | | | 50 | |
52 | .if !defined(TOOLS_TBL) | | 51 | # If there's no native tbl(1) then the tools infrastructure would pull in |
53 | # This means that groff needs to be built to get tbl(1). | | 52 | # groff, causing various circular dependencies. |
54 | # We can only build groff if there is a builtin implementation of curses, | | 53 | .if defined(TOOLS_TBL) |
55 | # otherwise we get a circular dependency problem. | | 54 | CONFIGURE_ARGS+= --with-manpage-tbl |
56 | # Additionally, Interix is special, see ../../mk/curses.buildlink3.mk | | 55 | .else |
57 | # Additionally, Arch Linux boostrap comes without curses package. | | | |
58 | . if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \ | | | |
59 | ${OPSYS} == "Interix" || \ | | | |
60 | (${OPSYS} == "FreeBSD" && empty(OS_VERSION:M[0-9].*) && \ | | | |
61 | empty(OS_VERSION:M1[01].*)) || \ | | | |
62 | (${OPSYS} == "Linux" && exists(/etc/arch-release)) | | | |
63 | # None was available, so disable use of tbl(1) | | | |
64 | USE_TOOLS:= ${USE_TOOLS:Ntbl} | | 56 | USE_TOOLS:= ${USE_TOOLS:Ntbl} |
65 | CONFIGURE_ARGS+= --without-manpage-tbl | | 57 | CONFIGURE_ARGS+= --without-manpage-tbl |
66 | . endif | | | |
67 | .endif | | 58 | .endif |
68 | | | 59 | |
69 | .include "../../mk/compiler.mk" | | 60 | .include "../../mk/compiler.mk" |
70 | | | 61 | |
71 | # Fix build under FreeBSD 10.2 | | 62 | # Fix build under FreeBSD 10.2 |
72 | .if !empty(PKGSRC_COMPILER:Mclang) | | 63 | .if !empty(PKGSRC_COMPILER:Mclang) |
73 | CONFIGURE_ENV+= ac_cv_c_compiler_gnu=no | | 64 | CONFIGURE_ENV+= ac_cv_c_compiler_gnu=no |
74 | CONFIGURE_ENV+= ac_cv_cxx_compiler_gnu=no | | 65 | CONFIGURE_ENV+= ac_cv_cxx_compiler_gnu=no |
75 | .endif | | 66 | .endif |
76 | | | 67 | |
77 | .if ${OPSYS} == "SunOS" | | 68 | .if ${OPSYS} == "SunOS" |
78 | CONFIGURE_ARGS+= --disable-const | | 69 | CONFIGURE_ARGS+= --disable-const |
79 | TERMINFODIR= share/lib/terminfo | | 70 | TERMINFODIR= share/lib/terminfo |