aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-dpkt/Makefile
blob: 8716ed8395fbf2e70d648857081711696b0c976c (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
# New ports collection makefile for:    py-dpkt
# Date created:     18 Apr 2006
# Whom:         Krzysztof Pawlowski
#
# $FreeBSD$
#

PORTNAME=   dpkt
PORTVERSION=    1.7
CATEGORIES= net python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sbz@FreeBSD.org
COMMENT=    Python fast, simple packet creation / parsing module

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
USE_PYTHON_PREFIX=  yes

EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}

.if !defined(NOPORTEXAMPLES)
post-install:
    @${MKDIR} ${EXAMPLESDIR}
    @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>