aboutsummaryrefslogtreecommitdiff
path: root/devel/py-optik/Makefile
blob: a3e537a69a8bcadebf03b410fd0a37f910c456a7 (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
# ex:ts=8
# New ports collection makefile for:	py-optik
# Date created:			Nov 13, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	optik
PORTVERSION=	1.4
PORTREVISION=	0
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	Optik-${PORTVERSION}

MAINTAINER=	AlanE@FreeBSD.org

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

.if !defined(NOPORTDOCS)
DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+=	DOCSDIR=${DOCSDIR:S@^${PREFIX}/@@}
post-install::
	@${MKDIR} ${DOCSDIR}/test
	${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/test/* ${DOCSDIR}/test
.endif
EXAMPLES=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+=	EXAMPLES=${EXAMPLES:S@^${PREFIX}/@@}
post-install::
	@${MKDIR} ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLES}

.include <bsd.port.mk>