aboutsummaryrefslogtreecommitdiffstats
path: root/devel/oniguruma6/Makefile
blob: 7b9664dbf85441d87e5625cc5fdaf175e30a7fa8 (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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   oniguruma
PORTVERSION=    6.1.2
DISTVERSIONPREFIX=  v
CATEGORIES= devel textproc
PKGNAMESUFFIX=  6

MAINTAINER= rob@theseusnetworking.com
COMMENT=    BSDL Regular Expressions library compatible with POSIX/GNU/Perl

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_GITHUB= yes
GH_ACCOUNT= kkos

OPTIONS_DEFINE= DOCS EXAMPLES

CONFLICTS_INSTALL=  oniguruma[45]-.*

USES=       pathfix autoreconf libtool
PATHFIX_MAKEFILEIN= Makefile.am
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip
USE_LDCONFIG=   yes
TEST_TARGET=    test
TEST_WRKSRC=    ${WRKSRC}/test

post-patch:
    @${REINPLACE_CMD} -e \
        '/^INCLUDES/s|$$(includedir)|| ; \
         s|$$(<)|$$(@).in|' ${WRKSRC}/Makefile.am

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README ${STAGEDIR}${DOCSDIR})
    (cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/sample && ${INSTALL_DATA} *.c ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>