aboutsummaryrefslogtreecommitdiffstats
path: root/converters/enca/Makefile
blob: 07d07a265f47283cab15903512a3f895c7c9e441 (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
# Created by: Alexandr Kovalenko <never@nevermind.kiev.ua>
# $FreeBSD$

PORTNAME=   enca
PORTVERSION=    1.18
CATEGORIES= converters textproc russian ukrainian
MASTER_SITES=   http://dl.cihar.com/enca/

MAINTAINER= never@nevermind.kiev.ua
COMMENT=    Detect encoding of text files

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  umap:converters/p5-Unicode-Map8
LIB_DEPENDS=    librecode.so:converters/recode
RUN_DEPENDS=    umap:converters/p5-Unicode-Map8

USES=       gmake iconv libtool pathfix pkgconfig tar:xz
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-html-dir=${DOCSDIR}
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} '/SUBDIRS =/s/test//' ${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>