- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-25 11:50:12 +00:00
parent 4ceeeb7b13
commit 1db43fae92
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397811

View file

@ -32,13 +32,7 @@ DBUS_USE= QT4=dbus
DEBUG_QMAKE_ON= CONFIG+=debug DEBUG_QMAKE_ON= CONFIG+=debug
.include <bsd.port.options.mk>
post-patch: post-patch:
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/INSTALLS += translations/d' \
${WRKSRC}/${PORTNAME}.pro
.endif
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
-e 's|lupdate|lupdate-qt4|' \ -e 's|lupdate|lupdate-qt4|' \
-e 's|lrelease|lrelease-qt4|' \ -e 's|lrelease|lrelease-qt4|' \
@ -46,4 +40,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \ @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
${WRKSRC}/src/notifications_dbus.cpp ${WRKSRC}/src/notifications_dbus.cpp
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/INSTALLS += translations/d' \
${WRKSRC}/${PORTNAME}.pro
.include <bsd.port.mk> .include <bsd.port.mk>