summaryrefslogtreecommitdiff
path: root/lang/guile16/Makefile
blob: 20fb7f99745479dd3c84dc54a4e6a402da1783ef (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
# $NetBSD: Makefile,v 1.4 2008/07/14 12:56:07 joerg Exp $

DISTNAME=		guile-1.6.8
PKGREVISION=		2
PKGNAME=		guile16-1.6.8
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_GNU:=guile/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.gnu.org/software/guile/guile.html
COMMENT=		GNU's Ubiquitous Intelligent Language for Extension (1.6.x series)

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		YES
GNU_CONFIGURE_PREFIX=	${PREFIX}/guile/1.6
USE_TOOLS+=		gmake makeinfo
USE_LIBTOOL=		YES
USE_GNU_READLINE=	YES
PTHREAD_AUTO_VARS=	YES
INFO_FILES=		# PLIST

TEST_DIRS=		${WRKSRC}
TEST_TARGET=		check
OWN_DIRS=		${PREFIX}/share/guile/site

BUILDLINK_PASSTHRU_DIRS+=	${GNU_CONFIGURE_PREFIX}

# Without doing this, guile is unable to load its shared modules on
# at least SunOS-5.9/sparc and maybe others.
# Loading of modules can be verified by running
# ${GNU_CONFIGURE_PREFIX}/bin/guile
# and at the guile> prompt:
# (load-extension "libguile-srfi-srfi-13-14-v-1" "scm_init_srfi_13")
LDFLAGS+=			${COMPILER_RPATH_FLAG}${GNU_CONFIGURE_PREFIX}/lib

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Darwin"
CPPFLAGS+=		-Dmacosx

post-patch:
	@${MV} ${WRKSRC}/guile-config/guile-config.in.orig \
	    ${WRKSRC}/guile-config/guile-config.in
.endif

.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"