summaryrefslogtreecommitdiff
path: root/x11
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 /x11
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 'x11')
-rw-r--r--x11/qt2-libs/buildlink2.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11/qt2-libs/buildlink2.mk b/x11/qt2-libs/buildlink2.mk
index 9b4c199532e..13a949ead8d 100644
--- a/x11/qt2-libs/buildlink2.mk
+++ b/x11/qt2-libs/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:40:43 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.3 2002/09/22 10:06:01 jlam Exp $
.if !defined(QT2_LIBS_BUILDLINK2_MK)
QT2_LIBS_BUILDLINK2_MK= # defined
@@ -14,6 +14,9 @@ BUILDLINK_FILES.qt2-libs+= qt2/lib/libqt.*
QTDIR= ${BUILDLINK_PREFIX.qt2-libs}/qt2
+BUILDLINK_CPPFLAGS.qt2-libs= -I${QTDIR}/include
+BUILDLINK_LDFLAGS.qt2-libs= -L${QTDIR}/lib -Wl,-R${QTDIR}/lib
+
.include "../../devel/zlib/buildlink2.mk"
.include "../../graphics/Mesa/buildlink2.mk"
.include "../../graphics/jpeg/buildlink2.mk"