[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / fonts / adobe-cmaps

File: [cvs.NetBSD.org] / pkgsrc / fonts / adobe-cmaps / Makefile (download)

Revision 1.27, Sat Nov 2 22:24:38 2019 UTC (23 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD
Changes since 1.26: +4 -4 lines

fonts: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.

# $NetBSD: Makefile,v 1.27 2019/11/02 22:24:38 rillig Exp $

DISTNAME=	adobe-cmaps-20060615
CATEGORIES=	fonts print
MASTER_SITES=	# empty

CMAP_FILES=	ac15 ag15 ai0 aj16 aj20 ak12
RKSJ_FILES=	rksj-cmaps
CMAP_DISTFILES=	${CMAP_FILES:S/$/.tar.Z/} ${RKSJ_FILES:S/$/.tar.Z/}
.for f in ${CMAP_DISTFILES}
SITES.${f}+=	ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/
.endfor
DISTFILES+=	${CMAP_DISTFILES}
EXTRACT_ONLY=	${CMAP_DISTFILES}

PDFCORE=		chinese_s chinese_t japanese korean
PDFCORE_DISTFILES=	${PDFCORE:S/$/.zip/}
.for f in ${PDFCORE_DISTFILES}
SITES.${f}+=		http://partners.adobe.com/public/developer/en/pdf/
.endfor
DISTFILES+=		${PDFCORE_DISTFILES}

MAINTAINER=	minskim@NetBSD.org
#HOMEPAGE=	https://partners.adobe.com/public/developer/opentype/
COMMENT=	Adobe CMap files for CJK

DIST_SUBDIR=	${PKGNAME_NOREV}a
NO_CONFIGURE=	yes
NO_BUILD=	yes
USE_TOOLS+=	unzip

RESOURCEDIR=	${PREFIX}/share/Adobe/Resource

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${RESOURCEDIR}
	set -e; \
	for file in ${CMAP_DISTFILES}; do				\
		extract_file="${_DISTDIR}/$${file}"; export extract_file; \
		cd ${DESTDIR}${RESOURCEDIR}; ${EXTRACT_CMD};		\
	done
	set -e; \
	for file in ${PDFCORE}; do					\
		${MKDIR} ${DESTDIR}${RESOURCEDIR}/pdfcorefonts/$${file}; \
		cd ${DESTDIR}${RESOURCEDIR}/pdfcorefonts/$${file};	\
		${UNZIP_CMD} -aaoq ${_DISTDIR}/$${file}.zip;		\
	done
	${INSTALL_DATA_DIR} ${DESTDIR}${RESOURCEDIR}/CMap
	set -e; \
	cd ${DESTDIR}${RESOURCEDIR}; for dir in ${CMAP_FILES}; do	\
		for file in $${dir}/CMap/*; do				\
			${LN} -sf ../$${file} ${DESTDIR}${RESOURCEDIR}/CMap; \
		done;							\
	done
	set -e; \
	cd ${DESTDIR}${RESOURCEDIR}; for dir in ${RKSJ_FILES}; do	\
		for file in $${dir}/*; do				\
			${LN} -sf ../$${file} ${DESTDIR}${RESOURCEDIR}/CMap; \
		done;							\
	done
	set -e; \
	cd ${DESTDIR}${RESOURCEDIR}; for dir in ${PDFCORE}; do		\
		for file in pdfcorefonts/$${dir}/*; do			\
			case $${file} in				\
			*.pdf)	;;					\
			*)						\
				${RM} -f ${DESTDIR}${RESOURCEDIR}/CMap/`${BASENAME} $${file}`; \
				${LN} -sf ../$${file} ${DESTDIR}${RESOURCEDIR}/CMap; \
				;;					\
			esac;						\
		done;							\
	done

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