aboutsummaryrefslogtreecommitdiff
path: root/textproc/qstardict
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2012-07-27 11:03:38 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2012-07-27 11:03:38 +0000
commit52e8b487f6dc73b0d0baafc955c59e83ab33c41a (patch)
tree167ee4bd8c4cd737246cf4e2c40f36e42042084e /textproc/qstardict
parentdbe27c5fd4471209e8b77eecbae08f3a2ad57040 (diff)
downloadports-52e8b487f6dc73b0d0baafc955c59e83ab33c41a.tar.gz
ports-52e8b487f6dc73b0d0baafc955c59e83ab33c41a.zip
Notes
Diffstat (limited to 'textproc/qstardict')
-rw-r--r--textproc/qstardict/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/textproc/qstardict/Makefile b/textproc/qstardict/Makefile
index c1c1900da979..f8837c75b243 100644
--- a/textproc/qstardict/Makefile
+++ b/textproc/qstardict/Makefile
@@ -21,27 +21,28 @@ USE_DOS2UNIX= qstardict.pri
DICPATH= ${LOCALBASE}/share/stardict/dic
-OPTIONS= DBUS "Enable D-BUS support" on
+OPTIONS_DEFINE= DBUS
+OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB+= NLS=""
+.else
QMAKE_ARGS+= NO_TRANSLATIONS=1
PLIST_SUB+= NLS="@comment "
-.else
-PLIST_SUB+= NLS=""
.endif
-.if defined(WITHOUT_DBUS)
-QMAKE_ARGS+= NO_DBUS=1
+.if ${PORT_OPTIONS:MDBUS}
+USE_QT4+= dbus
.else
-LIB_DEPENDS+= QtDBus.4:${PORTSDIR}/devel/dbus-qt4
+QMAKE_ARGS+= NO_DBUS=1
.endif
post-patch:
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
${WRKSRC}/qstardict.pri
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e "/^INSTALLS/s|docs||g" \
${WRKSRC}/qstardict.pro
.endif
@@ -58,4 +59,4 @@ post-configure:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>