diff options
author | bapt <bapt@FreeBSD.org> | 2014-09-23 19:01:24 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-09-23 19:01:24 +0800 |
commit | af54345522437b4075504d2058c6d0f002320fb2 (patch) | |
tree | d1a2708a13ba12521be4f601bfe68ae84699afe0 /Mk/Uses/webplugin.mk | |
parent | 35535ecef03df9a70f84bec26a242abfa851687a (diff) | |
download | freebsd-ports-gnome-af54345522437b4075504d2058c6d0f002320fb2.tar.gz freebsd-ports-gnome-af54345522437b4075504d2058c6d0f002320fb2.tar.zst freebsd-ports-gnome-af54345522437b4075504d2058c6d0f002320fb2.zip |
Simplify USES=webplugin
Diffstat (limited to 'Mk/Uses/webplugin.mk')
-rw-r--r-- | Mk/Uses/webplugin.mk | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Mk/Uses/webplugin.mk b/Mk/Uses/webplugin.mk index 250909b78f4b..5c4b032c8d0a 100644 --- a/Mk/Uses/webplugin.mk +++ b/Mk/Uses/webplugin.mk @@ -165,18 +165,17 @@ _WEBPLUGIN_LINKFARMS= ${_WEBPLUGIN_APPS} ${_WEBPLUGIN_SLDIRS} WEBPLUGIN_DIR?= ${_WEBPLUGIN_LIBDIR:S,^${LOCALBASE}/,${PREFIX}/,}/${WEBPLUGIN_NAME} PLIST_SUB+= WEBPLUGIN_DIR="${WEBPLUGIN_DIR:S,^${PREFIX}/,,}" +.for d in ${_WEBPLUGIN_LINKFARMS} +.for l in ${WEBPLUGIN_FILES} +PLIST_FILES+= ${d}/${l} +.endfor +.endfor webplugin-post-install: - @${ECHO_CMD} "@cwd ${LOCALBASE}" >> ${TMPPLIST} .for d in ${_WEBPLUGIN_LINKFARMS} - ${INSTALL} -d ${STAGEDIR}${d} + ${MKDIR} ${STAGEDIR}${d} .for l in ${WEBPLUGIN_FILES} ${LN} -sf ${l:S,^,${WEBPLUGIN_DIR}/,} ${STAGEDIR}${d}/ - @${ECHO_CMD} "${d:S,^${LOCALBASE}/,,}/${l:T}" >> ${TMPPLIST} .endfor - @${ECHO_CMD} "@unexec rmdir ${d:S,^${LOCALBASE},%D,} 2>/dev/null || true" >> ${TMPPLIST} .endfor - @${ECHO_CMD} "@unexec rmdir ${_WEBPLUGIN_SLDIR:S,^${LOCALBASE},%D,} 2>/dev/null || true" >> ${TMPPLIST} - @${ECHO_CMD} "@unexec rmdir ${_WEBPLUGIN_LIBDIR:S,^${LOCALBASE},%D,} 2>/dev/null || true" >> ${TMPPLIST} - .endif |