8560be0ed3
Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.10 2023/06/06 12:41:23 riastradh Exp $
|
|
|
|
DISTNAME= unscii-2.1-src
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
|
PKGREVISION= 2
|
|
CATEGORIES= fonts
|
|
MASTER_SITES= http://viznut.fi/unscii/
|
|
|
|
MAINTAINER= nikita@NetBSD.org
|
|
HOMEPAGE= http://viznut.fi/unscii/
|
|
COMMENT= Bitmapped character-art friendly Unicode fonts
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
UNLIMIT_RESOURCES= datasize virtualsize
|
|
|
|
USE_TOOLS+= perl:build
|
|
TOOL_DEPENDS+= bdftopcf-[0-9]*:../../fonts/bdftopcf
|
|
TOOL_DEPENDS+= fontforge-[0-9]*:../../fonts/fontforge
|
|
TOOL_DEPENDS+= p5-Text-CharWidth-[0-9]*:../../textproc/p5-Text-CharWidth
|
|
|
|
REPLACE_PERL+= *.pl
|
|
|
|
INSTALLATION_DIRS= share/fonts/X11/TTF share/fonts/X11/OTF
|
|
INSTALLATION_DIRS+= share/fonts/X11/svg share/fonts/X11/web
|
|
|
|
FONTDIR= ${PREFIX}/share/fonts/X11
|
|
FONTS_DIR.ttf= ${FONTDIR}/TTF
|
|
FONTS_DIR.otf= ${FONTDIR}/OTF
|
|
FONTS_DIR.svg= ${FONTDIR}/svg
|
|
FONTS_DIR.web= ${FONTDIR}/web
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && for i in *.hex; do \
|
|
${INSTALL_DATA} $$i ${DESTDIR}${FONTDIR} ; done
|
|
cd ${WRKSRC} && for i in *.pcf; do \
|
|
${INSTALL_DATA} $$i ${DESTDIR}${FONTDIR} ; done
|
|
cd ${WRKSRC} && for i in *.ttf; do \
|
|
${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.ttf} ; done
|
|
cd ${WRKSRC} && for i in *.otf; do \
|
|
${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.otf} ; done
|
|
cd ${WRKSRC} && for i in *.svg; do \
|
|
${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.svg} ; done
|
|
cd ${WRKSRC} && for i in *.woff; do \
|
|
${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.web} ; done
|
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../graphics/SDL_image/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|