diff options
Diffstat (limited to 'databases/guile-pg/Makefile')
-rw-r--r-- | databases/guile-pg/Makefile | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/databases/guile-pg/Makefile b/databases/guile-pg/Makefile index 96e054aa7fe..4f2a6f6d2d1 100644 --- a/databases/guile-pg/Makefile +++ b/databases/guile-pg/Makefile @@ -1,25 +1,46 @@ -# $NetBSD: Makefile,v 1.18 2004/10/15 14:50:06 tv Exp $ +# $NetBSD: Makefile,v 1.19 2004/12/03 13:41:30 wiz Exp $ # -DISTNAME= guile-pg-0.07 -PKGREVISION= 6 +DISTNAME= guile-pg-0.23 CATEGORIES= databases -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=guile-pg/} +MASTER_SITES= http://www.glug.org/people/ttn/software/guile-pg/ -MAINTAINER= cjones@NetBSD.org -HOMEPAGE= http://guile-pg.sourceforge.net/ +MAINTAINER= gdt@ir.bbn.com +HOMEPAGE= http://www.glug.org/people/ttn/software/guile-pg/ COMMENT= PostgreSQL interface for Guile +# This is wrong if pgsql.buildlink3.mk chooses otherwise. +DEPENDS+= postgresql74-client>=7.4.1:../../databases/postgresql74-client + USE_BUILDLINK3= YES USE_LIBTOOL= YES USE_GNU_TOOLS+= make GNU_CONFIGURE= YES -CONFIGURE_ARGS+= --with-libpq-includes=${PGSQL_PREFIX}/include/postgresql + +TEST_TARGET= check INFO_FILES= guile-pg.info -PGSQL_VERSION_REQD= 73 +# There are several versions of guile; the relevant ones for this +# module are 1.6.x, which is the current FSF version, and ttn-1.4, +# which is a forked version of 1.4 by Thien-Thi Nguyen, the maintainer +# of guile-pg. fsf-1.4 is considered obsolete by nearly everyone. + +# In 1.6 (but not fsf-1.4 or ttn-1.4), binary modules are deprecated. +# guile-pg uses binary modules, and places them and scheme code in +# $GUILE_LIBSITE, which is searched by ttn-1.4, but not by 1.6. The +# simplest nonproblematic solution is to symlink the installed code to +# where 1.6 expects it. We could patch guile-pg to install in 1.6's +# preferred location ${PREFIX}/share/guile/site, but there is a shared +# library which of course cannot go in share. + +post-install: + # guile should make this, but if not + ${INSTALL_DATA_DIR} ${PREFIX}/share/guile/site + cd ${PREFIX}/share/guile/site && ${LN} -sf ../../../lib/guile/site/database . + +PGSQL_VERSION_REQD= 74 -.include "../../lang/guile14/buildlink3.mk" +.include "../../lang/guile/buildlink3.mk" .include "../../mk/pgsql.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |