openbsd-ports/x11/qt3/qt3.port.mk

45 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: qt3.port.mk,v 1.9 2007/03/28 23:18:09 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-31
MODQT_PLUGINS ?=${MODQT3_PLUGINS}
CONFIGURE_ENV += ${_MODQT3_SETUP}
MAKE_ENV += ${_MODQT3_SETUP}
MAKE_FLAGS += ${_MODQT3_SETUP}