[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / misc / xjdic

File: [cvs.NetBSD.org] / pkgsrc / misc / xjdic / Makefile (download)

Revision 1.22, Sat Apr 24 20:06:35 2021 UTC (14 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, HEAD
Changes since 1.21: +2 -3 lines

xjdic: remove dead download link

# $NetBSD: Makefile,v 1.22 2021/04/24 20:06:35 wiz Exp $

DISTNAME=	xjdic24
PKGNAME=	xjdic-2.4
CATEGORIES=	japanese misc
#MASTER_SITES=	ftp://ftp.monash.edu.au/pub/nihongo/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://nihongo.monash.edu/xjdic/
COMMENT=	Japanese dictionary

DEPENDS+=	edict-[0-9]*:../../misc/edict
DEPENDS+=	kanjidic-[0-9]*:../../misc/kanjidic

.include "options.mk"

WRKSRC=		${WRKDIR}
MESSAGE_SUBST+=	PREFIX=${PREFIX}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	cd ${WRKSRC} ; \
	for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \
	do \
		${INSTALL_PROGRAM} $$i ${DESTDIR}${PREFIX}/bin ; \
	done
	${MV} ${DESTDIR}${PREFIX}/bin/xjdic_sa ${DESTDIR}${PREFIX}/bin/xjdic
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xjdic
	${INSTALL_DATA} \
		${WRKSRC}/kanjstroke \
		${WRKSRC}/radicals.tm \
		${WRKSRC}/radkfile \
		${WRKSRC}/romkana.cnv \
		${WRKSRC}/vconj \
		${DESTDIR}${PREFIX}/share/xjdic
	${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/share/doc/xjdic
	${INSTALL_MAN} \
		${WRKSRC}/xjdic22.WHATSNEW \
		${WRKSRC}/xjdic23.WHATSNEW \
		${WRKSRC}/xjdic24.WHATSNEW \
		${WRKSRC}/xjdic24.inf \
		${WRKSRC}/xjdic24.install \
		${DESTDIR}${PREFIX}/share/doc/xjdic
	${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${LN} -s ${PREFIX}/share/edict/edict ${DESTDIR}${PREFIX}/share/xjdic/edict
	${LN} -s ${PREFIX}/share/kanjidic/kanjidic ${DESTDIR}${PREFIX}/share/xjdic/kanjidic
	${DESTDIR}${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/edict
	${DESTDIR}${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/kanjidic
	${SED} \
		-e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \
		-e '/^kdicfile/s/kanjidic_b/kanjidic/' \
		< ${WRKSRC}/.xjdicrc.skel \
		> ${DESTDIR}${PREFIX}/share/doc/xjdic/.xjdicrc

.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"