summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-12-08 22:18:12 +0000
committerbapt <bapt@FreeBSD.org>2014-12-08 22:18:12 +0000
commit0d8db46cc26857848c62fd4c9f4e6957470f7332 (patch)
tree320eb25a0313fc4ec2cd91a3ac75b9f121ceab99
parent8fbb38cf53415e9443beb32bfb1701add07f1494 (diff)
downloadFreeBSD-ports-0d8db46cc26857848c62fd4c9f4e6957470f7332.zip
FreeBSD-ports-0d8db46cc26857848c62fd4c9f4e6957470f7332.tar.gz
Avoid usage of @cwd
-rw-r--r--multimedia/avidemux2/Makefile17
-rw-r--r--multimedia/avidemux2/pkg-plist10
2 files changed, 11 insertions, 16 deletions
diff --git a/multimedia/avidemux2/Makefile b/multimedia/avidemux2/Makefile
index 08287f7..dc03461 100644
--- a/multimedia/avidemux2/Makefile
+++ b/multimedia/avidemux2/Makefile
@@ -11,31 +11,36 @@ COMMENT= Simple GUI based video editor
.include "${.CURDIR}/Makefile.common"
+.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MQT4}
+PLIST_FILES+= ${DATADIR}/${PORTNAME}.png
+.endif
+
+.if ${PORT_OPTIONS:MGTK2}
+PLIST_FILES+= ${DESKTOPDIR}/${PORTNAME}.desktop
+.endif
+.if ${PORT_OPTIONS:MQT4}
+PLIST_FILES+= ${DESKTOPDIR}/${PORTNAME}_qt4.desktop
+.endif
+
post-configure: post-configure-common
post-install:
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MQT4}
@${MKDIR} "${STAGEDIR}${DATADIR}"
${INSTALL_DATA} "${WRKSRC}/avidemux_icon.png" "${STAGEDIR}${DATADIR}/${PORTNAME}.png"
- @${ECHO_CMD} "${DATADIR_REL}/${PORTNAME}.png" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec ${RMDIR} %D/${DATADIR_REL} 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
@${MKDIR} "${STAGEDIR}${DESKTOPDIR}"
- @${ECHO_CMD} "@cwd ${DESKTOPDIR}" >> ${TMPPLIST}
.if ${PORT_OPTIONS:MGTK2}
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%DATADIR%%|${DATADIR}|g" \
-e "s|%%NAME%%|${PORTNAME}|g" -e "s|%%API%%|gtk|g" \
< ${FILESDIR}/avidemux2.desktop.in > ${WRKDIR}/${PORTNAME}.desktop
${INSTALL_DATA} "${WRKDIR}/${PORTNAME}.desktop" "${STAGEDIR}${DESKTOPDIR}"
- @${ECHO_CMD} "${PORTNAME}.desktop" >> ${TMPPLIST}
.endif
.if ${PORT_OPTIONS:MQT4}
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%DATADIR%%|${DATADIR}|g" \
-e "s|%%NAME%%|${PORTNAME}|g" -e "s|%%API%%|qt4|g" \
< ${FILESDIR}/avidemux2.desktop.in > ${WRKDIR}/${PORTNAME}_qt4.desktop
${INSTALL_DATA} "${WRKDIR}/${PORTNAME}_qt4.desktop" "${STAGEDIR}${DESKTOPDIR}"
- @${ECHO_CMD} "${PORTNAME}_qt4.desktop" >> ${TMPPLIST}
.endif
- @${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} ${DESKTOPDIR} 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@exec %D/bin/update-desktop-database 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec %D/bin/update-desktop-database 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
diff --git a/multimedia/avidemux2/pkg-plist b/multimedia/avidemux2/pkg-plist
index 4ed0d8d..54c41cb 100644
--- a/multimedia/avidemux2/pkg-plist
+++ b/multimedia/avidemux2/pkg-plist
@@ -21,12 +21,6 @@ share/ADM_scripts/auto/Optical Disc/Video CD.js
share/ADM_scripts/auto/Optical Disc/Super Video CD.js
share/ADM_scripts/auto/Optical Disc/DVD.js
share/ADM_scripts/auto/Apple iPod.js
-@dirrm share/ADM_addons/avsfilter
-@dirrm share/ADM_addons
-@dirrm share/ADM_scripts/auto/Optical Disc
-@dirrm share/ADM_scripts/auto
-@dirrm share/ADM_scripts/video
-@dirrm share/ADM_scripts
%%GTK%%bin/avidemux2_gtk
%%QT4%%bin/avidemux2_qt4
%%GTK%%lib/libADM_UIGtk.so
@@ -51,8 +45,6 @@ share/ADM_scripts/auto/Apple iPod.js
%%NLS%%share/locale/tr/LC_MESSAGES/avidemux.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/avidemux.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/avidemux.mo
-%%NLS%%@dirrmtry share/locale/sr@latin/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/sr@latin
%%QT_NLS%%share/avidemux/i18n/avidemux_ca.qm
%%QT_NLS%%share/avidemux/i18n/avidemux_cs.qm
%%QT_NLS%%share/avidemux/i18n/avidemux_de.qm
@@ -74,5 +66,3 @@ share/ADM_scripts/auto/Apple iPod.js
%%QT_NLS%%share/avidemux/i18n/qt_fr.qm
%%QT_NLS%%share/avidemux/i18n/qt_it.qm
%%QT_NLS%%share/avidemux/i18n/qt_zh_TW.qm
-%%QT_NLS%%@dirrm share/avidemux/i18n
-%%QT_NLS%%@dirrm share/avidemux
OpenPOWER on IntegriCloud