openbsd-ports/print/cups/patches/patch-cups_Makefile
ajacoutot e90b27a568 Major update to CUPS 1.6.1.
This package is now split between -main (the bloat) and -libs (i.e.
cups-libs; which only contains the base libraries which have no
external deps).
Most filters have moved to cups-filters, the split was needed because
cups depends on cups-filters which depends on cups

The nice side-effect is that this will simplify lots of things in tree.
2012-08-04 14:37:04 +00:00

42 lines
1.3 KiB
Plaintext

$OpenBSD: patch-cups_Makefile,v 1.9 2012/08/04 14:37:04 ajacoutot Exp $
--- cups/Makefile.orig Fri Jan 20 20:00:32 2012
+++ cups/Makefile Sat Feb 4 11:33:24 2012
@@ -240,10 +240,6 @@ install-libs: $(INSTALLSTATIC)
echo Installing libraries in $(LIBDIR)...
$(INSTALL_DIR) -m 755 $(LIBDIR)
$(INSTALL_LIB) $(LIBCUPS) $(LIBDIR)
- if test $(LIBCUPS) = "libcups.so.2" -o $(LIBCUPS) = "libcups.sl.2"; then \
- $(RM) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
- $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
- fi
if test $(LIBCUPS) = "libcups.2.dylib"; then \
$(RM) $(LIBDIR)/libcups.dylib; \
$(LN) $(LIBCUPS) $(LIBDIR)/libcups.dylib; \
@@ -272,7 +268,7 @@ uninstall:
$(RM) $(LIBDIR)/libcups.sl
$(RM) $(LIBDIR)/libcups.sl.2
$(RM) $(LIBDIR)/libcups.so
- $(RM) $(LIBDIR)/libcups.so.2
+ $(RM) $(LIBDIR)/libcups.so.${LIBcups_VERSION}
-$(RMDIR) $(LIBDIR)
for file in $(HEADERS); do \
$(RM) $(INCLUDEDIR)/cups/$$file; \
@@ -281,15 +277,13 @@ uninstall:
#
-# libcups.so.2, libcups.sl.2
+# libcups.so.${LIBcups_VERSION}, libcups.sl.2
#
-libcups.so.2 libcups.sl.2: $(LIBOBJS)
+libcups.so.${LIBcups_VERSION} libcups.sl.2: $(LIBOBJS)
echo Linking $@...
$(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBGSSAPI) \
$(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
- $(RM) `basename $@ .2`
- $(LN) $@ `basename $@ .2`
#