summaryrefslogtreecommitdiff
path: root/devel/libcfg+/patches
diff options
context:
space:
mode:
authorgrant <grant>2004-10-06 10:17:06 +0000
committergrant <grant>2004-10-06 10:17:06 +0000
commitaa6c265cf66d22d60462af76727522cf2009495a (patch)
tree1ccb77ea1cea51c9f93845684e86c2a35339c4de /devel/libcfg+/patches
parent04bc4c133fecf5694268bd349ec23907764772bc (diff)
downloadpkgsrc-aa6c265cf66d22d60462af76727522cf2009495a.tar.gz
rename cfg+ directory to libcfg+ so it matches the PKGNAME.
Diffstat (limited to 'devel/libcfg+/patches')
-rw-r--r--devel/libcfg+/patches/patch-aa38
-rw-r--r--devel/libcfg+/patches/patch-ab76
2 files changed, 114 insertions, 0 deletions
diff --git a/devel/libcfg+/patches/patch-aa b/devel/libcfg+/patches/patch-aa
new file mode 100644
index 00000000000..5ee3d3b79da
--- /dev/null
+++ b/devel/libcfg+/patches/patch-aa
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1 2004/10/06 10:17:06 grant Exp $
+
+--- Rules.make.in.orig Tue Feb 17 11:37:47 2004
++++ Rules.make.in
+@@ -24,8 +24,7 @@ OBJECTS +=
+ DISTFILES +=
+
+ LIBSTATIC = $(PACKAGE).a
+-LIBDYNAMIC = $(PACKAGE).so
+-LIBDYNAMICV = $(PACKAGE).so.$(VERSION)
++LIBDYNAMICV = $(PACKAGE).la
+
+ install_LIB = $(LIBSTATIC) $(LIBDYNAMICV)
+ SCRIPTS =
+@@ -157,19 +156,14 @@ static: $(LIBSTATIC)
+ dynamic: $(LIBDYNAMICV)
+
+ $(LIBSTATIC): $(OBJECTS)
+- $(AR) r $@ $(OBJECTS)
++ :
+
+ $(LIBDYNAMICV): $(OBJECTS)
+- $(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS)
++ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) -rpath $(libdir) -version-info `echo $(VERSION) | sed -e 's/0\.\([^.]*\)\.\([^.]*\)/\1\2/'`
+
+-%.o: %.c $(CONFIG_HEADER)
++%.lo: %.c $(CONFIG_HEADER)
+ @echo '$(COMPILE) -c $<'; \
+- $(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<
+- @-cp .deps/$(*F).pp .deps/$(*F).P; \
+- tr ' ' '\012' < .deps/$(*F).pp \
+- | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
+- >> .deps/$(*F).P; \
+- rm .deps/$(*F).pp
++ $(LIBTOOL) --mode=compile $(COMPILE) -o $@ -c $<
+
+ %.o: %.cpp $(CONFIG_HEADER)
+ @echo '$(COMPILE_CXX) -c $<'; \
diff --git a/devel/libcfg+/patches/patch-ab b/devel/libcfg+/patches/patch-ab
new file mode 100644
index 00000000000..be550ac5849
--- /dev/null
+++ b/devel/libcfg+/patches/patch-ab
@@ -0,0 +1,76 @@
+$NetBSD: patch-ab,v 1.1 2004/10/06 10:17:06 grant Exp $
+
+--- src/Makefile.in.orig 2004-02-18 01:37:47.000000000 +0900
++++ src/Makefile.in 2004-09-29 00:32:45.000000000 +0900
+@@ -60,16 +60,16 @@
+ $(srcdir)/platon/str/strdyn.c \
+ $(srcdir)/platon/str/dynfgets.c
+
+-OBJECTS = $(top_builddir)/src/cfg+.o \
+- $(top_builddir)/src/parse.o \
+- $(top_builddir)/src/props.o \
+- $(top_builddir)/src/cmdline.o \
+- $(top_builddir)/src/cfgfile.o \
+- $(top_builddir)/src/shared.o \
+- $(top_builddir)/src/platon/str/strplus.o \
+- $(top_builddir)/src/platon/str/strctype.o \
+- $(top_builddir)/src/platon/str/strdyn.o \
+- $(top_builddir)/src/platon/str/dynfgets.o
++OBJECTS = $(top_builddir)/src/cfg+.lo \
++ $(top_builddir)/src/parse.lo \
++ $(top_builddir)/src/props.lo \
++ $(top_builddir)/src/cmdline.lo \
++ $(top_builddir)/src/cfgfile.lo \
++ $(top_builddir)/src/shared.lo \
++ $(top_builddir)/src/platon/str/strplus.lo \
++ $(top_builddir)/src/platon/str/strctype.lo \
++ $(top_builddir)/src/platon/str/strdyn.lo \
++ $(top_builddir)/src/platon/str/dynfgets.lo
+
+ # SunOS 4 make does not allow multiple makefiles to be specified in one ­include directive.
+ DEP_FILES = $(top_builddir)/src/.deps/cfg+.P \
+@@ -97,8 +97,7 @@
+ platon/str/strplus.h
+
+ LIBSTATIC = $(PACKAGE).a
+-LIBDYNAMIC = $(PACKAGE).so
+-LIBDYNAMICV = $(PACKAGE).so.$(VERSION)
++LIBDYNAMICV = $(PACKAGE).la
+
+ install_LIB = $(LIBSTATIC) $(LIBDYNAMICV)
+
+@@ -166,7 +165,7 @@
+ @list='$(install_LIB)'; for p in $$list; do \
+ if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
+ echo " Installing file $(DESTDIR)$(libdir)/$$p"; \
+- $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libdir)/$$p; \
++ $(LIBTOOL) --mode=install $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libdir)/$$p; \
+ done
+ uninstall-lib:
+ @$(NORMAL_UNINSTALL)
+@@ -217,11 +216,7 @@
+ cd platon && $(LN_S) $$p $(include_SYMLINK); \
+ ); \
+ cd $$here; \
+- done; \
+- cd $(DESTDIR)$(libdir) && ( \
+- echo " Creating symlink $(DESTDIR)$(libdir)/$(LIBDYNAMIC)"; \
+- $(LN_S) $(LIBDYNAMICV) $(LIBDYNAMIC); \
+- );
++ done;
+ uninstall-symlinks:
+ @$(NORMAL_UNINSTALL)
+ -@list='$(include_SYMLINK)'; for p in $$list; do \
+@@ -229,11 +224,7 @@
+ rm -f $(DESTDIR)$(includedir)/$$p; \
+ echo " rm -f $(DESTDIR)$(includedir_platon)/$$p"; \
+ rm -f $(DESTDIR)$(includedir_platon)/$$p; \
+- done; \
+- cd $(DESTDIR)$(libdir) && ( \
+- echo " rm -f $(DESTDIR)$(libdir)/$(LIBDYNAMIC)"; \
+- rm -f $(LIBDYNAMIC); \
+- );
++ done;
+
+ uninstall-dirs:
+ @$(NORMAL_UNINSTALL)