aboutsummaryrefslogtreecommitdiff
path: root/x11/xcurs/Makefile
blob: 7d5538ab97c3cf6afd81d70a1a696390362cbb17 (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
# New ports collection makefile for:	XCurs
# Date created:				27 Dec 2004
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	xcurs
PORTVERSION=	0.5.1
PORTREVISION=	4
CATEGORIES=	x11 python
MASTER_SITES=	http://freebsd.nsu.ru/distfiles/ \
		#http://varg.dyndns.org/psi/files/xcurs/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An editor for new XFree86/X.Org style full-color cursors properties

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging

USE_GNOME=	pygtk2
USE_PYTHON=	yes
NO_BUILD=	yes

post-patch:
	@${REINPLACE_CMD} -e 's,#!/usr/bin/python,#!/usr/bin/env python,g' \
		${WRKSRC}/parsexcursor.py ${WRKSRC}/xcurs.py
	@${REINPLACE_CMD} -e 's,gtk\.mainquit,gtk\.main_quit,' \
		${WRKSRC}/xcurs.py ${WRKSRC}/gladew.py ${WRKSRC}/filesel.py
	@${REINPLACE_CMD} -e 's,gtk\.mainloop,gtk\.main,' ${WRKSRC}/filesel.py

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/xcurs.py ${PREFIX}/bin/${PORTNAME}
	@${MKDIR} ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/filesel.py ${WRKSRC}/gladew.py \
		${WRKSRC}/parsexcursor.py ${WRKSRC}/xcursorlist.py \
			${PREFIX}/lib/${PORTNAME}
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/xcurs.glade ${DATADIR}

.include <bsd.port.mk>