aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-Net-Packet/Makefile
blob: 17dbc060a2d0658b422752f8935d583b2c81e3c4 (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
# Created by: GomoR <netpkt@gomor.org>
# $FreeBSD$

PORTNAME=   Net-Packet
DISTVERSION=    3.27
CATEGORIES= net perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= netpkt@gomor.org
COMMENT=    Send and receive frames from layer 2 to layer 7

BUILD_DEPENDS=  p5-Bit-Vector>=6.4:${PORTSDIR}/math/p5-Bit-Vector \
        p5-Class-Gomor>=1.00:${PORTSDIR}/devel/p5-Class-Gomor \
        p5-Net-IPv6Addr>=0.2:${PORTSDIR}/net-mgmt/p5-Net-IPv6Addr \
        p5-Net-Libdnet>=0.01:${PORTSDIR}/net/p5-Net-Libdnet \
        p5-Net-Write>=1.00:${PORTSDIR}/net/p5-Net-Write \
        p5-Net-Pcap>=0.14:${PORTSDIR}/net/p5-Net-Pcap \
        p5-Socket6>=0.19:${PORTSDIR}/net/p5-Socket6
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USES=       perl5
USE_PERL5=  configure
EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

OPTIONS_DEFINE= EXAMPLES

PORTEXAMPLES=   *

.include <bsd.port.options.mk>

post-install:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>