36 lines
975 B
Makefile
36 lines
975 B
Makefile
# $OpenBSD: qt3.port.mk,v 1.3 2006/01/02 16:59:37 espie Exp $
|
|
|
|
MODULES+= gcc3
|
|
MODGCC3_ARCHES+=sparc64
|
|
MODGCC3_LANGS+= c++
|
|
|
|
# This fragment uses MODQT_* variables to make it easier to substitute
|
|
# qt1/qt2/qt3 in a port.
|
|
MODQT_LIBDIR= ${LOCALBASE}/lib/qt3
|
|
MODQT_INCDIR= ${LOCALBASE}/include/X11/qt3
|
|
MODQT_OVERRIDE_UIC?=Yes
|
|
MODQT_MT?=Yes
|
|
MODQT_CONFIGURE_ARGS= --with-qt-includes=${MODQT_INCDIR} \
|
|
--with-qt-libraries=${MODQT_LIBDIR}
|
|
_MODQT_SETUP= MOC=${MODQT_MOC} \
|
|
MODQT_INCDIR=${MODQT_INCDIR} \
|
|
MODQT_LIBDIR=${MODQT_LIBDIR}
|
|
.if ${MODQT_OVERRIDE_UIC:L} == "yes"
|
|
_MODQT_SETUP+= UIC=${MODQT_UIC}
|
|
.endif
|
|
|
|
LIB_DEPENDS+=lib/qt3/qt-mt.3::x11/qt3
|
|
# may be needed to find plugins
|
|
MODQT_MOC= ${LOCALBASE}/bin/moc3-mt
|
|
MODQT_UIC= ${LOCALBASE}/bin/uic3-mt
|
|
MODQT_QTDIR= ${LOCALBASE}/lib/qt3
|
|
MODQT_PLUGINS= lib/qt3/plugins-3
|
|
|
|
.if ${MODQT_MT:L} != "yes"
|
|
ERRORS+="Fatal: support QTMT only"
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= ${_MODQT_SETUP}
|
|
MAKE_ENV+= ${_MODQT_SETUP}
|
|
MAKE_FLAGS+= ${_MODQT_SETUP}
|