[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / fonts / ghostscript-cidfonts-ryumin

Annotation of pkgsrc/fonts/ghostscript-cidfonts-ryumin/Makefile, Revision 1.29

1.29    ! wiz         1: # $NetBSD: Makefile,v 1.28 2020/03/08 16:49:32 wiz Exp $
1.1       mef         2:
                      3: DISTNAME=      ghostscript-cidfonts-ryumin-${GS_VERSION}
                      4: DISTFILES=     # empty
1.29    ! wiz         5: PKGREVISION=   21
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}|'
                     35: .endif
                     36:
                     37: # To edit %%PREFIX%% in cidfmap before installation by SUBST,
                     38: do-build:
                     39: .if !empty(GS_CIDFMAP)
                     40:        ${MKDIR}                  ${WRKSRC}
                     41:        ${CP} files/${GS_CIDFMAP} ${WRKSRC}
                     42: .endif
                     43:
                     44: do-install:
                     45: .if !empty(GS_CIDFMAP)
                     46:        ${INSTALL_DATA} ${WRKSRC}/${GS_CIDFMAP} ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Init/cidfmap
                     47: .endif
1.11      mef        48: #  mainly Ryumin and GothicBBB
1.1       mef        49:        ${INSTALL_DATA} files/${GCR_INSTALL_TYPE}/[GR]*   ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Font
                     50:
                     51: # no need to edit cidfmap
                     52: .if empty(GS_CIDFMAP)
                     53: NO_BUILD=      yes
                     54: .endif
                     55:
                     56: NO_CHECKSUM=   yes
                     57: NO_CONFIGURE=  yes
                     58:
1.11      mef        59: # Set options for ghostscript in case the package are not built yet:
                     60: # But for pbulk, it will override default binary package with this option (?)
                     61: # No. Probably fails because build already done, and stops with FAIL_REASON being checked below.
                     62: ## PKGSRC_MAKE_ENV+=      PKG_OPTIONS.ghostscript+=disable-compile-inits
                     63: ## PKG_OPTIONS.ghostscript+=   disable-compile-inits
                     64: # Either above gives no effect, you need set manually on /etc/mk.conf or so.
                     65: # You may check if this option is enabled or not, by looking the string
                     66: # 'Initialization file are compiled into the executable.' when 'gs --help |grep Init'
                     67: # (String above shown means option is NOT selected).
                     68: .include "../../print/ghostscript/buildlink3.mk"
                     69:
                     70: # Following logic is flaky, for looking at PKG_OPTIONS.gs_type now NOT at build time
1.12      obache     71: .if   !empty(PKG_BUILD_OPTIONS.ghostscript:Mghostscript-agpl)
1.27      rillig     72: .  include     "../../print/ghostscript-agpl/Makefile.common"
                     73: .  if empty(PKG_BUILD_OPTIONS.ghostscript-agpl:Mdisable-compile-inits)
1.11      mef        74: PKG_FAIL_REASON+=      '(agpl) You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time.'
1.27      rillig     75: .  endif
1.11      mef        76: .else
1.27      rillig     77: .  include     "../../print/ghostscript-gpl/Makefile.common"
                     78: .  if empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mdisable-compile-inits)
1.11      mef        79: PKG_FAIL_REASON+=      '(gpl) You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time.'
1.27      rillig     80: .  endif
1.1       mef        81: .endif
                     82:
                     83: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>