Index: games/flightgear/Makefile =================================================================== --- games/flightgear/Makefile (revision 368159) +++ games/flightgear/Makefile (working copy) @@ -21,13 +21,12 @@ libpng15.so:${PORTSDIR}/graphics/png \ libboost_thread.so:${PORTSDIR}/devel/boost-libs \ libfltk.so:${PORTSDIR}/x11-toolkits/fltk \ - libosg.so:${PORTSDIR}/graphics/osg \ - libdbus-1.so:${PORTSDIR}/devel/dbus + libosg.so:${PORTSDIR}/graphics/osg BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ ${LOCALBASE}/lib/libSimGearCore.a:${PORTSDIR}/devel/simgear RUN_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ - ${LOCALBASE}/lib/libSimGearCore.a:${PORTSDIR}/devel/simgear \ - ${LOCALBASE}/share/flightgear/version:${PORTSDIR}/games/flightgear-data + ${LOCALBASE}/lib/libSimGearCore.a:${PORTSDIR}/devel/simgear #\ +# ${LOCALBASE}/share/flightgear/version:${PORTSDIR}/games/flightgear-data USE_XORG= ice sm x11 xext xft xi xinerama xt xmu USE_GL= gl glu glut @@ -37,12 +36,22 @@ DOS2UNIX_REGEX= .*\.(c|h|cxx|cpp|hxx|hpp) CMAKE_ARGS+= -DJPEG_FACTORY:BOOL=ON \ -DENABLE_JS_SERVER:BOOL=ON \ - -DUSE_DBUS:BOOL=ON \ -DSYSTEM_SQLITE:BOOL=ON \ -DFG_DATA_DIR:PATH=${LOCALBASE}/share/${PORTNAME} \ -DCMAKE_INSTALL_MANDIR:PATH=${MANPREFIX}/man \ -DFGCOM_DATA_PATH:PATH=${DATADIR} +OPTIONS_DEFINE= DBUS + +.include + +.if ${PORT_OPTIONS:MDBUS} +LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus +CMAKE_ARGS+= -DUSE_DBUS:BOOL=ON +.else +CMAKE_ARGS+= -DUSE_DBUS:BOOL=OFF +.endif + .include .if ${COMPILER_FEATURES:Mlibc++}