blob: 1fd401f7adcf8c2736be20b06c117a655b2cf2d8 (
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
|
# New ports collection makefile for: imgv
# Date created: 2007-02-03
# Whom: Simon Olofsson <simon@olofsson.de>
#
# $FreeBSD$
#
PORTNAME= imgv
PORTVERSION= 3.1.5
PORTREVISION= 3
CATEGORIES= graphics python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= simon@olofsson.de
COMMENT= A unique and feature rich Image Viewer
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
USE_PYTHON= 2.2+
NO_BUILD= yes
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' ${WRKSRC}/gl.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/imgv.py ${PREFIX}/bin/imgv
${RM} -f ${WRKSRC}/imgv.py ${WRKSRC}/setup.py
${MKDIR} ${DATADIR}/data
${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data
${MKDIR} ${PYTHON_SITELIBDIR}/imgv/
${TOUCH} ${PYTHON_SITELIBDIR}/imgv/__init__.py
${INSTALL_DATA} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/imgv/
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/imgv/
.include <bsd.port.post.mk>
|