summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-22 10:06:00 +0000
committerjlam <jlam@pkgsrc.org>2002-09-22 10:06:00 +0000
commitc37e7920b5d3a9ed88cebed69a68ed74487207b8 (patch)
treed8b74666f338f7ea651b29f1f6de33f9f7fb9d54 /databases
parent3988cbdbc4291ccffb8b29a7e29847f365c02832 (diff)
downloadpkgsrc-c37e7920b5d3a9ed88cebed69a68ed74487207b8.tar.gz
Create new variables BUILDLINK_CPPFLAGS.<pkg> and BUILDLINK_LDFLAGS.<pkg>
that hold the compiler and linker flags used to find the headers and libraries because these packages install them into non-standard places. These variables may be used in package Makefiles by doing: CPPFLAGS+= ${BUILDLINK_CPPFLAGS.<pkg>} LDFLAGS+= ${BUILDLINK_LDFLAGS.<pkg>}
Diffstat (limited to 'databases')
-rw-r--r--databases/freetds/buildlink2.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/databases/freetds/buildlink2.mk b/databases/freetds/buildlink2.mk
index b7f0a503f30..fd5eb44896f 100644
--- a/databases/freetds/buildlink2.mk
+++ b/databases/freetds/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.3 2002/09/20 00:15:56 grant Exp $
+# $NetBSD: buildlink2.mk,v 1.4 2002/09/22 10:06:01 jlam Exp $
.if !defined(FREETDS_BUILDLINK2_MK)
FREETDS_BUILDLINK2_MK= # defined
@@ -12,6 +12,10 @@ BUILDLINK_PREFIX.freetds_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.freetds= freetds/include/*
BUILDLINK_FILES.freetds+= freetds/lib/*
+BUILDLINK_CPPFLAGS.freetds= -I${BUILDLINK_PREFIX.freetds}/freetds/include
+BUILDLINK_LDFLAGS.freetds= -L${BUILDLINK_PREFIX.freetds}/freetds/lib
+BUILDLINK_LDFLAGS.freetds+= -Wl,-R${BUILDLINK_PREFIX.freetds}/freetds/lib
+
BUILDLINK_TARGETS+= freetds-buildlink
freetds-buildlink: _BUILDLINK_USE