source: trunk/dports/gnustep/ArtResources/files/patch-Makefile @ 69458

Last change on this file since 69458 was 26261, checked in by yves@…, 13 years ago

Remove deprecated ports and prepare for gnutep-make-2.0

File size: 2.6 KB
Line 
1--- Makefile.orig       2007-04-27 21:08:11.000000000 -0400
2+++ Makefile    2007-04-27 21:09:05.000000000 -0400
3@@ -45,11 +45,11 @@
4 INSTALL_BLURB_4 = \
5 "To reset the default fonts for a user, run '$(MAKE) default-default' as that user."
6 
7-
8+include $(GNUSTEP_MAKEFILES)/common.make
9 
10 .PHONY: all help
11 
12-all:: check_GNUstep_sh_sourced
13+all::
14        @(echo "-art resource package version 0.1  Alexander Malmberg <alexander@malmberg.org>"; \
15        echo; \
16        echo "This package contains:"; \
17@@ -74,7 +74,7 @@
18        echo "but you can also run '$(MAKE) help' for more extensive information."; \
19        )
20 
21-help:: check_GNUstep_sh_sourced
22+help::
23        @(echo "Use:"; \
24        echo; \
25        echo "$(MAKE) install"; \
26@@ -94,7 +94,7 @@
27        echo "standard make commands."; \
28        )
29 
30-install:: check_GNUstep_sh_sourced install-vera install-freefonts
31+install::  install-vera install-freefonts
32        @(if ! ($(MAKE) -C mknfonts && $(MAKE) -C mknfonts install); then \
33                echo; \
34                echo "The automatic install of mknfonts failed. To do it manually,"; \
35@@ -113,49 +113,40 @@
36        )
37 
38 
39-FONT_DEST = $(GNUSTEP_LOCAL_ROOT)/Library/Fonts
40+FONT_DEST = $(GNUSTEP_LIBRARY)/Fonts
41 
42 
43 .PHONY: install-vera install-freefonts
44 
45-install-vera:: check_GNUstep_sh_sourced
46+install-vera::
47        @echo Installing the Vera fonts...
48        @./install-nfont Vera\ Sans.nfont $(FONT_DEST) FoO
49        @./install-nfont Vera\ Serif.nfont $(FONT_DEST) FoO
50        @./install-nfont Vera\ Sans\ Mono.nfont $(FONT_DEST) FoO
51 
52-install-freefonts:: check_GNUstep_sh_sourced
53+install-freefonts::
54        @echo Installing the FreeFonts...
55        @./install-nfont FreeSans.nfont $(FONT_DEST) FoO
56        @./install-nfont FreeSerif.nfont $(FONT_DEST) FoO
57        @./install-nfont FreeMono.nfont $(FONT_DEST) FoO
58       
59 
60-vera-default:: check_GNUstep_sh_sourced
61+vera-default::
62        defaults write NSGlobalDomain NSFont BitstreamVeraSans-Roman
63        defaults write NSGlobalDomain NSBoldFont BitstreamVeraSans-Bold
64        defaults write NSGlobalDomain NSUserFixedPitchFont BitstreamVeraSansMono-Roman
65 
66-freefonts-default:: check_GNUstep_sh_sourced
67+freefonts-default::
68        defaults write NSGlobalDomain NSFont FreeSans
69        defaults write NSGlobalDomain NSBoldFont FreeSansBold
70        defaults write NSGlobalDomain NSUserFixedPitchFont FreeMono
71 
72-default-default:: check_GNUstep_sh_sourced
73+default-default::
74        defaults delete NSGlobalDomain NSFont
75        defaults delete NSGlobalDomain NSBoldFont
76        defaults delete NSGlobalDomain NSUserFixedPitchFont
77 
78 
79-.PHONY: check_GNUstep_sh_sourced
80-ifeq ($(GNUSTEP_ROOT),)
81-check_GNUstep_sh_sourced::
82-       @echo You must source the GNUstep.sh script before running $(MAKE) here.
83-       @false
84-else
85-check_GNUstep_sh_sourced::
86-endif
87-
88 
89 VERSION = 0.1.2
90 
Note: See TracBrowser for help on using the repository browser.