summaryrefslogtreecommitdiff
path: root/www/evg/Makefile
blob: c9a0ba6fa3890aa8ad874fcf8bfb0315ec9345f3 (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:	evg
# Date created:		19 April 1999
# Whom:			Dima Sivachenko	<dima@chg.ru>
#
# $FreeBSD$
#

PORTNAME=	evg
PORTVERSION=	1.3.1
CATEGORIES=	www
MASTER_SITES=	ftp://ftp.zurich.ibm.com//pub/sob/www/halloween/ \
		http://www.chg.ru/~dima/
DISTNAME=	evg-1_3_1
EXTRACT_SUFX=	_tar

MAINTAINER=	demon@FreeBSD.org
COMMENT=	Create index pages in HTML for photo galleries

RUN_DEPENDS+=	convert:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS+=	xv:${PORTSDIR}/graphics/xv

USE_PERL5_BUILD=yes
USE_PYTHON=	yes

NO_BUILD=	yes

WRKSRC=		${WRKDIR}/${PKGNAME}

post-patch:
	@ ${PERL} -pi -e 's#/usr/bin/python#${PYTHON_CMD}# ; \
		s#/usr/X11R6#${X11BASE}# ; \
		s#/usr/bin/ee#${X11BASE}/bin/xv#' ${WRKSRC}/evg

do-install:
	@ ${MKDIR} ${PYTHON_SITELIBDIR}
	@ ${INSTALL_DATA} ${WRKSRC}/eclipthtml.py ${PYTHON_SITELIBDIR}
	@ ${INSTALL_SCRIPT} ${WRKSRC}/evg ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${PREFIX}/share/doc/evg
	@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>