summaryrefslogtreecommitdiff
path: root/x11-themes/gnome-splashscreen-manager/Makefile
blob: bcf4487b4fcede0288b827cd5dd52577976b78f2 (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
# New ports collection makefile for:	gnome-splashscreen-manager
# Date created:		2005-04-15
# Whom:			Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gnome-splashscreen-manager
PORTVERSION=	0.2
PORTREVISION=	6
CATEGORIES=	x11-themes
MASTER_SITES=	http://www.miketech.net/gnome-art/download/
DISTNAME=	gnome-art-${PORTVERSION}

MAINTAINER=	ahze@FreeBSD.org
COMMENT=	Gnome splash screen manager

BUILD_DEPENDS=	gnome-session:${PORTSDIR}/x11/gnome-session \
		ruby-glade-create-template:${PORTSDIR}/devel/ruby-libglade2 \
		${RUBY_SITEARCHLIBDIR}/gnome2.so:${PORTSDIR}/x11/ruby-gnome2 \
		${RUBY_SITEARCHLIBDIR}/gconf2.so:${PORTSDIR}/devel/ruby-gconf2
RUN_DEPENDS=	${BUILD_DEPENDS}

WRKSRC=		${WRKDIR}/gnome-art/${PORTNAME}
USE_RUBY=	yes
USE_RUBY_SETUP=	yes
GSPLASH=	${LOCALBASE}/share/pixmaps/splash
SPLASH_ICON=	${DATADIR}/glade/gnome-graphics.png

post-patch:
	@${SED} -e 's|%%COMMENT%%|${COMMENT}|; \
		s|%%SPLASH_ICON%%|${SPLASH_ICON}|' \
		< ${FILESDIR}/gnome-splashscreen-manager.desktop.in \
		> ${WRKDIR}/gnome-splashscreen-manager.desktop
	cd ${WRKSRC}/lib/gnome-splashscreen-manager/ && \
	for file in `${FIND} ${GSPLASH} -type f` ; do \
		${SED} -e 's|%%SPLASHSCREENS%%|\\n<splash_screen>\\n\\t<name>%%F%%</name>\\n\\t<filename>%%F%%</filename>\\n\\t<description>...</description>\\n\\t<author>?</author>\\n\\t<license>unknown</license>\\n</splash_screen>\\n%%SPLASHSCREENS%%|' \
		< gnome_splashscreen_manager.rb > gnome_splashscreen_manager.rb.bak ; \
		${SED} -e "s|%%F%%|$${file}|g" < gnome_splashscreen_manager.rb.bak > gnome_splashscreen_manager.rb ; \
	done
	@${REINPLACE_CMD} -e 's|%%SPLASHSCREENS%%||' \
		${WRKSRC}/lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb
	@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
		${WRKSRC}/lib/gnome-splashscreen-manager/ui/main_window.rb
	@${FIND} ${WRKSRC} -name '*.bak' -delete

post-install:
	${MKDIR} ${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKDIR}/gnome-splashscreen-manager.desktop ${PREFIX}/share/applications

.include <bsd.port.mk>