$OpenBSD: patch-cgi-bin_Makefile,v 1.1 2010/03/31 16:20:02 ajacoutot Exp $ --- cgi-bin/Makefile.orig Wed May 27 01:27:06 2009 +++ cgi-bin/Makefile Sun Aug 30 17:17:24 2009 @@ -143,10 +143,6 @@ install-libs: $(INSTALLSTATIC) echo Installing libraries in $(LIBDIR)... $(INSTALL_DIR) -m 755 $(LIBDIR) $(INSTALL_LIB) $(LIBCUPSCGI) $(LIBDIR) - if test $(LIBCUPSCGI) = "libcupscgi.so.1" -o $(LIBCUPSCGI) = "libcupscgi.sl.1"; then \ - $(RM) $(LIBDIR)/`basename $(LIBCUPSCGI) .1`; \ - $(LN) $(LIBCUPSCGI) $(LIBDIR)/`basename $(LIBCUPSCGI) .1`; \ - fi if test $(LIBCUPSCGI) = "libcupscgi.1.dylib"; then \ $(RM) $(LIBDIR)/libcupscgi.dylib; \ $(LN) $(LIBCUPSCGI) $(LIBDIR)/libcupscgi.dylib; \ @@ -179,7 +175,7 @@ uninstall: $(RM) $(LIBDIR)/libcupscgi.sl $(RM) $(LIBDIR)/libcupscgi.sl.1 $(RM) $(LIBDIR)/libcupscgi.so - $(RM) $(LIBDIR)/libcupscgi.so.1 + $(RM) $(LIBDIR)/libcupscgi.so.${LIBcupscgi_VERSION} -$(RMDIR) $(LIBDIR) $(RM) $(INCLUDEDIR)/cups/cgi.h $(RM) $(INCLUDEDIR)/cups/help-index.h @@ -209,14 +205,12 @@ framedhelp: # -# libcupscgi.so.1, libcupscgi.sl.1 +# libcupscgi.so.${LIBcupscgi_VERSION}, libcupscgi.sl.1 # -libcupscgi.so.1 libcupscgi.sl.1: $(LIBOBJS) +libcupscgi.so.${LIBcupscgi_VERSION} libcupscgi.sl.1: $(LIBOBJS) echo Linking $@... $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBS) - $(RM) `basename $@ .1` - $(LN) $@ `basename $@ .1` #