mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
d2b5596b16
- autogenerate plists - tweak install a bit PR: ports/70285 Submitted by: Tom McLaughlin <tmclaugh@sdf.lonestar.org> (maintainer)
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# New ports collection makefile for: Gnome iconset
|
|
# Date created: 29 Feb 2004
|
|
# Whom: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# Port logic gratuitously stolen from x11-themes/kde-icons-noia by
|
|
# lioux@.
|
|
|
|
PKGNAMEPREFIX= gnome-icons-
|
|
|
|
NO_BUILD= yes
|
|
USE_SIZE= yes
|
|
|
|
REASON= Themes may contain artwork not done by the author. \
|
|
Keep FreeBSD safe if theme author violated copyrights.
|
|
|
|
USE_X_PREFIX= yes
|
|
PLIST= ${WRKDIR}/plist
|
|
|
|
pre-install:
|
|
@${RM} -rf ${PLIST}
|
|
|
|
@cd ${WRKDIR} && ${FIND} * ! -type d | ${SORT} >> ${PLIST}; \
|
|
${SED} -i "" -e "s:^:share/icons/:" ${PLIST}; \
|
|
${FIND} * -type d ! -empty | ${SORT} -r | \
|
|
${SED} -e "s:^:@dirrm share/icons/:" | \
|
|
${GREP} / >> ${PLIST}; \
|
|
${ECHO} "@unexec /bin/rmdir %D/share/icons 2> /dev/null || \
|
|
/usr/bin/true" >> ${PLIST}
|
|
|
|
do-install:
|
|
cd ${WRKDIR} && ${FIND} * -type d ! -empty \
|
|
-exec ${MKDIR} -m 0755 \
|
|
${PREFIX}/share/icons/"{}" \;
|
|
cd ${WRKDIR} && ${FIND} * ! -type d ! -name 'plist' \
|
|
-exec ${INSTALL_DATA} ${WRKDIR}/"{}" \
|
|
${PREFIX}/share/icons/"{}" \;
|