blob: 2a1ef35f776773b5e24585879fde62f3ac937703 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: Ana
# Date created: 20 Feb 2005
# Whom: Alexander Leidinger <netchild@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ana
PORTVERSION= 0.11
PORTREVISION= 11
CATEGORIES= x11-themes gnome
MASTER_SITES= http://themes.netart.eu.org/
PKGNAMEPREFIX= ${TYPE}-
PKGNAMESUFFIX= -theme
DISTNAME= Ana
MAINTAINER= ports@FreeBSD.org
COMMENT= Clean and white GTK engine
DEPRECATED= No more public distfiles
EXPIRATION_DATE= 2012-10-20
LIB_DEPENDS= rsvg-2:${PORTSDIR}/graphics/librsvg2
RUN_DEPENDS= ${LOCALBASE}/share/icons/Foxtrot/index.theme:${PORTSDIR}/x11-themes/gnome-themes-extras
TYPE?= gtk
THEME_NAME= Ana
WRKSRC= ${WRKDIR}/${DISTNAME}
NO_BUILD= yes
.if ${TYPE} == "gtk"
THEME_DIR= ${PREFIX}/share/themes/${THEME_NAME}
PLIST_SUB+= GTK=""
PLIST_SUB+= GTK20=""
PLIST_SUB+= METACITY="@comment "
USE_GNOME= gtk20
.else # metacity
THEME_DIR= ${PREFIX}/share/themes/${THEME_NAME}
PLIST_SUB+= GTK="@comment "
PLIST_SUB+= GTK20="@comment "
PLIST_SUB+= METACITY=""
USE_GNOME= gnomehier
.endif
PLIST_SUB+= THEME_NAME="${THEME_NAME}"
do-install:
@${MKDIR} ${THEME_DIR}
.if ${TYPE} == "gtk"
cd ${WRKSRC} && ${FIND} gtk-2.0 -name '*[^~]' | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${THEME_DIR}
cd ${WRKSRC} && ${FIND} gtk -name '*[^~]' | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${THEME_DIR}
cd ${WRKSRC} && ${FIND} icons -name '*[^~]' | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${THEME_DIR}
${INSTALL_DATA} ${WRKSRC}/index.theme ${THEME_DIR}
.else
cd ${WRKSRC} && ${FIND} metacity-1 -name '*[^~]' | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${THEME_DIR}
.endif
.include <bsd.port.mk>
|