Annotation of pkgsrc/fonts/ghostscript-cidfonts-ryumin/Makefile, Revision 1.39
1.39 ! wiz 1: # $NetBSD: Makefile,v 1.38 2022/05/27 08:26:52 adam Exp $
1.1 mef 2:
3: DISTNAME= ghostscript-cidfonts-ryumin-${GS_VERSION}
4: DISTFILES= # empty
1.39 ! wiz 5: PKGREVISION= 1
1.1 mef 6: CATEGORIES= fonts
7:
1.11 mef 8: MAINTAINER= makoto@ki.nu
1.1 mef 9: COMMENT= Enable Ryumin-Light and GothicBBB for ghostscript
1.11 mef 10: LICENSE= 2-clause-bsd
1.1 mef 11:
1.11 mef 12: # in PLIST, just use PKGVERSION_NOREV for the same value
13: GS_RESOURCEDIR= share/ghostscript/${GS_VERSION}/Resource
1.1 mef 14: WRKSRC= ${WRKDIR}/gcr
15: INSTALLATION_DIRS+= ${GS_RESOURCEDIR}/Font
16: INSTALLATION_DIRS+= ${GS_RESOURCEDIR}/Init
17:
1.11 mef 18: DEPENDS+= ghostscript>=9.05:../../print/ghostscript
1.1 mef 19: DEPENDS+= ghostscript-cidfonts>=20000901nb3:../../fonts/ghostscript-cidfonts
20: BUILD_DEFS+= GS_CIDFMAP
21: # used in options.mk to switch adobe or ttf
22: SUBST_VARS= GCR_INSTALL_TYPE
23:
1.11 mef 24: # Set following two variables and buildlink appropriate fonts
25: # GS_CIDFMAP
26: # GCR_INSTALL_TYPE
1.1 mef 27: .include "options.mk"
28:
29: .if !empty(GS_CIDFMAP)
30: SUBST_CLASSES+= ttf_path
31: SUBST_STAGE.ttf_path= post-build
1.27 rillig 32: SUBST_MESSAGE.ttf_path= Fixing ttf install directory in cidfmap
1.1 mef 33: SUBST_FILES.ttf_path= ${GS_CIDFMAP}
34: SUBST_SED.ttf_path= -e 's|%%PREFIX%%|${PREFIX}|'
1.32 leot 35: SUBST_NOOP_OK.ttf_path= yes
1.1 mef 36: .endif
37:
38: # To edit %%PREFIX%% in cidfmap before installation by SUBST,
39: do-build:
40: .if !empty(GS_CIDFMAP)
41: ${MKDIR} ${WRKSRC}
42: ${CP} files/${GS_CIDFMAP} ${WRKSRC}
43: .endif
44:
45: do-install:
46: .if !empty(GS_CIDFMAP)
47: ${INSTALL_DATA} ${WRKSRC}/${GS_CIDFMAP} ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Init/cidfmap
48: .endif
1.11 mef 49: # mainly Ryumin and GothicBBB
1.1 mef 50: ${INSTALL_DATA} files/${GCR_INSTALL_TYPE}/[GR]* ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Font
51:
52: # no need to edit cidfmap
53: .if empty(GS_CIDFMAP)
54: NO_BUILD= yes
55: .endif
56:
57: NO_CHECKSUM= yes
58: NO_CONFIGURE= yes
59:
1.11 mef 60: # Set options for ghostscript in case the package are not built yet:
61: # But for pbulk, it will override default binary package with this option (?)
62: # No. Probably fails because build already done, and stops with FAIL_REASON being checked below.
63: ## PKGSRC_MAKE_ENV+= PKG_OPTIONS.ghostscript+=disable-compile-inits
64: ## PKG_OPTIONS.ghostscript+= disable-compile-inits
65: # Either above gives no effect, you need set manually on /etc/mk.conf or so.
66: # You may check if this option is enabled or not, by looking the string
67: # 'Initialization file are compiled into the executable.' when 'gs --help |grep Init'
68: # (String above shown means option is NOT selected).
69: .include "../../print/ghostscript/buildlink3.mk"
70:
71: # Following logic is flaky, for looking at PKG_OPTIONS.gs_type now NOT at build time
1.12 obache 72: .if !empty(PKG_BUILD_OPTIONS.ghostscript:Mghostscript-agpl)
1.27 rillig 73: . include "../../print/ghostscript-agpl/Makefile.common"
74: . if empty(PKG_BUILD_OPTIONS.ghostscript-agpl:Mdisable-compile-inits)
1.34 nia 75: PKG_FAIL_REASON+= "(agpl) You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time."
1.27 rillig 76: . endif
1.11 mef 77: .else
1.27 rillig 78: . include "../../print/ghostscript-gpl/Makefile.common"
79: . if empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mdisable-compile-inits)
1.34 nia 80: PKG_FAIL_REASON+= "(gpl) You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time."
1.27 rillig 81: . endif
1.1 mef 82: .endif
83:
84: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>