aboutsummaryrefslogtreecommitdiffstats
path: root/converters/bsdconv/Makefile
blob: 20dc394602e00dd8cb98dbad9fec19aa4f7ab01e (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
44
45
46
47
48
49
50
51
# Created by: buganini@gmail.com
# $FreeBSD$

PORTNAME=   bsdconv
PORTVERSION=    10.0
CATEGORIES= converters
DISTNAME=   ${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}

MAINTAINER= buganini@gmail.com
COMMENT=    BSD licensed charset/encoding converter library

LICENSE=    BSD

USE_GITHUB= yes
GH_ACCOUNT= buganini
GH_COMMIT=  d4bd6ac

OPTIONS_DEFINE= CHINESE EBCDIC
CHINESE_DESC=   Extra Chinese codecs
EBCDIC_DESC=    EBCDIC codecs

USE_LDCONFIG=   yes

MAKE_ARGS=  PREFIX=${PREFIX}

ALL_TARGET= libbsdconv bsdconv-mktable meta bsdconv-man bsdconv-completion bsdconv codecs_basic
INSTALL_TARGET= installdir install_main install_basic

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCHINESE}
ALL_TARGET+=    codecs_chinese
INSTALL_TARGET+=install_chinese
PLIST_SUB+= CHINESE=""
.else
PLIST_SUB+= CHINESE="@comment "
.endif

.if ${PORT_OPTIONS:MEBCDIC}
ALL_TARGET+=    codecs_ebcdic
INSTALL_TARGET+=install_ebcdic
PLIST_SUB+= EBCDIC=""
.else
PLIST_SUB+= EBCDIC="@comment "
.endif

pre-install:
    ${MKDIR} ${DATADIR}/ ${DATADIR}/from/ ${DATADIR}/inter/ ${DATADIR}/to/

.include <bsd.port.mk>