38 lines
1019 B
Makefile
38 lines
1019 B
Makefile
# $OpenBSD: qt3.port.mk,v 1.7 2006/11/20 20:41:00 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
|
|
|
|
MODQT_LIB_DEPENDS=lib/qt3/qt-mt.>=3::x11/qt3
|
|
LIB_DEPENDS+= ${MODQT_LIB_DEPENDS}
|
|
|
|
# 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-30
|
|
|
|
.if ${MODQT_MT:L} != "yes"
|
|
ERRORS+="Fatal: support QTMT only"
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= ${_MODQT_SETUP}
|
|
MAKE_ENV+= ${_MODQT_SETUP}
|
|
MAKE_FLAGS+= ${_MODQT_SETUP}
|