aboutsummaryrefslogtreecommitdiff
path: root/x11-themes/gnome-icons-faenza/Makefile
blob: 2cc79d5da6855ef54ef94f4b82c1de9489adfcb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Pawel Pekala <pawel@FreeBSD.org>
# $FreeBSD$

PORTNAME=	faenza
PORTVERSION=	1.3
CATEGORIES=	x11-themes gnome
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST=	${PORTNAME}-icon-theme
PKGNAMEPREFIX=	gnome-icons-
DISTNAME=	${PROJECTHOST}_${PORTVERSION}

MAINTAINER=	pawel@FreeBSD.org
COMMENT=	Faenza GNOME 2 icon themes

LICENSE=	GPLv3

USES=		zip
NO_BUILD=	yes
INSTALLS_ICONS=	yes

THEMES=		Faenza Faenza-Dark Faenza-Darkest Faenza-Darker \
		Faenza-Ambiance Faenza-Radiance
FAENZA_LIGHT=	Faenza
FAENZA_DARK=	Faenza-Dark
INSTALLDIR=	${STAGEDIR}${PREFIX}/share/icons

do-install:
	@${MKDIR} ${INSTALLDIR}
.for theme in ${THEMES}
	@cd ${INSTALLDIR} && ${TAR} -xf ${WRKDIR}/${theme}.tar.gz

.if ${FAENZA_LIGHT} == ${theme} || ${FAENZA_DARK} == ${theme}
	@cd ${INSTALLDIR}/${theme}/places/scalable && \
	${LN} -sf start-here-gnome.svg start-here.svg && \
	${LN} -sf start-here-gnome-symbolic.svg start-here-symbolic.svg
.for size in 22 24 32 48 64 96
	@cd ${INSTALLDIR}/${theme}/places/${size} && \
	${LN} -sf start-here-gnome.png start-here.png
.endfor
.endif
	@cd ${STAGEDIR}${PREFIX} && ${FIND} share/icons/${theme} ! \
		-type d >> ${TMPPLIST} && \
		${FIND} share/icons/${theme} -type d | ${SORT} -r | \
		${SED} 's|^|@dirrm |' >> ${TMPPLIST}
.endfor

.include <bsd.port.mk>