aboutsummaryrefslogtreecommitdiff
path: root/misc/gnomehier/Makefile
blob: e8f752114d5232f3bba8d5aca9329d2b804193f1 (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
# New ports collection makefile for:	gnomehier
# Date created:				2 July 2002
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gnomehier
PORTVERSION=	1.0
PORTREVISION=	20
CATEGORIES=	misc gnome
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	A utility port that creates the GNOME directory tree

NO_BUILD=	yes
NO_WRKSUBDIR=	yes
PLIST?=		${WRKDIR}/pkg-plist

USE_X_PREFIX=	yes

do-fetch:
	@${DO_NADA}

pre-install:
	@${RM} -f ${PLIST}
	@${TOUCH} -f ${PLIST}
	@${CAT} ${FILESDIR}/dirlist | ${SORT} | ${SED} -e \
		's|$$|/.keep_me|' >> ${PLIST}
	@${ECHO_CMD} "etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml" \
		>> ${PLIST}
	@${ECHO_CMD} "etc/gconf/gconf.xml.defaults/apps/%gconf.xml" \
		>> ${PLIST}
	@${CAT} ${FILESDIR}/dirlist | ${SORT} -r | ${SED} -e \
		's|^|@dirrm |' >> ${PLIST}

do-install:
	@for dir in `${CAT} ${FILESDIR}/dirlist`; \
	do \
		${MKDIR} ${PREFIX}/$${dir}; \
		${TOUCH} ${PREFIX}/$${dir}/.keep_me; \
	done
	${TOUCH} -f ${PREFIX}/etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml
	${TOUCH} -f ${PREFIX}/etc/gconf/gconf.xml.defaults/apps/%gconf.xml
	${CHGRP} games ${PREFIX}/share/gnome/games
	${CHMOD} g=rwXs ${PREFIX}/share/gnome/games

.include <bsd.port.mk>