summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2003-01-16 02:20:47 +0000
committeruebayasi <uebayasi@pkgsrc.org>2003-01-16 02:20:47 +0000
commit91be2aa51a5c66e18799fd547553813b948503b4 (patch)
tree9e898755e7f67de2149cf9db88669ad9856ad3d5 /lang
parent4859db6396d631548d4113bef838691bc82ff00c (diff)
downloadpkgsrc-91be2aa51a5c66e18799fd547553813b948503b4.tar.gz
Install into ${LOCALBASE}/guile/1.4 to coexist incompatible later versions.
Bump revision. Many thanks to Johnny Lam for Buildlink related instructions from him.
Diffstat (limited to 'lang')
-rw-r--r--lang/guile14/Makefile6
-rw-r--r--lang/guile14/buildlink2.mk32
2 files changed, 28 insertions, 10 deletions
diff --git a/lang/guile14/Makefile b/lang/guile14/Makefile
index f4fa92bb2b5..984f588fc95 100644
--- a/lang/guile14/Makefile
+++ b/lang/guile14/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2003/01/07 03:56:25 uebayasi Exp $
+# $NetBSD: Makefile,v 1.3 2003/01/16 02:20:47 uebayasi Exp $
DISTNAME= guile-1.4.1
PKGNAME= guile14-1.4.1
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=guile/}
@@ -15,6 +16,7 @@ CONFLICTS= guile-[0-9]*
USE_BUILDLINK2= YES
GNU_CONFIGURE= YES
USE_GMAKE= YES
+NO_MTREE= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
@@ -36,3 +38,5 @@ USE_NCURSES= # termlib not in libtermcap on Solaris, use the ncurses one
.include "../../devel/readline/buildlink2.mk"
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"
+
+PREFIX= ${LOCALBASE}/guile/1.4
diff --git a/lang/guile14/buildlink2.mk b/lang/guile14/buildlink2.mk
index 1874a626a4b..6184ebab9c5 100644
--- a/lang/guile14/buildlink2.mk
+++ b/lang/guile14/buildlink2.mk
@@ -1,28 +1,42 @@
-# $NetBSD: buildlink2.mk,v 1.3 2003/01/07 03:56:26 uebayasi Exp $
+# $NetBSD: buildlink2.mk,v 1.4 2003/01/16 02:20:47 uebayasi Exp $
.if !defined(GUILE14_BUILDLINK2_MK)
GUILE14_BUILDLINK2_MK= # defined
BUILDLINK_PACKAGES+= guile14
-BUILDLINK_DEPENDS.guile14?= guile14>=1.4
+BUILDLINK_DEPENDS.guile14?= guile14>=1.4nb1
BUILDLINK_PKGSRCDIR.guile14?= ../../lang/guile14
+# Put only 'bin/guile' and 'bin/guild-config' at ${BUILDLINK_DIR}
+_GUILE14_BIN= ${BUILDLINK_PREFIX.guile14}/guile/1.4/bin/guile
+_GUILE14_BUILDLINK_BIN= ${BUILDLINK_DIR}/bin/guile
+_GUILE14_CONFIG= ${BUILDLINK_PREFIX.guile14}/guile/1.4/bin/guile-config
+_GUILE14_BUILDLINK_CONFIG= ${BUILDLINK_DIR}/bin/guile-config
+
EVAL_PREFIX+= BUILDLINK_PREFIX.guile14=guile14
+BUILDLINK_PREFIX.guile14= ${LOCALBASE}
BUILDLINK_PREFIX.guile14_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.guile14+= include/guile/*
-BUILDLINK_FILES.guile14+= include/guile-readline/*
-BUILDLINK_FILES.guile14+= include/libguile.h
-BUILDLINK_FILES.guile14+= include/libguile/*
-BUILDLINK_FILES.guile14+= lib/libguile.*
-BUILDLINK_FILES.guile14+= lib/libguilereadline.*
+BUILDLINK_FILES.guile14+= guile/1.4/include/libguile.*
+BUILDLINK_FILES.guile14+= guile/1.4/include/guile/*
+BUILDLINK_FILES.guile14+= guile/1.4/include/guile-readline/*
+BUILDLINK_FILES.guile14+= guile/1.4/include/libguile/*
+BUILDLINK_FILES.guile14+= guile/1.4/lib/libguile.*
+BUILDLINK_FILES.guile14+= guile/1.4/lib/libguilereadline.*
USE_GNU_READLINE= # defined
-.include "../../devel/libtool/buildlink2.mk"
+.include "../../devel/libtool/buildlink2.mk" # For Librtdl
.include "../../devel/readline/buildlink2.mk"
BUILDLINK_TARGETS+= guile14-buildlink
+BUILDLINK_TARGETS+= guile14-buildlink-config
guile14-buildlink: _BUILDLINK_USE
+guile14-buildlink-config:
+ ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_BUILDLINK_MSG} "Linking executable ${_GUILE14_BUILDLINK_BIN}."
+ ${_PKG_SILENT}${_PKG_DEBUG}${LN} -s ${_GUILE14_BIN} ${_GUILE14_BUILDLINK_BIN}
+ ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_BUILDLINK_MSG} "Linking config script ${_GUILE14_BUILDLINK_CONFIG}."
+ ${_PKG_SILENT}${_PKG_DEBUG}${LN} -s ${_GUILE14_CONFIG} ${_GUILE14_BUILDLINK_CONFIG}
+
.endif # GUILE14_BUILDLINK2_MK