Update net/p5-POE-Component-ControlPort to version 0.01_2
[dports.git] / x11-themes / gtk-longhorninspirat-theme / Makefile
1 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       longhorninspirat
5 PORTVERSION=    1.0
6 PORTREVISION=   9
7 CATEGORIES=     x11-themes gnome
8 MASTER_SITES=   http://www.users.monornet.hu/linux/gtk2/oldies/
9 PKGNAMEPREFIX=  ${TYPE}-
10 PKGNAMESUFFIX=  -theme
11 DISTNAME=       Longhorn_Inspirat
12
13 MAINTAINER=     danfe@FreeBSD.org
14 COMMENT=        Port of Windows XP theme Longhorn Inspirat
15
16 USES=           tar:bzip2
17 NO_BUILD=       yes
18
19 TYPE?=          gtk
20 THEME_NAME=     "${DISTNAME:S/_/ /}"
21 WRKSRC=         ${WRKDIR}/${THEME_NAME}
22
23 .if ${TYPE} == gtk
24 THEME_DIR=      ${PREFIX}/share/themes/${THEME_NAME}
25 PLIST_SUB+=     GTK20="" METACITY="@comment "
26 USE_GNOME=      gtk20
27 .else   # metacity
28 THEME_DIR=      ${PREFIX}/share/themes/${THEME_NAME}
29 PLIST_SUB+=     GTK20="@comment " METACITY=""
30 .endif
31
32 post-extract:
33         @${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
34         @${RM} -r ${WRKSRC}/gtk-2.0/.Trash-roberto
35
36 do-install:
37         @${MKDIR} ${STAGEDIR}${THEME_DIR}
38         ${INSTALL_DATA} ${WRKSRC}/index.theme ${STAGEDIR}${THEME_DIR}
39 .if ${TYPE} == gtk
40         cd ${WRKSRC} && ${FIND} gtk-2.0 | \
41                 ${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${THEME_DIR}
42 .else
43         cd ${WRKSRC} && ${FIND} metacity-1 | \
44                 ${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${THEME_DIR}
45 .endif
46
47 .include <bsd.port.mk>