blob: 38e52b95ab0c75161974cffde7fcbbc51b45f47d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $NetBSD: Makefile,v 1.8 2016/12/07 19:05:47 maya Exp $
DISTNAME= guile-2.0.12
PKGNAME= ${DISTNAME:S/guile/guile20/}
PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= ftp://ftp.gnu.org/gnu/guile/
MAINTAINER= root@zta.lk
HOMEPAGE= https://www.gnu.org/software/guile/
COMMENT= Official extension language for the GNU operating system
LICENSE= gnu-lgpl-v3
# Currently, 2.0 is primary.
#GUILE_PREFIX= ${PREFIX}/guile/2.0
GUILE_PREFIX= ${PREFIX}
# guile does not like the --build and --host triplets on NetBSD
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-shared
# not until boehm-gc is threaded
CONFIGURE_ARGS+= --without-threads
CONFIGURE_ARGS+= --prefix=${GUILE_PREFIX}
CONFIGURE_ARGS+= --mandir=${GUILE_PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --infodir=${GUILE_PREFIX}/${PKGINFODIR}
CONFIGURE_ARGS+= SHELL=${CONFIG_SHELL}
# When GUILE_PREFIX is non-default, these must be enabled.
#BUILDLINK_PASSTHRU_DIRS+= ${GUILE_PREFIX}
#LDFLAGS+= ${COMPILER_RPATH_FLAG}${GUILE_PREFIX}/lib
INFO_FILES= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
PKGCONFIG_OVERRIDE+= meta/guile-2.0.pc.in
# known broken: test-loose-ends on NetBSD/current
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24003
TEST_TARGET= check
SUBST_CLASSES+= tools
SUBST_SED.tools+= -e "s,\\((define %pkg-config-program .\\).*\\(.)\\),\\1${PREFIX}/bin/pkg-config\\2,"
SUBST_STAGE.tools= post-build
SUBST_FILES.tools+= meta/guile-config
SUBST_MESSAGE.tools= Fixing path to pkg-config in installed file.
# XXX: less tests would fail if we made libunistring use GNU iconv too
#USE_GNU_ICONV= yes
OPSYSVARS+= GUILE_LIBNAME
GUILE_LIBNAME.Darwin= a
GUILE_LIBNAME.FreeBSD= so.30
GUILE_LIBNAME.*= so.22.8.0
PLIST_SUBST+= GUILE_LIBNAME=${GUILE_LIBNAME}
PRINT_PLIST_AWK+= {gsub(/${GUILE_LIBNAME}/, "$${GUILE_LIBNAME}");}
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24002
post-configure:
${ECHO} '#define FLEXIBLE_ARRAY_MEMBER /**/' >> ${WRKSRC}/config.h
.include "../../devel/gmp/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../textproc/libunistring/buildlink3.mk"
# needs a particular bug fix on NetBSD
BUILDLINK_API_DEPENDS.boehm-gc+= boehm-gc>=7.4.2nb1
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
#.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|