341b89ce47fa13a36b8a2db6009851d5ca8f0aae
[pkgsrc.git] / databases / guile-pg / Makefile
1 # $NetBSD: Makefile,v 1.38 2009/05/20 00:58:09 wiz Exp $
2 #
3
4 DISTNAME=       guile-pg-0.37
5 PKGREVISION=    1
6 CATEGORIES=     databases
7 MASTER_SITES=   http://www.gnuvola.org/software/guile-pg/
8
9 MAINTAINER=     gdt@NetBSD.org
10 HOMEPAGE=       http://www.gnuvola.org/software/guile-pg/
11 COMMENT=        PostgreSQL interface for Guile
12 LICENSE=        gnu-gpl-v3
13
14 USE_LIBTOOL=    YES
15 USE_TOOLS+=     gmake
16 GNU_CONFIGURE=  YES
17 INFO_FILES=     # PLIST
18
19 TEST_TARGET=    check
20
21 # There are several versions of guile; the relevant ones for this
22 # module are 1.6.x, which is the current FSF version, and ttn-1.4,
23 # which is a forked version of 1.4 by Thien-Thi Nguyen, the maintainer
24 # of guile-pg.  fsf-1.4 is considered obsolete by nearly everyone.
25
26 # In 1.6 (but not fsf-1.4 or ttn-1.4), binary modules are deprecated.
27 # guile-pg uses binary modules, and places them and scheme code in
28 # $GUILE_LIBSITE, which is searched by ttn-1.4, but not by 1.6.  The
29 # simplest nonproblematic solution is to symlink the installed code to
30 # where 1.6 expects it.  We could patch guile-pg to install in 1.6's
31 # preferred location ${PREFIX}/share/guile/site, but there is a shared
32 # library which of course cannot go in share.
33
34 SITE=${PREFIX}/guile/1.6/share/guile/site
35
36 post-install:
37         # guile should make this, but if not
38         ${INSTALL_DATA_DIR} ${SITE}
39         cd ${SITE} && ${LN} -sf ../../../../../lib/guile/site/database .
40
41 .include "../../lang/guile16/buildlink3.mk"
42 .include "../../mk/pgsql.buildlink3.mk"
43 .include "../../mk/bsd.pkg.mk"