diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/guile14/buildlink2.mk | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/lang/guile14/buildlink2.mk b/lang/guile14/buildlink2.mk index 20dbe93768b..ba410b960ce 100644 --- a/lang/guile14/buildlink2.mk +++ b/lang/guile14/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.7 2003/01/19 04:38:01 uebayasi Exp $ +# $NetBSD: buildlink2.mk,v 1.8 2003/01/24 04:22:16 jlam Exp $ .if !defined(GUILE14_BUILDLINK2_MK) GUILE14_BUILDLINK2_MK= # defined @@ -7,15 +7,16 @@ BUILDLINK_PACKAGES+= guile14 BUILDLINK_DEPENDS.guile14?= guile14>=1.4nb2 BUILDLINK_PKGSRCDIR.guile14?= ../../lang/guile14 -EVAL_PREFIX+= BUILDLINK_PREFIX.guile14=guile14 -BUILDLINK_PREFIX.guile14= ${LOCALBASE} -BUILDLINK_PREFIX.guile14_DEFAULT= ${LOCALBASE} -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.* +EVAL_PREFIX+= GUILE14_PREFIX=guile14 +GUILE14_PREFIX_DEFAULT= ${LOCALBASE}/guile/1.4 +BUILDLINK_PREFIX.guile14= ${LOCALBASE} +GUILE14_SUBDIR= ${GUILE14_PREFIX:S/^${BUILDLINK_PREFIX.guile14}\///} +BUILDLINK_FILES.guile14+= ${GUILE14_SUBDIR}/include/libguile.* +BUILDLINK_FILES.guile14+= ${GUILE14_SUBDIR}/include/guile/* +BUILDLINK_FILES.guile14+= ${GUILE14_SUBDIR}/include/guile-readline/* +BUILDLINK_FILES.guile14+= ${GUILE14_SUBDIR}/include/libguile/* +BUILDLINK_FILES.guile14+= ${GUILE14_SUBDIR}/lib/libguile.* +BUILDLINK_FILES.guile14+= ${GUILE14_SUBDIR}/lib/libguilereadline.* USE_GNU_READLINE= # defined @@ -24,14 +25,34 @@ USE_GNU_READLINE= # defined BUILDLINK_TARGETS+= guile14-buildlink BUILDLINK_TARGETS+= guile14-buildlink-bin +BUILDLINK_TARGETS+= guile14-buildlink-la + +GUILE14= ${GUILE14_PREFIX}/bin/guile +GUILE14_CONFIG= ${GUILE14_PREFIX}/bin/guile-config +GUILE14_SNARF= ${GUILE14_PREFIX}/bin/guile-snarf guile14-buildlink: _BUILDLINK_USE # Put only bin/guile, bin/guile-config, and bin/guile-snarf into # ${BUILDLINK_DIR}/bin. Other files (headers/libraries) are put in # ${BUILDLINK_DIR}/guile/1.4/... +# guile14-buildlink-bin: ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_BUILDLINK_MSG} "Linking Guile executables." - ${_PKG_SILENT}${_PKG_DEBUG}${LN} -s ${BUILDLINK_PREFIX.guile14}/guile/1.4/bin/guile* ${BUILDLINK_DIR}/bin + ${_PKG_SILENT}${_PKG_DEBUG}${LN} -s ${GUILE14_PREFIX}/bin/guile* ${BUILDLINK_DIR}/bin + +REPLACE_BUILDLINK_SED+= \ + -e "s|${BUILDLINK_DIR}/bin/guile|${GUILE14_PREFIX}/bin/guile|g" + +guile14-buildlink-la: + ${_PKG_SILENT}${_PKG_DEBUG} \ + for file in libguile.la libguilereadline.la; do \ + src="${GUILE14_PREFIX}/lib/$$file"; \ + dest="${BUILDLINK_DIR}/lib/$$file"; \ + if [ -f $$src ]; then \ + ${ECHO_BUILDLINK_MSG} "Linking $$src to $$dest."; \ + ${LN} -sf $$src $$dest; \ + fi; \ + done .endif # GUILE14_BUILDLINK2_MK |