summaryrefslogtreecommitdiff
path: root/x11/wxGTK/patches/patch-ac
blob: 8881cb708a02e61ddeb853631bb53aa4cc4f2087 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
$NetBSD: patch-ac,v 1.6 2004/01/10 14:23:52 recht Exp $

--- src/makelib.env.in.orig	2003-09-21 13:31:38.000000000 +0200
+++ src/makelib.env.in	2003-09-25 00:31:25.000000000 +0200
@@ -33,6 +33,7 @@
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
+INSTALL_DATA = @INSTALL_DATA_DIR@
 
 TARGETLIB_STATIC = $(TARGET_LIBNAME).a
 TARGETLIB_SHARED = $(TARGET_LIBNAME).so.$(LIBVERSION_CURRENT).$(LIBVERSION_REVISION).$(LIBVERSION_AGE)
@@ -47,13 +48,13 @@
 .SUFFIXES: .o .c .cpp .cxx
 
 .c.o:
-	$(CC) -c $(CFLAGS) $(PICFLAGS) -o $@ $<
+	${LIBTOOL} --mode=compile $(CC) -c $(CFLAGS)  -o $@ $<
 
 .cpp.o:
-	$(CXX) -c $(CXXFLAGS) $(PICFLAGS) -o $@ $<
+	${LIBTOOL} --mode=compile $(CC) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
 
 .cxx.o:
-	$(CXX) -c $(CXXFLAGS) $(PICFLAGS) -o $@ $<
+	${LIBTOOL} --mode=compile $(CC) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
 
 # the comment at the end of the next line is needed because otherwise autoconf
 # would remove this line completely - it contains a built-in hack to remove
@@ -62,40 +63,21 @@
 
 include $(top_builddir)/src/make.env
 
-all: libtype_@WX_TARGET_LIBRARY_TYPE@
+all: $(TARGET_LIBNAME).la 
 
-libtype_so: $(top_builddir)/lib/$(TARGETLIB_SHARED)
-
-libtype_a: $(top_builddir)/lib/$(TARGETLIB_STATIC)
-
-$(top_builddir)/lib/$(TARGETLIB_SHARED): $(OBJECTS)
-	@$(INSTALL) -d $(top_builddir)/lib
-	$(SHARED_LD) $@ $(TARGETLIB_SONAME) $(OBJECTS) $(LDFLAGS_VERSIONING)
-	cd $(top_builddir)/lib \
-		&& $(RM) $(TARGETLIB_LINK1) $(TARGETLIB_LINK2) \
-		&& $(LN_S) $(TARGETLIB_SHARED) $(TARGETLIB_LINK1) \
-		&& $(LN_S) $(TARGETLIB_SHARED) $(TARGETLIB_LINK2)
-
-$(top_builddir)/lib/$(TARGETLIB_STATIC): $(OBJECTS)
-	@$(INSTALL) -d $(top_builddir)/lib
+$(TARGET_LIBNAME).la: $(OBJECTS)
+	@$(INSTALL_DATA_DIR) $(top_builddir)/lib
 	@$(RM) $@
-	$(AR) $(AROPTIONS) $@ $(OBJECTS)
-	$(RANLIB) $@
-
-install: install_@WX_TARGET_LIBRARY_TYPE@ install_headers
+	${LIBTOOL} --mode=link cc -o ${.TARGET:.a=.la} ${OBJECTS:.o=.lo} \
+	-rpath ${PREFIX}/lib -version-info major:minor
 
-install_so:
-	$(INSTALL_PROGRAM) $(top_builddir)/lib/$(TARGETLIB_SHARED) $(libdir)/$(TARGETLIB_SHARED)
-	@$(RM) $(libdir)/$(TARGETLIB_LINK1) $(libdir)/$(TARGETLIB_LINK2)
-	cd $(libdir) \
-		&& $(LN_S) $(TARGETLIB_SHARED) $(TARGETLIB_LINK1) \
-		&& $(LN_S) $(TARGETLIB_SHARED) $(TARGETLIB_LINK2)
+install: install_lib install_headers
 
-install_a:
-	$(INSTALL_PROGRAM) $(top_builddir)/lib/$(TARGETLIB_STATIC) $(libdir)/$(TARGETLIB_STATIC)
+install_lib:
+	${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${TARGET_LIBNAME}.la ${PREFIX}/lib
 
 install_headers:
-	$(INSTALL) -d $(includedir)/wx/$(HEADER_SUBDIR)
+	$(INSTALL_DATA_DIR)  $(includedir)/wx/$(HEADER_SUBDIR)
 	@for h in $(HEADERS); do \
 	  $(INSTALL_DATA) $(HEADER_PATH)/$(HEADER_SUBDIR)/$$h $(includedir)/wx/$(HEADER_SUBDIR)/$$h; \
 	  echo "installing $(includedir)/wx/$(HEADER_SUBDIR)/$$h"; \