| @@ -1,18 +1,18 @@ | | | @@ -1,18 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.12 2019/09/03 13:20:06 gutteridge Exp $ | | 1 | # $NetBSD: Makefile,v 1.13 2019/09/10 03:47:27 gutteridge Exp $ |
2 | | | 2 | |
3 | PKGREVISION= 1 | | | |
4 | DISTNAME= guile-2.2.6 | | 3 | DISTNAME= guile-2.2.6 |
5 | PKGNAME= ${DISTNAME:S/guile/guile22/} | | 4 | PKGNAME= ${DISTNAME:S/guile/guile22/} |
| | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= lang | | 6 | CATEGORIES= lang |
7 | MASTER_SITES= ftp://ftp.gnu.org/gnu/guile/ | | 7 | MASTER_SITES= ftp://ftp.gnu.org/gnu/guile/ |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://www.gnu.org/software/guile/ | | 10 | HOMEPAGE= https://www.gnu.org/software/guile/ |
11 | COMMENT= Official extension language for the GNU operating system | | 11 | COMMENT= Official extension language for the GNU operating system |
12 | LICENSE= gnu-lgpl-v3 | | 12 | LICENSE= gnu-lgpl-v3 |
13 | | | 13 | |
14 | # Currently, 2.0 is primary. | | 14 | # Currently, 2.0 is primary. |
15 | GUILE_SUBDIR= guile/2.2 | | 15 | GUILE_SUBDIR= guile/2.2 |
16 | #GUILE_SUBDIR= # empty | | 16 | #GUILE_SUBDIR= # empty |
17 | | | 17 | |
18 | # guile does not like the --build and --host triplets on NetBSD | | 18 | # guile does not like the --build and --host triplets on NetBSD |
| @@ -29,54 +29,55 @@ CONFIGURE_ARGS+= --prefix=${GUILE_PREFI | | | @@ -29,54 +29,55 @@ CONFIGURE_ARGS+= --prefix=${GUILE_PREFI |
29 | CONFIGURE_ARGS+= --infodir=${GUILE_PREFIX:Q}/info | | 29 | CONFIGURE_ARGS+= --infodir=${GUILE_PREFIX:Q}/info |
30 | CONFIGURE_ARGS+= --mandir=${GUILE_PREFIX:Q}/man | | 30 | CONFIGURE_ARGS+= --mandir=${GUILE_PREFIX:Q}/man |
31 | BUILDLINK_PASSTHRU_DIRS+= ${GUILE_PREFIX} | | 31 | BUILDLINK_PASSTHRU_DIRS+= ${GUILE_PREFIX} |
32 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${GUILE_PREFIX}/lib | | 32 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${GUILE_PREFIX}/lib |
33 | .else | | 33 | .else |
34 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 34 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
35 | CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR} | | 35 | CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR} |
36 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} | | 36 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | INFO_FILES= yes | | 39 | INFO_FILES= yes |
40 | USE_LIBTOOL= yes | | 40 | USE_LIBTOOL= yes |
41 | USE_TOOLS+= gmake pkg-config | | 41 | USE_TOOLS+= gmake pkg-config |
| | | 42 | USE_TOOLS.Darwin+= gsed |
42 | | | 43 | |
43 | PKGCONFIG_OVERRIDE+= meta/guile-2.2.pc.in | | 44 | PKGCONFIG_OVERRIDE+= meta/guile-2.2.pc.in |
44 | # known broken: test-loose-ends on NetBSD/current | | 45 | # known broken: test-loose-ends on NetBSD/current |
45 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24003 | | 46 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24003 |
46 | TEST_TARGET= check | | 47 | TEST_TARGET= check |
47 | | | 48 | |
48 | SUBST_CLASSES+= tools | | 49 | SUBST_CLASSES+= tools |
49 | SUBST_SED.tools+= -e "s,\\((define %pkg-config-program .\\).*\\(.)\\),\\1${PREFIX}/bin/pkg-config\\2," | | 50 | SUBST_SED.tools+= -e "s,\\((define %pkg-config-program .\\).*\\(.)\\),\\1${PREFIX}/bin/pkg-config\\2," |
50 | SUBST_STAGE.tools= post-build | | 51 | SUBST_STAGE.tools= post-build |
51 | SUBST_FILES.tools+= meta/guile-config | | 52 | SUBST_FILES.tools+= meta/guile-config |
52 | SUBST_MESSAGE.tools= Fixing path to pkg-config in installed file. | | 53 | SUBST_MESSAGE.tools= Fixing path to pkg-config in installed file. |
53 | | | 54 | |
54 | # XXX: less tests would fail if we made libunistring use GNU iconv too | | 55 | # XXX: less tests would fail if we made libunistring use GNU iconv too |
55 | #USE_GNU_ICONV= yes | | 56 | #USE_GNU_ICONV= yes |
56 | | | 57 | |
57 | OPSYSVARS+= GUILE_LIBNAME | | 58 | OPSYSVARS+= GUILE_LIBNAME |
58 | GUILE_LIBNAME.Darwin= a | | 59 | GUILE_LIBNAME.Darwin= a |
59 | GUILE_LIBNAME.FreeBSD= so.30 | | 60 | GUILE_LIBNAME.FreeBSD= so.30 |
60 | GUILE_LIBNAME.*= so.22.8.1 | | 61 | GUILE_LIBNAME.*= so.22.8.1 |
61 | | | 62 | |
62 | PLIST_SUBST+= GUILE_LIBNAME=${GUILE_LIBNAME} | | 63 | PLIST_SUBST+= GUILE_LIBNAME=${GUILE_LIBNAME} |
63 | PRINT_PLIST_AWK+= {gsub(/${GUILE_LIBNAME}/, "$${GUILE_LIBNAME}");} | | 64 | PRINT_PLIST_AWK+= {gsub(/${GUILE_LIBNAME}/, "$${GUILE_LIBNAME}");} |
64 | | | 65 | |
65 | .include "../../mk/bsd.prefs.mk" | | 66 | .include "../../mk/bsd.prefs.mk" |
66 | | | 67 | |
67 | # If not Linux+glibc or Darwin, an extra charset.alias file is installed | | 68 | # If not Darwin, an extra charset.alias file is installed |
68 | PLIST_VARS+= charset | | 69 | PLIST_VARS+= charset |
69 | .if (${OPSYS} != "Linux" || !defined(GLIBC_VERSION)) && ${OPSYS} != "Darwin" | | 70 | .if ${OPSYS} != "Darwin" |
70 | PLIST.charset= yes | | 71 | PLIST.charset= yes |
71 | .endif | | 72 | .endif |
72 | | | 73 | |
73 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24002 | | 74 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24002 |
74 | post-configure: | | 75 | post-configure: |
75 | ${ECHO} '#define FLEXIBLE_ARRAY_MEMBER /**/' >> ${WRKSRC}/config.h | | 76 | ${ECHO} '#define FLEXIBLE_ARRAY_MEMBER /**/' >> ${WRKSRC}/config.h |
76 | | | 77 | |
77 | .include "../../devel/gmp/buildlink3.mk" | | 78 | .include "../../devel/gmp/buildlink3.mk" |
78 | .include "../../converters/libiconv/buildlink3.mk" | | 79 | .include "../../converters/libiconv/buildlink3.mk" |
79 | .include "../../devel/gettext-lib/buildlink3.mk" | | 80 | .include "../../devel/gettext-lib/buildlink3.mk" |
80 | .include "../../devel/libltdl/buildlink3.mk" | | 81 | .include "../../devel/libltdl/buildlink3.mk" |
81 | .include "../../textproc/libunistring/buildlink3.mk" | | 82 | .include "../../textproc/libunistring/buildlink3.mk" |
82 | # needs a particular bug fix on NetBSD | | 83 | # needs a particular bug fix on NetBSD |