update Thu Feb 11 18:37:00 PST 2010
[pkgsrc.git] / print / ja-vflib-lib / patches / patch-ad
1 $NetBSD: patch-ad,v 1.3 2009/09/09 17:21:52 joerg Exp $
2
3 --- tools/Imakefile.in.orig     Tue Oct 27 03:02:45 1998
4 +++ tools/Imakefile.in  Mon May  1 04:41:40 2000
5 @@ -23,19 +23,19 @@
6    VFLIB_INCDIR = ../src
7    VFLIB_LIBDIR = ../src
8  
9 -      VFLIB = $(VFLIB_LIBDIR)/libVFlib2.la
10 +      VFLIB = $(LDFLAGS) -lVFlib2 $(EXT_LIBRARY)
11  
12            PROGRAMS = disol    kban    ktest    vfperf    vftest    fmtest  
13                SRCS = disol.c  kban.c  ktest.c  vfperf.c  vftest.c  fmtest.c
14                OBJS = disol.lo kban.lo ktest.lo vfperf.lo vftest.lo fmtest.lo
15 -  INSTALL_PROGRAMS = ktest
16 +  INSTALL_PROGRAMS = $(PROGRAMS)
17  
18  default all:: $(PROGRAMS)
19  include ../make-sub
20  
21  
22  /* DISOL */
23 -disol: disol.lo $(VFLIB)
24 +disol: disol.lo
25         $(LIBTOOL) --mode=link \
26                 $(CC) -o $@ disol.lo $(VFLIB) 
27  disol.lo: disol.c
28 @@ -43,7 +43,7 @@
29                 $(CC) $(CFLAGS) -c disol.c
30  
31  /* KBAN */
32 -kban: kban.lo $(VFLIB)
33 +kban: kban.lo
34         $(LIBTOOL) --mode=link \
35                 $(CC) -o $@ kban.lo $(VFLIB) 
36  kban.lo: kban.c
37 @@ -51,7 +51,7 @@
38                 $(CC) $(CFLAGS) -c kban.c
39  
40  /* KTEST */
41 -ktest: ktest.lo $(DEPXLIB) $(VFLIB)
42 +ktest: ktest.lo $(DEPXLIB)
43         $(LIBTOOL) --mode=link \
44                 $(CC) -o $@ $(LDOPTIONS) ktest.lo $(XLIB) $(VFLIB) 
45  ktest.lo: ktest.c
46 @@ -59,7 +59,7 @@
47                 $(CC) $(CFLAGS) $(ALLINCLUDES) -c ktest.c
48  
49  /* VF2BDF */
50 -vf2bdf: vf2bdf.lo $(VFLIB)
51 +vf2bdf: vf2bdf.lo
52         $(LIBTOOL) --mode=link \
53                 $(CC) -o $@ vf2bdf.lo $(VFLIB) 
54  vf2bdf.lo: vf2bdf.c
55 @@ -67,7 +67,7 @@
56                 $(CC) $(CFLAGS) -c vf2bdf.c
57  
58  /* VFPERF */
59 -vfperf: vfperf.lo $(VFLIB)
60 +vfperf: vfperf.lo
61         $(LIBTOOL) --mode=link \ 
62                 $(CC) -o $@ vfperf.lo $(VFLIB)
63  vfperf.lo: vfperf.c
64 @@ -75,7 +75,7 @@
65                 $(CC) $(CFLAGS) -c vfperf.c
66  
67  /* VFTEST */
68 -vftest: vftest.lo $(DEPXLIB) $(VFLIB)
69 +vftest: vftest.lo $(DEPXLIB)
70         $(LIBTOOL) --mode=link \ 
71                 $(CC) -o $@ $(LDOPTIONS) vftest.lo $(XLIB) $(VFLIB) 
72  vftest.lo: vftest.c
73 @@ -83,7 +83,7 @@
74                 $(CC) $(CFLAGS) $(ALLINCLUDES) -c vftest.c
75  
76  /* FMTEST */
77 -fmtest: fmtest.lo $(VFLIB)
78 +fmtest: fmtest.lo
79         $(LIBTOOL) --mode=link \ 
80                 $(CC) -o $@ fmtest.lo $(VFLIB) 
81  fmtest.lo: fmtest.c
82 @@ -96,7 +96,7 @@
83         @if [ ! -d $(bindir) ] ; then \
84             ./recmkdir $(bindir); fi
85         @for P in $(INSTALL_PROGRAMS) ; do \
86 -           $(LIBTOOL) $(CP)  $$P $(bindir)/$$P ;  \
87 +           $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM)  $$P $(bindir)/$$P ;  \
88         done; 
89  uninstall::
90         @for P in $(INSTALL_PROGRAMS) ; do \