summaryrefslogtreecommitdiff
path: root/www/ap-python/Makefile
blob: 7ea87cc0e01b6cc07f28dedda287b6f0cefbc8b9 (plain)
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
# $NetBSD: Makefile,v 1.4 2002/10/25 12:59:09 wiz Exp $
#

DISTNAME=		mod_python-2.7.6
PKGNAME=		ap-python-2.7.6
CATEGORIES=		www
MASTER_SITES=		http://www.modpython.org/dist/
EXTRACT_SUFX=           .tgz

MAINTAINER=		packages@netbsd.org
HOMEPAGE=		http://www.modpython.org/
COMMENT=		Python interpretter embedded into Apache

PLIST_SRC=		${WRKDIR}/.PLIST_SRC

USE_BUILDLINK2=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		PYTHON_BIN=${PYTHONBIN}
MAKE_ENV+=		PYTHONBIN=${PYTHONBIN}
PYTHON_VERSIONS_ACCEPTED=	20

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/ap-mod_python
	( cd ${WRKSRC}; ${PAX} -r -w -s /doc-html/ap-mod_python/ \
		-p e doc-html ${PREFIX}/share/doc/html )
	${ECHO} lib/httpd/mod_python.so >${PLIST_SRC}
	(cd ${PREFIX}; ${FIND} ${PYSITELIB}/mod_python \
		share/doc/html/ap-mod_python \
		-type f -print >>${PLIST_SRC} )
	( cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/mod_python \
		share/doc/html/ap-mod_python \
		-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC} )

.include "../../lang/python/extension.mk"
.include "../../www/apache/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"