pkgsrc/x11/qt2-libs/buildlink.mk

42 lines
1.4 KiB
Makefile

# $NetBSD: buildlink.mk,v 1.1 2001/06/23 19:28:22 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.*
.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"
BUILDLINK_TARGETS.qt2-libs= qt2-libs-buildlink
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.qt2-libs}
BUILDLINK_FIX_LIBTOOL_SED+= -e "s|-L${BUILDLINK_DIR}/qt2/|-L${X11PREFX}/qt2/|g"
pre-configure: ${BUILDLINK_TARGETS.qt2-libs}
qt2-libs-buildlink: _BUILDLINK_USE
.include "../../mk/bsd.buildlink.mk"
.endif # QT2_LIBS_BUILDLINK_MK