019e335a9c
files depending on the KDE version they were meant for. Tend for these 2 situations
54 lines
1.3 KiB
Text
54 lines
1.3 KiB
Text
# New ports collection makefile for: support skeleton Makefile
|
|
# Date created: Thu Feb 19 23:17:56 UTC 2004
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
CATEGORIES?= x11-themes kde
|
|
PKGNAMEPREFIX= kde-icons-
|
|
DIST_SUBDIR= KDE
|
|
|
|
MAINTAINER?= lioux@FreeBSD.org
|
|
COMMENT?= KDE iconset theme
|
|
|
|
USE_REINPLACE= yes
|
|
NO_BUILD= yes
|
|
PLIST_SUB+= DIRNAME="${PORT_SHAREDIR}"
|
|
|
|
# default installation directory
|
|
PORT_SHAREDIR?= ${DISTNAME}
|
|
|
|
.ifndef(WITHOUT_RESTRICTIONS)
|
|
RESTRICTED?= It may contain iconic, visual, graphical or other\
|
|
elements that may not be distributed without the\
|
|
consent of either the trademark or the patent holder
|
|
|
|
NO_PACKAGE?= ${RESTRICTED}
|
|
.endif
|
|
|
|
INDEX_FILES= index.desktop index.theme
|
|
|
|
post-patch:
|
|
# correctly inherits crystal per default
|
|
.for file in ${INDEX_FILES}
|
|
@if [ -f "${WRKSRC}/${file}" ]; then \
|
|
${REINPLACE_CMD} -E \
|
|
-e 's|
|
|
||' \
|
|
-e 's|^Inherits.*$$|Inherits=crystalsvg|' \
|
|
"${WRKSRC}/${file}" ; \
|
|
fi
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/share/icons/${PORT_SHAREDIR}
|
|
# create dirs
|
|
@cd ${WRKSRC} ; ${FIND} . -type d ! -empty \
|
|
-exec ${MKDIR} -m 0755 \
|
|
${PREFIX}/share/icons/${PORT_SHAREDIR}/"{}" \;
|
|
# copy files
|
|
@cd ${WRKSRC} ; ${FIND} . -type f \
|
|
-exec ${INSTALL_DATA} ${WRKSRC}/"{}" \
|
|
${PREFIX}/share/icons/${PORT_SHAREDIR}/"{}" \;
|
|
|
|
.include <bsd.port.mk>
|