2004-10-30 05:12:35 -04:00
|
|
|
# $OpenBSD: qt3.port.mk,v 1.2 2004/10/30 09:12:35 espie Exp $
|
2003-01-05 19:28:14 -05:00
|
|
|
|
|
|
|
MODULES+= gcc3
|
|
|
|
MODGCC3_ARCHES+=sparc64
|
|
|
|
MODGCC3_LANGS+= c++
|
2002-03-04 11:13:04 -05:00
|
|
|
|
|
|
|
# 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
|
2002-12-29 14:24:53 -05:00
|
|
|
MODQT_OVERRIDE_UIC?=Yes
|
2004-10-30 05:12:35 -04:00
|
|
|
MODQT_MT?=Yes
|
2002-03-04 11:13:04 -05:00
|
|
|
MODQT_CONFIGURE_ARGS= --with-qt-includes=${MODQT_INCDIR} \
|
|
|
|
--with-qt-libraries=${MODQT_LIBDIR}
|
2002-12-29 14:24:53 -05:00
|
|
|
_MODQT_SETUP= MOC=${MODQT_MOC} \
|
2002-03-04 11:13:04 -05:00
|
|
|
MODQT_INCDIR=${MODQT_INCDIR} \
|
|
|
|
MODQT_LIBDIR=${MODQT_LIBDIR}
|
2002-12-29 14:24:53 -05:00
|
|
|
.if ${MODQT_OVERRIDE_UIC:L} == "yes"
|
|
|
|
_MODQT_SETUP+= UIC=${MODQT_UIC}
|
|
|
|
.endif
|
2002-03-04 11:13:04 -05:00
|
|
|
|
2004-10-30 05:12:35 -04:00
|
|
|
LIB_DEPENDS+=lib/qt3/qt-mt.3::x11/qt3
|
2002-12-30 21:09:51 -05:00
|
|
|
# may be needed to find plugins
|
|
|
|
MODQT_MOC= ${LOCALBASE}/bin/moc3-mt
|
|
|
|
MODQT_UIC= ${LOCALBASE}/bin/uic3-mt
|
2004-10-30 05:12:35 -04:00
|
|
|
MODQT_QTDIR= ${LOCALBASE}/lib/qt3
|
|
|
|
|
|
|
|
.if ${MODQT_MT:L} != "yes"
|
|
|
|
ERRORS+="Fatal: support QTMT only"
|
2002-12-30 21:09:51 -05:00
|
|
|
.endif
|
|
|
|
|
2002-03-04 11:13:04 -05:00
|
|
|
CONFIGURE_ENV+= ${_MODQT_SETUP}
|
|
|
|
MAKE_ENV+= ${_MODQT_SETUP}
|
|
|
|
MAKE_FLAGS+= ${_MODQT_SETUP}
|