openbsd-ports/x11/qt4/qt4.port.mk
2008-09-03 21:58:17 +00:00

34 lines
1.0 KiB
Makefile

# $OpenBSD: qt4.port.mk,v 1.3 2008/09/03 21:58:17 brad Exp $
# This fragment defines MODQT_* variables to make it easier to substitute
# qt1/qt2/qt3 in a port.
MODQT_OVERRIDE_UIC ?= Yes
MODQT4_OVERRIDE_UIC ?= ${MODQT_OVERRIDE_UIC}
MODQT4_LIBDIR = ${LOCALBASE}/lib/qt4
MODQT_LIBDIR ?= ${MODQT4_LIBDIR}
MODQT4_INCDIR = ${LOCALBASE}/include/X11/qt4
MODQT_INCDIR ?= ${MODQT4_INCDIR}
MODQT4_CONFIGURE_ARGS = --with-qt-includes=${MODQT4_INCDIR} \
--with-qt-libraries=${MODQT4_LIBDIR}
MODQT_CONFIGURE_ARGS ?= ${MODQT4_CONFIGURE_ARGS}
_MODQT4_SETUP = MOC=${MODQT4_MOC} \
MODQT_INCDIR=${MODQT4_INCDIR} \
MODQT_LIBDIR=${MODQT4_LIBDIR}
.if ${MODQT4_OVERRIDE_UIC:L} == "yes"
_MODQT4_SETUP +=UIC=${MODQT4_UIC}
.endif
LIB_DEPENDS += lib/qt4/QtCore::x11/qt4
# may be needed to find plugins
MODQT4_MOC = ${LOCALBASE}/bin/moc4
MODQT_MOC ?= ${MODQT4_MOC}
MODQT4_UIC = ${LOCALBASE}/bin/uic4
MODQT_UIC ?= ${MODQT4_UIC}
MODQT4_QTDIR = ${LOCALBASE}/lib/qt4
MODQT_QTDIR ?= ${MODQT4_QTDIR}
CONFIGURE_ENV +=${_MODQT4_SETUP}
MAKE_ENV += ${_MODQT4_SETUP}
MAKE_FLAGS += ${_MODQT4_SETUP}