aboutsummaryrefslogtreecommitdiffstats
path: root/print/fontforge/files/patch-Makefile.dynamic.in
blob: 72b0623b8a1a4200de14a8e94edae67a6a28ab74 (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- Makefile.dynamic.in.orig    Thu Jun  9 02:20:04 2005
+++ Makefile.dynamic.in Thu Jun 30 13:51:27 2005
@@ -48,34 +48,34 @@
    $(LIBTOOL) $(INSTALL) -c libgunicode.la $(libdir)/libgunicode.la
    #cp .libs/*.so.*.* $(libdir)
    $(LIBTOOL) --finish $(libdir)
-   mkdir -p $(libdir)/pkgconfig
-   $(LIBTOOL) $(INSTALL) -c fontforge.pc $(libdir)/pkgconfig
+   mkdir -p ${PREFIX}/libdata/pkgconfig
+   ${BSD_INSTALL_DATA} -c fontforge.pc ${PREFIX}/libdata/pkgconfig
 
 install_docs:
    mkdir -p $(docdir)
    mkdir -p $(docdir)/flags
 #explicit use of sh to make sure we don't invoke csh with different "if" syntax
    -sh -c "if test -d htdocs/ja >/dev/null ; then mkdir -p $(docdir)/ja ; fi"
-   -cp htdocs/*.{html,png,gif,pdf} $(docdir)
-   -cp htdocs/flags/* $(docdir)/flags
-   -cp htdocs/ja/* $(docdir)/ja
+   ${BSD_INSTALL_DATA} htdocs/*.{html,png,gif,pdf} $(docdir)
+   ${BSD_INSTALL_DATA} htdocs/flags/* $(docdir)/flags
+   ${BSD_INSTALL_DATA} htdocs/ja/* $(docdir)/ja
 
 install: $(sharedir) all install_libs
 # You may need to be root to do the install
    mkdir -p $(bindir)
    mkdir -p $(mandir)/man1
    mkdir -p $(sharedir)
-   $(LIBTOOL) $(INSTALL) -c fontforge/fontforge $(bindir)
-   $(LIBTOOL) $(INSTALL) -c fontforge/sfddiff $(bindir)
+   ${BSD_INSTALL_PROGRAM} -c fontforge/.libs/fontforge $(bindir)
+   ${BSD_INSTALL_PROGRAM} -c fontforge/.libs/sfddiff $(bindir)
    -rm -f $(bindir)/pfaedit
    (cd $(bindir) ; ln -s fontforge pfaedit)
-   cp fontforge/pfaedit-*.ui $(sharedir)
+   ${BSD_INSTALL_DATA} fontforge/pfaedit-*.ui $(sharedir)
 #The next line will fail for most installs. If you have downloaded the cidmaps
 # this will install them. If you haven't it won't. You only need the cidmaps
 # if you are editing CID keyed files (and even then you can live without them
-   -cp $(srcdir)/cidmap/*.cidmap $(sharedir) >/dev/null 2>&1
-   cp $(srcdir)/fontforge/fontforge.1 $(mandir)/man1
-   cp $(srcdir)/fontforge/sfddiff.1 $(mandir)/man1
+   ${BSD_INSTALL_DATA} $(srcdir)/cidmap/*.cidmap $(sharedir) >/dev/null 2>&1
+   ${BSD_INSTALL_MAN} $(srcdir)/fontforge/fontforge.1 $(mandir)/man1
+   ${BSD_INSTALL_MAN} $(srcdir)/fontforge/sfddiff.1 $(mandir)/man1
 #explicit use of sh to make sure we don't invoke csh with different "if" syntax
    sh -c "if test -d htdocs >/dev/null ; then $(MAKE) install_docs ; fi"