File install.patch of Package libpdel
diff -ur before/libpdel-0.6.1/pdel/GNUmakefile after/libpdel-0.6.1/pdel/GNUmakefile --- before/libpdel-0.6.1/pdel/GNUmakefile 2009-05-13 16:36:05.000000000 -0500 +++ after/libpdel-0.6.1/pdel/GNUmakefile 2011-02-11 16:45:16.000000000 -0600 @@ -100,7 +100,8 @@ DO_SHARED= 1 shlib_ext= so.$(shlib_major).$(shlib_minor) -dlibrary= lib$(libbase).$(shlib_ext) +dlibrary= lib$(libbase).$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH) +dlibrary2= lib$(libbase).$(VERSION_MAJOR) sharedobjargs= -shared sharedlibargs= -shared $(sobjs) @@ -208,7 +209,8 @@ ifdef DO_SHARED IN_SHARED= $(install) -c $(install_lib_own) -m 555 \ - $(objdir)/$(dlibrary) $(DESTDIR)$(slibdir)/$(dlibrary) + $(objdir)/$(dlibrary) $(DESTDIR)$(slibdir)/$(dlibrary); \ + ln -s $(dlibrary) $(DESTDIR)$(slibdir)/$(dlibrary2) ifdef WIN32_SHLIB IN_SHARED2= $(install) -c $(install_lib_own) -m 755 \ $(objdir)/$(implib) $(DESTDIR)$(libdir)/$(implib) @@ -216,6 +218,7 @@ endif install-libraries: $(libraries) + test -d $(DESTDIR)$(libdir) || $(install) -d $(DESTDIR)$(libdir) $(install) -c $(install_lib_own) -m 444 \ $(objdir)/$(slibrary) $(DESTDIR)$(libdir)/$(slibrary) $(IN_SHARED) @@ -242,15 +245,15 @@ install-headers: @for hdr in $(INCS); do \ - echo $(install) -c $(install_include_own) -m 444 \ + echo $(install) -c $(install_include_own) -m 644 \ $$hdr $(DESTDIR)$(includedir)/$$hdr; \ - $(install) -c $(install_include_own) -m 444 \ + $(install) -c $(install_include_own) -m 644 \ $$hdr $(DESTDIR)$(includedir)/$$hdr; \ done @for hdr in $(BASEINCS); do \ - echo $(install) -c $(install_include_own) -m 444 \ + echo $(install) -c $(install_include_own) -m 644 \ pdel/$$hdr $(DESTDIR)$(includedir)/$$hdr; \ - $(install) -c $(install_include_own) -m 444 \ + $(install) -c $(install_include_own) -m 644 \ pdel/$$hdr $(DESTDIR)$(includedir)/$$hdr; \ done