45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# $OpenBSD: qt3.port.mk,v 1.10 2008/06/02 17:54:35 naddy 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-32
|
|
MODQT_PLUGINS ?=${MODQT3_PLUGINS}
|
|
|
|
CONFIGURE_ENV += ${_MODQT3_SETUP}
|
|
MAKE_ENV += ${_MODQT3_SETUP}
|
|
MAKE_FLAGS += ${_MODQT3_SETUP}
|