summaryrefslogtreecommitdiff
path: root/x11/qt2-libs/buildlink.mk
blob: 87eb6db2e37c25ec10700d28f360b9c1d1f5bdac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: buildlink.mk,v 1.4 2001/06/26 17:53:35 jlam Exp $
#
# This Makefile fragment is included by packages that use qt2-libs.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.qt2-libs to the dependency pattern
#     for the version of qt2-libs 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(QT2_LIBS_BUILDLINK_MK)
QT2_LIBS_BUILDLINK_MK=	# defined

BUILDLINK_DEPENDS.qt2-libs?=	qt2-libs>=2.2.4
DEPENDS+=	${BUILDLINK_DEPENDS.qt2-libs}:../../x11/qt2-libs

BUILDLINK_PREFIX.qt2-libs=	${X11PREFIX}
BUILDLINK_FILES.qt2-libs=	qt2/bin/moc
BUILDLINK_FILES.qt2-libs+=	qt2/include/*.h
BUILDLINK_FILES.qt2-libs+=	qt2/lib/libqt.*

BUILDLINK_QTDIR=		${BUILDLINK_DIR}/qt2
QTDIR=				${X11PREFIX}/qt2
BUILDLINK_FIX_LIBTOOL_SED+=     -e "s|-L${BUILDLINK_QTDIR}/|-L${QTDIR}/|g"

.include "../../devel/zlib/buildlink.mk"
.include "../../graphics/jpeg/buildlink.mk"
.include "../../graphics/Mesa/buildlink.mk"
.include "../../graphics/mng/buildlink.mk"
.include "../../graphics/png/buildlink.mk"

CONFIGURE_ENV+=			QTDIR="${BUILDLINK_QTDIR}"
CONFIGURE_ENV+=			MOC="${BUILDLINK_QTDIR}/bin/moc"
MAKE_ENV+=			QTDIR="${BUILDLINK_QTDIR}"
MAKE_ENV+=			MOC="${BUILDLINK_QTDIR}/bin/moc"
LDFLAGS+=			-Wl,-R${QTDIR}/lib

BUILDLINK_TARGETS.qt2-libs=	qt2-libs-buildlink
BUILDLINK_TARGETS+=		${BUILDLINK_TARGETS.qt2-libs}

pre-configure: ${BUILDLINK_TARGETS.qt2-libs}
qt2-libs-buildlink: _BUILDLINK_USE

.include "../../mk/bsd.buildlink.mk"

.endif	# QT2_LIBS_BUILDLINK_MK