summaryrefslogtreecommitdiffstats
path: root/deskutils/splashsetter/Makefile
blob: 5cf1dfb6ef284525aeb638802e320c4a6f249ee7 (plain)
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
# New ports collection makefile for:	splashsetter
# Date created:				15 Januar 2004
# Whom:					Franz Klammer <klammer@webonaut.com>
#
# $FreeBSD$
#

PORTNAME=	splashsetter
PORTVERSION=	0.6.5.1
CATEGORIES=	deskutils gnome
MASTER_SITES=	http://webonaut.com/distfiles/${PORTNAME}/

MAINTAINER=	klammer@webonaut.com
COMMENT=	Splash screen changer for GNOME

USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_REINPLACE=	yes
USE_PYTHON=	yes
USE_GNOME=	pygnome2 gnomeprefix

do-build:
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${PREFIX}|g' \
		${WRKSRC}/*.py
	@${FIND} ${WRKSRC} -name '*.bak' -delete
	@${FIND} ${WRKSRC} -name '*.orig' -delete
	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
	${MKDIR} ${PREFIX}/share/gnome/pixmaps/${PORTNAME}/splash
	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} \
		${PREFIX}/libexec/${PORTNAME}/
	@${INSTALL_DATA} ${WRKSRC}/*.py* \
		${PREFIX}/libexec/${PORTNAME}/
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
		${PREFIX}/share/gnome/applications/
	@${INSTALL_DATA} ${WRKSRC}/*.svg \
		${PREFIX}/share/gnome/pixmaps/${PORTNAME}/
	@${INSTALL_DATA} ${WRKSRC}/splashsetter_icon.svg \
		${PREFIX}/share/gnome/pixmaps/${PORTNAME}.svg
	@${INSTALL_DATA} ${WRKSRC}/*.png \
		${PREFIX}/share/gnome/pixmaps/${PORTNAME}/splash/
	@${LN} -sf ${PREFIX}/libexec/${PORTNAME}/${PORTNAME} \
		${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud