aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-kqueue/Makefile
blob: 002c4dd9a13d3361308d08e4fea1d977217f1e19 (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
44
45
46
47
48
# Ports collection Makefile for:    PyKQueue
# Date created:             05/23/2000
# Whom:                 dwhite@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=       kqueue
PORTVERSION=        1.4
PORTREVISION=       2
CATEGORIES=     devel python
MASTER_SITES=       http://ox.eicat.ca/~dgilbert/files/
PKGNAMEPREFIX=      ${PYTHON_PKGNAMEPREFIX}
DISTNAME=       PyKQueue-${PORTVERSION}
EXTRACT_SUFX=       .tbz

MAINTAINER=     ports2@dclg.ca
COMMENT=        Python interface to kqueue(2) and kevent(2) system calls

USE_BZIP2=      yes
USE_PYTHON=     yes
FILES=          kqsyscallmodule.so KQueue.py KQueue.pyc
PLIST_FILES=        ${FILES:S+^+%%PYTHON_SITELIBDIR%%/+g}
MAKE_ENV=       MAINCC=${CC}

.include <bsd.port.pre.mk>

post-patch:
.if ${PYTHON_REL} >= 230
    @${REINPLACE_CMD} -e 's,@DEFS@,,' ${WRKSRC}/Makefile.pre.in
.endif

do-configure:
    @(cd ${WRKSRC} && \
    make -f Makefile.pre.in boot)
    ${GREP} '^BLDSHARED' ${PYTHON_LIBDIR}/config/Makefile >> \
        ${WRKSRC}/Makefile

post-build:
    ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
    ${MKDIR} ${PYTHON_SITELIBDIR}
    ${INSTALL_DATA} ${WRKSRC}/kqsyscallmodule.so ${PYTHON_SITELIBDIR}/
    ${INSTALL_DATA} ${WRKSRC}/KQueue.py ${PYTHON_SITELIBDIR}/
    ${INSTALL_DATA} ${WRKSRC}/KQueue.pyc ${PYTHON_SITELIBDIR}/

.include <bsd.port.post.mk>