summaryrefslogtreecommitdiff
path: root/sysutils/xnc/patches/patch-ag
blob: 97b0cdd23ba4357aa720499595c4b4925c69c11b (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
$NetBSD: patch-ag,v 1.1.1.1 2001/09/17 05:40:06 zuntum Exp $

--- plugins/five/makefile.in.orig	Tue Mar 13 19:05:52 2001
+++ plugins/five/makefile.in
@@ -18,6 +18,11 @@
 
 @MCOMMON@
 
+CXX = $(LIBTOOL) --mode=compile $(CC)
+
+.c.o:
+	$(CXX) -c $(CXXINCLUDES) $(INCLUDES) $(CXXOPT) $<
+
 PLUGINFLAGS=$(SHAREFLAGS)
 
            IOBJS =fiveplugin.o fivegeom.o fivefuncs.o fiveskin.o fivegui.o \
@@ -25,9 +30,12 @@
            CXXINCLUDES=$(XINC) -I../../image -I../../xbitmaps -I../.. -I../common -I../../ftplib 
            CXXOPT=$(DEFS) $(DEB) $(CFLAGS)
 
-PROGRAM =libxncfive.so
+#PROGRAM =libxncfive.so
+PROGRAM = libxncfive.a
 
-all:: $(PROGRAM)
+#all:: $(PROGRAM)
+all: $(IOBJS)
+	$(LIBTOOL) $(CC) -module -avoid-version -o $(PROGRAM:.a=.la) $(IOBJS:.o=.lo) -rpath $(INSTPLUG)
 
 
 ../gui.o: ../gui.cxx
@@ -87,7 +95,8 @@
 
 
 install:
-	./xncsetup
+#	./xncsetup
+	$(LIBTOOL) --mode=install $(INSTALL_DATA) $(PROGRAM:.a=.la) $(INSTPLUG)
 
 uninstall:
 	#Uninstalling IVES..