aboutsummaryrefslogtreecommitdiff
path: root/astro/gmapcatcher/Makefile
blob: a7b8d840cc3e1a7adaad78933cb49991fdb0db91 (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
# New ports collection makefile for:	gmapcatcher
# Date created:		24 March 2010
# Whom:			Kevin Lo <kevlo@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gmapcatcher
PORTVERSION=	0.6.3.0
PORTREVISION=	1
CATEGORIES=	astro geography
MASTER_SITES=	http://gmapcatcher.googlecode.com/files/
DISTNAME=	GMapCatcher-${PORTVERSION}

MAINTAINER=	kevlo@FreeBSD.org
COMMENT=	An offline map viewer

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

USE_PYTHON=	yes
USE_GNOME=	pygtk2

WRKSRC=		${WRKDIR}/${DISTNAME}

post-patch:
	@${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} {} \;

do-build:
	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
	@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/*.py* ${PYTHON_SITELIBDIR}/${PORTNAME}
	@${CP} -R ${WRKSRC}/src ${PYTHON_SITELIBDIR}/${PORTNAME}
	${CHMOD} +x ${PYTHON_SITELIBDIR}/${PORTNAME}/maps.py
	${CHMOD} +x ${PYTHON_SITELIBDIR}/${PORTNAME}/download.py
	${LN} -fs ${PYTHON_SITELIBDIR}/${PORTNAME}/maps.py \
		${PREFIX}/bin/gmapcatcher
	${LN} -fs ${PYTHON_SITELIBDIR}/${PORTNAME}/download.py \
		${PREFIX}/bin/gmapcatcher-download

.include <bsd.port.mk>