openbsd-ports/print/cups/patches/patch-cups_Makefile
mbalmer 771ece5153 Make SHARED_LIBS actually work, this was lying around for quite some time,
no idea why I did not get committed...

prodded by bernd.
2006-02-05 10:20:57 +00:00

44 lines
1.4 KiB
Plaintext

--- cups/Makefile.orig Tue Jun 29 05:44:52 2004
+++ cups/Makefile Sun Nov 7 15:19:29 2004
@@ -64,7 +64,7 @@ all: $(TARGETS)
#
clean:
- $(RM) $(OBJS) $(TARGETS) `basename $(LIBCUPS) .2` libcups.dylib
+ $(RM) $(OBJS) $(TARGETS) `basename $(LIBCUPS) .${LIBcups_VERSION}` libcups.dylib
#
@@ -82,9 +82,9 @@ depend:
install: all installhdrs
$(INSTALL_DIR) $(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`; \
+ if test $(LIBCUPS) = "libcups.so.${LIBcups_VERSION}" -o $(LIBCUPS) = "libcups.sl.${LIBcups_VERSION}"; then \
+ $(RM) $(LIBDIR)/`basename $(LIBCUPS) .${LIBcups_VERSION}`; \
+ $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .${LIBcups_VERSION}`; \
fi
if test $(LIBCUPS) = "libcups.2.dylib"; then \
$(STRIP) -x $(LIBDIR)/$(LIBCUPS); \
@@ -104,14 +104,14 @@ installhdrs:
#
-# libcups.so.2, libcups.sl.2
+# libcups.so.${LIBcups_VERSION}, libcups.sl.2
#
-libcups.so.2 libcups.sl.2: $(LIBOBJS) ../Makedefs
+libcups.so.${LIBcups_VERSION} libcups.sl.2: $(LIBOBJS) ../Makedefs
echo Linking $@...
$(DSO) $(DSOFLAGS) -o $@ $(LIBOBJS) $(SSLLIBS) $(COMMONLIBS)
- $(RM) `basename $@ .2`
- $(LN) $@ `basename $@ .2`
+ $(RM) `basename $@ .${LIBcups_VERSION}`
+ $(LN) $@ `basename $@ .${LIBcups_VERSION}`
#