aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-Text-BibTeX/Makefile
blob: 76365ba990f99a6f938d1b3fc2e76393ec1851b4 (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
# Created by: David Bremner <bremner@unb.ca>
# $FreeBSD$

PORTNAME=   Text-BibTeX
PORTVERSION=    0.77
CATEGORIES= textproc perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Manipulate BibTeX files from perl

LICENSE=    ART10 GPLv1
LICENSE_COMB=   dual

BUILD_DEPENDS=  p5-Config-AutoConf>=0.16:devel/p5-Config-AutoConf \
        p5-ExtUtils-LibBuilder>=0.02:devel/p5-ExtUtils-LibBuilder
TEST_DEPENDS=   p5-Capture-Tiny>=0.06:devel/p5-Capture-Tiny

USES=       perl5
USE_PERL5=  modbuild
USE_LDCONFIG=   yes

STRIP_FILES=    bin/dumpnames bin/biblex bin/bibparse \
        ${SITE_ARCH_REL}/auto/Text/BibTeX/BibTeX.so \
        lib/libbtparse.so

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 502300
BUILD_DEPENDS+= p5-Scalar-List-Utils>=0.42:lang/p5-Scalar-List-Utils
RUN_DEPENDS+=   p5-Scalar-List-Utils>=0.42:lang/p5-Scalar-List-Utils
.endif

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC
.endif

post-install:
    ${STRIP_CMD} ${STRIP_FILES:S|^|${STAGEDIR}${PREFIX}/|}

.include <bsd.port.post.mk>