Index: bsd.kde.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.kde.mk,v retrieving revision 1.33 diff -u -r1.33 bsd.kde.mk --- bsd.kde.mk 9 Feb 2004 12:05:31 -0000 1.33 +++ bsd.kde.mk 20 Feb 2004 18:09:51 -0000 @@ -20,6 +20,13 @@ # USE_KDEBASE_VER - Says that the port uses the KDE base. Possible values: # 1, 2, or 3; each specify the major version of KDE to use. # This implies USE_KDELIBS of the appropriate version. +# USE_QMAKE - Says that the port uses the qmake Configurationsystem. +# QMAKE - Path to QMAKE, defaults to ${X11BASE}/bin/qmake +# QMAKEFILE - Name of the QMAKEFILE, defaults to: ${PORTNAME}.pro +# QMAKE_ARGS - Additional Configurationvariables passed to QMAKE, +# defaults to CONFIG+=thread +# QMAKESPEC - Location of the QMAKESPEC files, defaults to +# ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ # # WARNING! ACHTUNG! DANGER WILL ROBINSON! @@ -162,6 +169,20 @@ .endif # defined(USE_QT_VER) # End of USE_QT_VER section + +.if defined(USE_QMAKE) && !target(do-configure) + +QMAKEFILE?= ${PORTNAME}.pro +QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ +QMAKE_ARGS+= -spec ${QMAKESPEC} CONFIG+=thread +QMAKE?= ${LOCALBASE}/bin/qmake + +BUILD_DEPENDS+= qmake:${PORTSDIR}/devel/qmake + +do-configure: + @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} ${QMAKEFILE} + +.endif # USE_QMAKE # Assemble plist from parts # 2002-12-06