diff options
author | rh <rh> | 2002-11-02 02:08:01 +0000 |
---|---|---|
committer | rh <rh> | 2002-11-02 02:08:01 +0000 |
commit | 878bd808a9935fa71398e1a35a9a8529145b59be (patch) | |
tree | b40584688eb41390784b08a643208abd9123e3e7 | |
parent | 8daa83fe85f67656b888fdb39e47b5b0f624c1fb (diff) | |
download | pkgsrc-878bd808a9935fa71398e1a35a9a8529145b59be.tar.gz |
Add SCROLLKEEPER_DATADIR definition for use by dependent packages.
-rw-r--r-- | textproc/scrollkeeper/buildlink2.mk | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/textproc/scrollkeeper/buildlink2.mk b/textproc/scrollkeeper/buildlink2.mk index 0714cada9a5..42a5b9e6e9c 100644 --- a/textproc/scrollkeeper/buildlink2.mk +++ b/textproc/scrollkeeper/buildlink2.mk @@ -1,7 +1,7 @@ -# $NetBSD: buildlink2.mk,v 1.1 2002/08/28 16:35:37 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.2 2002/11/02 02:08:01 rh Exp $ .if !defined(SCROLLKEEPER_BUILDLINK2_MK) -SCROLLKEEPER_BUILDLINK2_MK= # defined +SCROLLKEEPER_BUILDLINK2_MK= # defined BUILDLINK_PACKAGES+= scrollkeeper BUILDLINK_DEPENDS.scrollkeeper?= scrollkeeper>=0.2 @@ -9,9 +9,15 @@ BUILDLINK_PKGSRCDIR.scrollkeeper?= ../../textproc/scrollkeeper EVAL_PREFIX+= BUILDLINK_PREFIX.scrollkeeper=scrollkeeper BUILDLINK_PREFIX.scrollkeeper_DEFAULT= ${X11PREFIX} -BUILDLINK_FILES.scrollkeeper+= lib/libscrollkeeper.* +BUILDLINK_FILES.scrollkeeper+= lib/libscrollkeeper.* -BUILDLINK_TARGETS+= scrollkeeper-buildlink +BUILDLINK_TARGETS+= scrollkeeper-buildlink + +.if exists(${LOCALBASE}/libdata/scrollkeeper) +SCROLLKEEPER_DATADIR= ${LOCALBASE}/libdata +.else +SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.scrollkeeper}/var/lib +.endif scrollkeeper-buildlink: _BUILDLINK_USE |