Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / gtkada / patches / patch-ba
bloba2536e65d9692d26e4b93edf0d8b0cb327fac37d
1 $NetBSD$
3 --- src/Makefile.in.orig        2010-12-01 21:51:07.000000000 +0000
4 +++ src/Makefile.in
5 @@ -58,46 +58,44 @@ gtkada-intl.adb: gtkada-intl.gpb Makefil
6  install: force
7         @if [ "$(prefix)" != `pwd` ]; then \
8            echo Installing GtkAda in $(prefix); \
9 -          $(MKDIR) $(bindir); \
10 -          $(MKDIR) $(libdir); \
11 -          $(MKDIR) $(incdir); \
12 -          $(MKDIR) $(alidir)/static; \
13 -          $(INSTALL_DATA) ${OBJ_DIR}/$(ARCHIVENAME) $(alidir)/static; \
14 -          $(RM) $(libdir)/$(ARCHIVENAME); \
15 +          $(MKDIR) $(DESTDIR)$(bindir); \
16 +          $(MKDIR) $(DESTDIR)$(libdir); \
17 +          $(MKDIR) $(DESTDIR)$(incdir); \
18 +          $(MKDIR) $(DESTDIR)$(alidir)/static; \
19 +          $(INSTALL_DATA) ${OBJ_DIR}/$(ARCHIVENAME) $(DESTDIR)$(alidir)/static; \
20            if [ -f /usr/bin/$(RANLIB) -o -f /bin/$(RANLIB) ]; then \
21 -            $(RANLIB) $(alidir)/static/$(ARCHIVENAME); \
22 +            $(RANLIB) $(DESTDIR)$(alidir)/static/$(ARCHIVENAME); \
23            fi; \
24            if [ $(BUILD_SHARED) = yes ]; then \
25 -               $(MKDIR) $(alidir)/relocatable; \
26 +               $(MKDIR) $(DESTDIR)$(alidir)/relocatable; \
27                 if [ "$(OS)" = "Windows_NT" ]; then \
28                      $(INSTALL_DATA) ${OBJ_DIR}/$(SONAME) $(bindir); \
29                      $(CHMOD) +x $(bindir)/$(SONAME); \
30                 else \
31 -                    $(INSTALL_DATA) ${OBJ_DIR}/$(SONAME) $(alidir)/relocatable; \
32 -                    $(RM) $(libdir)/$(LIBNAME); \
33 -                    $(LN) $(SONAME) $(alidir)/relocatable/$(LIBNAME); \
34 -                    $(LN) gtkada/relocatable/$(SONAME) $(libdir)/$(LIBNAME); \
35 -                    $(LN) gtkada/relocatable/$(SONAME) $(libdir)/$(SONAME); \
36 +                    $(INSTALL_DATA) ${OBJ_DIR}/$(SONAME) $(DESTDIR)$(alidir)/relocatable; \
37 +                    $(LN) $(SONAME) $(DESTDIR)$(alidir)/relocatable/$(LIBNAME); \
38 +                    $(LN) gtkada/relocatable/$(SONAME) $(DESTDIR)$(libdir)/$(LIBNAME); \
39 +                    $(LN) gtkada/relocatable/$(SONAME) $(DESTDIR)$(libdir)/$(SONAME); \
40                 fi; \
41 -               $(CP) $(OBJ_DIR)/glib*.ali $(OBJ_DIR)/gdk*.ali $(alidir)/relocatable; \
42 -               $(CP) $(OBJ_DIR)/gtk*.ali $(OBJ_DIR)/pango*.ali $(alidir)/relocatable; \
43 -               $(CP) $(OBJ_DIR)/cairo*.ali $(alidir)/relocatable; \
44 +               $(CP) $(OBJ_DIR)/glib*.ali $(OBJ_DIR)/gdk*.ali $(DESTDIR)$(alidir)/relocatable; \
45 +               $(CP) $(OBJ_DIR)/gtk*.ali $(OBJ_DIR)/pango*.ali $(DESTDIR)$(alidir)/relocatable; \
46 +               $(CP) $(OBJ_DIR)/cairo*.ali $(DESTDIR)$(alidir)/relocatable; \
47            fi; \
48 -          $(CP) glib*.ads glib*.adb $(MESA_SPECS) $(incdir); \
49 -          $(CP) gdk*.ads gdk*.adb $(incdir); \
50 -          $(CP) gtk*.ads gtk*.adb $(incdir); \
51 -          $(CP) pango*.ads pango*.adb $(incdir); \
52 -          $(CP) cairo*.ads cairo*.adb $(incdir); \
53 -          $(CP) $(OBJ_DIR)/glib*.ali $(OBJ_DIR)/gdk*.ali $(alidir)/static; \
54 -          $(CP) $(OBJ_DIR)/gtk*.ali $(OBJ_DIR)/pango*.ali $(alidir)/static; \
55 -          $(CP) $(OBJ_DIR)/cairo*.ali $(alidir)/static; \
56 +          $(CP) glib*.ads glib*.adb $(MESA_SPECS) $(DESTDIR)$(incdir); \
57 +          $(CP) gdk*.ads gdk*.adb $(DESTDIR)$(incdir); \
58 +          $(CP) gtk*.ads gtk*.adb $(DESTDIR)$(incdir); \
59 +          $(CP) pango*.ads pango*.adb $(DESTDIR)$(incdir); \
60 +          $(CP) cairo*.ads cairo*.adb $(DESTDIR)$(incdir); \
61 +          $(CP) $(OBJ_DIR)/glib*.ali $(OBJ_DIR)/gdk*.ali $(DESTDIR)$(alidir)/static; \
62 +          $(CP) $(OBJ_DIR)/gtk*.ali $(OBJ_DIR)/pango*.ali $(DESTDIR)$(alidir)/static; \
63 +          $(CP) $(OBJ_DIR)/cairo*.ali $(DESTDIR)$(alidir)/static; \
64             $(MAKE) -C opengl install; \
65             $(MAKE) -C glade install; \
66             $(MAKE) -C gnome install; \
67             $(MAKE) -C tools install; \
68 -          $(CHMOD) ugo-w $(alidir)/static/*.ali; \
69 +          $(CHMOD) ugo-w $(DESTDIR)$(alidir)/static/*.ali; \
70            if [ $(BUILD_SHARED) = yes ]; then \
71 -             $(CHMOD) ugo-w $(alidir)/relocatable/*.ali; \
72 +             $(CHMOD) ugo-w $(DESTDIR)$(alidir)/relocatable/*.ali; \
73            fi; \
74         fi