mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Support staging. The vendor's Makefile uses DESTDIR for its own purposes
-- it had to be renamed, because staging uses the same variable (without advertising it).
This commit is contained in:
parent
8f8af7b642
commit
cec608df97
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357233
@ -18,8 +18,6 @@ BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
|
||||
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
||||
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
||||
|
||||
NO_STAGE= yes
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= build
|
||||
USE_XORG= x11
|
||||
@ -29,7 +27,7 @@ MAKE_ARGS+= -j 2
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's/\.Z/.gz/g' \
|
||||
-e 's|DESTDIR =.*|DESTDIR=${LOCALBASE}/lib/X11/fonts/koi8-u-gemini|' \
|
||||
-e 's|DESTDIR =.*|MDESTDIR=${STAGEDIR}${LOCALBASE}/lib/X11/fonts/koi8-u-gemini|' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
|
@ -8,12 +8,13 @@
|
||||
src: $(SRC)
|
||||
@@ -63,6 +62,7 @@
|
||||
install:
|
||||
-mkdir $(DESTDIR)
|
||||
- -mkdir $(DESTDIR)
|
||||
+ -mkdir $(MDESTDIR)
|
||||
- for i in $(ROMAN) $(SLANT) $(BOLD) $(BSLANT) $(FIXED) fonts.dir fonts.alias;\
|
||||
- do install -c -m 444 $$i $(DESTDIR)/$$i; done
|
||||
+ ${BSD_INSTALL_DATA} $(ROMAN) $(SLANT) $(BOLD) $(BSLANT) $(FIXED) \
|
||||
+ fonts.alias $(DESTDIR)/
|
||||
+ mkfontdir $(DESTDIR)
|
||||
+ fonts.alias $(MDESTDIR)/
|
||||
+ mkfontdir $(MDESTDIR)
|
||||
|
||||
package:
|
||||
@@ -75 +75 @@
|
||||
|
Loading…
Reference in New Issue
Block a user