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