summaryrefslogtreecommitdiff
path: root/converters/smbchartool/Makefile
blob: 56ed6064f6b0c40a79f1a4e5661be98196ac6095 (plain)
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
# $NetBSD: Makefile,v 1.12 2016/07/09 06:37:57 wiz Exp $
#

DISTNAME=	smbchartool-2.3a
PKGREVISION=	8
CATEGORIES=	converters japanese
MASTER_SITES=	ftp://ftp.samba.gr.jp/pub/samba-jp/tool/
DIST_SUBDIR=	smbchartool-2.3anb5

PATCH_SITES=	http://www.miraclelinux.com/technet/samba30/download/
PATCHFILES=	smbchartool-2.3a_3.0a.diff.gz
PATCH_DIST_STRIP= -p1

MAINTAINER=	tech-pkg-ja@jp.NetBSD.org
HOMEPAGE=	http://www.miraclelinux.com/technet/samba30/migration.html
COMMENT=	File name conversion tool for Samba

DEPENDS+=	jcode-perl>=2.13:../../converters/jcode-perl
DEPENDS+=	p5-Text-Iconv>=1.4:../../converters/p5-Text-Iconv

USE_TOOLS+=	perl:run
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/smbchartool
REPLACE_PERL=	capecho hexecho smbfnconv

INSTALLATION_DIRS=	bin share/doc/smbchartool

do-install:
.for f in ${REPLACE_PERL}
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin
.endfor
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/smbchartool
	${INSTALL_DATA} ${WRKSRC}/dot.bashrc.example \
		${DESTDIR}${PREFIX}/share/doc/smbchartool/dot.profile

.include "../../mk/bsd.pkg.mk"