diff options
author | jlam <jlam@pkgsrc.org> | 2001-10-16 16:24:35 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-10-16 16:24:35 +0000 |
commit | c6388cecc0fd6fe915199cabc023795ca69f2790 (patch) | |
tree | 4313f1de07af1b6def229421bb10edffcf88bfa2 /databases | |
parent | e8836f417bd1028204d72c7b1080676ac60a06fb (diff) | |
download | pkgsrc-c6388cecc0fd6fe915199cabc023795ca69f2790.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/sqlite/buildlink.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/databases/sqlite/buildlink.mk b/databases/sqlite/buildlink.mk new file mode 100644 index 00000000000..146540951b0 --- /dev/null +++ b/databases/sqlite/buildlink.mk @@ -0,0 +1,34 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/16 16:24:35 jlam Exp $ +# +# This Makefile fragment is included by packages that use sqlite. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.sqlite to the dependency pattern +# for the version of sqlite desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(SQLITE_BUILDLINK_MK) +SQLITE_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.sqlite?= sqlite>=2.0.5 +DEPENDS+= ${BUILDLINK_DEPENDS.sqlite}:../../databases/sqlite + +EVAL_PREFIX+= BUILDLINK_PREFIX.sqlite=sqlite +BUILDLINK_PREFIX.sqlite_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.sqlite= include/sqlite.h +BUILDLINK_FILES.sqlite+= lib/libsqlite.* + +BUILDLINK_TARGETS.sqlite= sqlite-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.sqlite} + +pre-configure: ${BUILDLINK_TARGETS.sqlite} +sqlite-buildlink: _BUILDLINK_USE + +.endif # SQLITE_BUILDLINK_MK |