mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
2df948e335
- Bump PORTREVISION for package change
61 lines
2.1 KiB
Makefile
61 lines
2.1 KiB
Makefile
# Created by: Olivier Duchateau <duchateau.olivier@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= droid-fonts-ttf
|
|
PORTVERSION= 20131024
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-fonts
|
|
MASTER_SITES= LOCAL/sunpoet
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= The Droid typeface family
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
|
|
${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
|
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
|
|
|
NO_BUILD= yes
|
|
USES= tar:xz
|
|
|
|
FONTDIR= lib/X11/fonts/Droid
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PLIST_SUB= FONTDIR=${FONTDIR}
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= FONTDIR=${FONTDIR}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}/
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} *.ttf ${STAGEDIR}${PREFIX}/${FONTDIR}/
|
|
|
|
# maintainer section:
|
|
# https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/
|
|
|
|
MS_DISTFILES= fonts.tar.gz
|
|
MS_FONTS= ${WRKSRC}/.ms-fonts
|
|
MS_MASTER_SITE= https://android.googlesource.com/platform/frameworks/base/+archive/master/data/
|
|
MS_PLIST= ${WRKSRC}/.ms-pkg-plist
|
|
MS_VERSION?= ${PORTVERSION}
|
|
MS_WRKSRC= ${WRKSRC}/tmp
|
|
|
|
maketar: do-clean extract
|
|
${MKDIR} ${MS_WRKSRC}/ ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
|
|
${FETCH_CMD} -o ${MS_WRKSRC}/${MS_DISTFILES} ${MS_MASTER_SITE}${MS_DISTFILES}
|
|
${TAR} -x -C ${MS_WRKSRC}/ -f ${MS_WRKSRC}/${MS_DISTFILES}
|
|
${LS} ${MS_WRKSRC}/Droid*.ttf | ${SED} 's|${MS_WRKSRC}/||' > ${MS_FONTS}
|
|
${MV} ${MS_WRKSRC}/Droid*.ttf ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
|
|
${TAR} -Jc -C ${MS_WRKSRC}/ -f ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${PORTNAME}-${MS_VERSION}/
|
|
sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
|
|
${SED} -i '' -e 's|${PORTVERSION}|${MS_VERSION}|' ${.CURDIR}/Makefile
|
|
cd ${.CURDIR}/ && ${MAKE_CMD} makesum
|
|
${ECHO_MSG} '*** Update from ${PORTVERSION} to ${MS_VERSION} ***'
|
|
# genplist
|
|
${SED} 's|^|%%FONTDIR%%/|' ${MS_FONTS} > ${MS_PLIST}
|
|
${ECHO_CMD} "%%FONTDIR%%/fonts.dir" >> ${MS_PLIST}
|
|
${ECHO_CMD} "%%FONTDIR%%/fonts.scale" >> ${MS_PLIST}
|
|
${ECHO_CMD} "@dirrm %%FONTDIR%%" >> ${MS_PLIST}
|
|
${INSTALL} -m 600 ${MS_PLIST} ${PLIST}
|
|
|
|
.include <bsd.port.mk>
|