summaryrefslogtreecommitdiff
path: root/fonts/mozilla-fonts/patches/patch-aa
blob: d362eb74975bb2d87fa7ef6c969e45b2df7dfd6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-aa,v 1.1.1.1 2002/04/09 13:17:24 wiz Exp $

--- Makefile.orig	Sun Sep 24 10:57:57 2000
+++ Makefile
@@ -1,8 +1,8 @@
 # Makefile for mozilla-fonts
 
-DESTDIR	= /usr/local/lib/X11/fonts/Mozilla
+DESTDIR	= $(PREFIX)/lib/X11/fonts/Mozilla
 
-INSTALL = install
+INSTALL = install -c -o root -g wheel
 
 # -------- No user-serviceable parts below --------
 
@@ -111,10 +111,13 @@
 	bdftopcf $< -o $@
 
 install: $(PCFFILES)
-	mkdir -p $(DESTDIR)
+	$(INSTALL) -d $(DESTDIR)
 	@for font in $(PCFFILES) ; do \
 		echo " $(INSTALL) -m 644 $$font $(DESTDIR)/$$font" ; \
 		$(INSTALL) -m 644 $$font $(DESTDIR)/$$font || exit 1 ; \
+		rm -f $(DESTDIR)/$$font.* ; \
+		echo " Compressing $(DESTDIR)/$$font" ; \
+		gzip $(DESTDIR)/$$font ; \
 	done
 	$(INSTALL) -m 644 fonts.alias $(DESTDIR)/fonts.alias
 	cd $(DESTDIR) && mkfontdir