summaryrefslogtreecommitdiff
path: root/libs/files/libmba-library.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libs/files/libmba-library.patch')
-rw-r--r--libs/files/libmba-library.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/libs/files/libmba-library.patch b/libs/files/libmba-library.patch
new file mode 100644
index 0000000..207dde7
--- /dev/null
+++ b/libs/files/libmba-library.patch
@@ -0,0 +1,54 @@
+diff -r -C3 libmba-0.7.0/Makefile libmba/Makefile
+*** libmba-0.7.0/Makefile 2003-10-15 02:56:32.000000000 -0600
+--- libmba/Makefile 2004-07-29 12:47:27.532270825 -0600
+***************
+*** 1,7 ****
+! prefix = /usr/local
+! includedir = $(prefix)/include
+! libdir = $(prefix)/lib
+! mandir = $(prefix)/man
+ CC = gcc
+ LIBNAME = mba
+ MAJVERSION = 0.7
+--- 1,7 ----
+! prefix = ./
+! includedir = $(prefix)
+! libdir = $(prefix)
+! mandir = $(prefix)
+ CC = gcc
+ LIBNAME = mba
+ MAJVERSION = 0.7
+***************
+*** 23,29 ****
+ all: $(ARNAME)($(OBJS)) $(SONAME)
+
+ $(SONAME): $(ARNAME)($(OBJS)) $(OBJS)
+! $(CC) -shared $(OBJS) -L$(libdir) -lc -lexpat -lutil -Wl,-h,$(SOVERSION) -o $(SONAME)
+
+ .c.a:
+ $(CC) $(CFLAGS) -c $< -o $*.o
+--- 23,29 ----
+ all: $(ARNAME)($(OBJS)) $(SONAME)
+
+ $(SONAME): $(ARNAME)($(OBJS)) $(OBJS)
+! $(CC) -shared $(OBJS) -L$(libdir) -lc -lutil -Wl,-h,$(SOVERSION) -o $(SONAME)
+
+ .c.a:
+ $(CC) $(CFLAGS) -c $< -o $*.o
+***************
+*** 53,59 ****
+ clean:
+ rm -rf $(includedir)/mba
+ rm -f $(OBJS) $(ARNAME) $(SONAME) $(libdir)/$(ARNAME) $(libdir)/$(SONAME) $(libdir)/$(SOVERSION) $(libdir)/lib$(LIBNAME).so $(DISTRO).zip
+! cd $(mandir)/man3 && rm -f $(MAN)
+
+ sho: src/shellout.c src/mba/shellout.h
+ gcc -Wall -W -DTEST -DMSGNO -lmba -lutil -o sho src/shellout.c
+--- 53,59 ----
+ clean:
+ rm -rf $(includedir)/mba
+ rm -f $(OBJS) $(ARNAME) $(SONAME) $(libdir)/$(ARNAME) $(libdir)/$(SONAME) $(libdir)/$(SOVERSION) $(libdir)/lib$(LIBNAME).so $(DISTRO).zip
+! # cd $(mandir)/man3 && rm -f $(MAN)
+
+ sho: src/shellout.c src/mba/shellout.h
+ gcc -Wall -W -DTEST -DMSGNO -lmba -lutil -o sho src/shellout.c