1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/textproc/UCD/Makefile
2018-06-07 17:02:51 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= UCD
PORTVERSION= 11.0.0
CATEGORIES= textproc
MASTER_SITES= http://www.unicode.org/Public/zipped/${PORTVERSION}/:src\
ftp://www.unicode.org/Public/zipped/${PORTVERSION}/:src \
http://www.unicode.org/:lic
DISTFILES= ${PORTNAME}.zip:src \
copyright.html:lic
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
EXTRACT_ONLY=
MAINTAINER= thierry@FreeBSD.org
COMMENT= Unicode Character Database
LICENSE= Unicode_License_Agreement
LICENSE_NAME= Unicode License Agreement
LICENSE_FILE= ${_DISTDIR}/copyright.html
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
OPTIONS_DEFINE= HAN
OPTIONS_DEFAULT=HAN
OPTIONS_SUB= yes
HAN_DESC= Unified Han database of Hanzi/Kanji/Hanja Chinese characters
NO_ARCH= yes
NO_BUILD= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHAN}
DISTFILES+= Unihan.zip:src
.endif
DATADIR= ${PREFIX}/share/unicode/ucd
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${STAGEDIR}${DATADIR} && \
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${PORTNAME}.zip ${EXTRACT_AFTER_ARGS})
.if ${PORT_OPTIONS:MHAN}
(cd ${STAGEDIR}${DATADIR} && \
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/Unihan.zip ${EXTRACT_AFTER_ARGS})
# Gucharmap also needs this zipfile
${INSTALL_DATA} ${_DISTDIR}/Unihan.zip ${STAGEDIR}${DATADIR}
.endif
.include <bsd.port.mk>