Use SUB_FILES instead of post-patch commands.
PR: ports/97223 Submitted by: Ports Fury
This commit is contained in:
parent
0279b1c35f
commit
d02f4673d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162312
3 changed files with 22 additions and 16 deletions
|
@ -23,8 +23,8 @@ NO_BUILD= yes
|
|||
|
||||
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
|
||||
|
||||
MSG_FILE= ${PKGDIR}/pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= FONTSDIR="${FONTSDIR}"
|
||||
|
||||
#
|
||||
# Local variables
|
||||
|
@ -37,7 +37,6 @@ GS_FONTS_OTHER= ghostscript-fonts-other-6.0.tar.gz
|
|||
.SILENT:
|
||||
|
||||
post-patch:
|
||||
${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
||||
${CP} ${WRKSRC}/fonts/fonts.scale ${WRKSRC}/fonts/fonts.scale.urw
|
||||
${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.scale
|
||||
${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.dir
|
||||
|
@ -47,7 +46,7 @@ post-patch:
|
|||
# Install
|
||||
#
|
||||
|
||||
do-install: install-fonts install-docs
|
||||
do-install: install-fonts install-docs display-message
|
||||
|
||||
install-fonts:
|
||||
${MKDIR} ${FONTSDIR}
|
||||
|
@ -71,4 +70,7 @@ install-docs:
|
|||
${INSTALL_DATA} ${WRKSRC}/fonts/TODO ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
display-message:
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
16
print/gsfonts/files/pkg-message.in
Normal file
16
print/gsfonts/files/pkg-message.in
Normal file
|
@ -0,0 +1,16 @@
|
|||
===========================================================================
|
||||
|
||||
IMPORTANT - READ CAREFULLY: Please read the COPYRIGHT included with these
|
||||
fonts before using. The copyright can be found at %%FONTSDIR%%/COPYING.
|
||||
To use these fonts, follow the instructions below.
|
||||
|
||||
Make sure that the freetype module is loaded. If it is not, add the
|
||||
following line to the "Modules" section of XF86Config:
|
||||
|
||||
Load "freetype"
|
||||
|
||||
Add the following line to the "Files" section of XF86Config:
|
||||
|
||||
FontPath "%%FONTSDIR%%/"
|
||||
|
||||
===========================================================================
|
|
@ -1,12 +0,0 @@
|
|||
IMPORTANT - READ CAREFULLY: Please read the COPYRIGHT included with these fonts
|
||||
before using. The copyright can be found at %%FONTSDIR%%/COPYING. To
|
||||
use these fonts, follow the instructions below.
|
||||
|
||||
Make sure that the freetype module is loaded. If it is not, add the following
|
||||
line to the "Modules" section of XF86Config:
|
||||
|
||||
Load "freetype"
|
||||
|
||||
Add the following line to the "Files" section of XF86Config:
|
||||
|
||||
FontPath "%%FONTSDIR%%/"
|
Loading…
Reference in a new issue