9634d7d235
MODQT_* values. This makes it possible to include both qt3 and qt4, as long as one is very careful in choosing the right variables, without any change for the existing qt3-only, qt4-only ports. We don't bother with qt and qt2 as they are mostly end-of-life.
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# $OpenBSD: qt3.port.mk,v 1.8 2007/03/23 16:28:52 espie Exp $
|
|
|
|
MODULES+= gcc3
|
|
MODGCC3_ARCHES+=sparc64
|
|
MODGCC3_LANGS+= c++
|
|
|
|
# This fragment defines MODQT_* variables to make it easier to substitute
|
|
# qt1/qt2/qt3 in a port.
|
|
|
|
MODQT_OVERRIDE_UIC ?= Yes
|
|
MODQT3_OVERRIDE_UIC ?= ${MODQT_OVERRIDE_UIC}
|
|
|
|
MODQT3_LIBDIR = ${LOCALBASE}/lib/qt3
|
|
MODQT_LIBDIR ?= ${MODQT3_LIBDIR}
|
|
MODQT3_INCDIR = ${LOCALBASE}/include/X11/qt3
|
|
MODQT_INCDIR ?= ${MODQT3_INCDIR}
|
|
MODQT3_CONFIGURE_ARGS = --with-qt-includes=${MODQT3_INCDIR} \
|
|
--with-qt-libraries=${MODQT3_LIBDIR}
|
|
MODQT_CONFIGURE_ARGS ?= ${MODQT3_CONFIGURE_ARGS}
|
|
_MODQT3_SETUP = MOC=${MODQT3_MOC} \
|
|
MODQT_INCDIR=${MODQT3_INCDIR} \
|
|
MODQT_LIBDIR=${MODQT3_LIBDIR}
|
|
.if ${MODQT3_OVERRIDE_UIC:L} == "yes"
|
|
_MODQT3_SETUP +=UIC=${MODQT3_UIC}
|
|
.endif
|
|
_MODQT_SETUP ?= ${MODQT3_SETUP}
|
|
|
|
MODQT3_LIB_DEPENDS = lib/qt3/qt-mt.>=3::x11/qt3
|
|
MODQT_LIB_DEPENDS ?= ${MODQT3_LIB_DEPENDS}
|
|
LIB_DEPENDS += ${MODQT3_LIB_DEPENDS}
|
|
|
|
# may be needed to find plugins
|
|
MODQT3_MOC = ${LOCALBASE}/bin/moc3-mt
|
|
MODQT_MOC ?= ${MODQT3_MOC}
|
|
MODQT3_UIC = ${LOCALBASE}/bin/uic3-mt
|
|
MODQT_UIC ?= ${MODQT3_UIC}
|
|
MODQT3_QTDIR = ${LOCALBASE}/lib/qt3
|
|
MODQT_QTDIR ?= ${MODQT3_QTDIR}
|
|
MODQT3_PLUGINS =lib/qt3/plugins-30
|
|
MODQT_PLUGINS ?=${MODQT3_PLUGINS}
|
|
|
|
CONFIGURE_ENV += ${_MODQT3_SETUP}
|
|
MAKE_ENV += ${_MODQT3_SETUP}
|
|
MAKE_FLAGS += ${_MODQT3_SETUP}
|