diff options
author | jlam <jlam> | 2001-06-20 23:48:49 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-20 23:48:49 +0000 |
commit | c6c65f52dd8136c683cae5acd7aa1486bb3d74ea (patch) | |
tree | 62798262d5cbe1c3d8c199092746dbc297bc8429 /databases | |
parent | e7067f30946309c76a67de91851ce54e1df240d8 (diff) | |
download | pkgsrc-c6c65f52dd8136c683cae5acd7aa1486bb3d74ea.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/freetds/buildlink.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/databases/freetds/buildlink.mk b/databases/freetds/buildlink.mk new file mode 100644 index 00000000000..6473823f62e --- /dev/null +++ b/databases/freetds/buildlink.mk @@ -0,0 +1,33 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/20 23:48:49 jlam Exp $ +# +# This Makefile fragment is included by packages that use freetds. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define FREETDS_REQD to the version of freetds 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(FREETDS_BUILDLINK_MK) +FREETDS_BUILDLINK_MK= # defined + +FREETDS_REQD?= 0.50 +DEPENDS+= freetds>=${FREETDS_REQD}:../../databases/freetds + +BUILDLINK_PREFIX.freetds= ${LOCALBASE} +BUILDLINK_FILES.freetds= freetds/include/* +BUILDLINK_FILES.freetds+= freetds/lib/* +BUILDLINK_FILES.freetds+= freetds/interfaces + +BUILDLINK_TARGETS.freetds= freetds-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.freetds} + +pre-configure: ${BUILDLINK_TARGETS.freetds} +freetds-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # FREETDS_BUILDLINK_MK |