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

PORTNAME=       kqueue
PORTVERSION=        1.3
PORTREVISION=       1
CATEGORIES=     devel python
MASTER_SITES=       ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dwhite
PKGNAMEPREFIX=      py-
DISTNAME=       PyKQueue-${PORTVERSION}

MAINTAINER=     dwhite@FreeBSD.org

USE_PYTHON=     yes
PLIST_SUB+=     PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400018
FORBIDDEN="requires new kqueue API"
.endif
.if ${OSVERSION} >= 500000 && ${OSVERSION} < 500010
FORBIDDEN="requires new kqueue API"
.endif

do-configure:
    @(cd ${WRKSRC} && \
    make -f Makefile.pre.in boot)

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>