openbsd-ports/x11/fltk/patches/patch-src_Makefile

144 lines
5.5 KiB
Plaintext
Raw Normal View History

2006-10-19 05:41:32 -04:00
$OpenBSD: patch-src_Makefile,v 1.8 2006/10/19 09:41:32 wilfried Exp $
--- src/Makefile.orig Mon Aug 8 02:54:30 2005
+++ src/Makefile Thu Oct 19 11:07:34 2006
@@ -195,16 +195,12 @@ all: $(LIBNAME) $(DSONAME) \
$(IMGLIBNAME) $(IMGDSONAME)
$(LIBNAME): $(OBJECTS)
- echo $(LIBCOMMAND) $@ ...
$(RM) $@
2002-11-16 11:30:00 -05:00
$(LIBCOMMAND) $@ $(OBJECTS)
$(RANLIB) $@
-libfltk.so.1.1: $(OBJECTS)
2006-10-19 05:41:32 -04:00
- echo $(DSOCOMMAND) $@ ...
2005-12-25 15:23:18 -05:00
+libfltk.so.$(LIBfltk_VERSION): $(OBJECTS)
2003-12-26 09:18:30 -05:00
$(DSOCOMMAND) $@ $(OBJECTS)
2006-10-19 05:41:32 -04:00
- $(RM) libfltk.so
2002-11-16 11:30:00 -05:00
- $(LN) libfltk.so.1.1 libfltk.so
libfltk.sl.1.1: $(OBJECTS)
echo $(DSOCOMMAND) $@ ...
2006-10-19 05:41:32 -04:00
@@ -231,16 +227,12 @@ libfltk_s.a: $(OBJECTS)
$(CHMOD) +x libfltk_s.a
$(FLLIBNAME): $(FLOBJECTS)
- echo $(LIBCOMMAND) $@ ...
$(RM) $@
2002-11-16 11:30:00 -05:00
$(LIBCOMMAND) $@ $(FLOBJECTS)
$(RANLIB) $@
2003-12-26 09:18:30 -05:00
-libfltk_forms.so.1.1: $(FLOBJECTS) libfltk.so.1.1
2006-10-19 05:41:32 -04:00
- echo $(DSOCOMMAND) $@ ...
2005-12-25 15:23:18 -05:00
+libfltk_forms.so.$(LIBfltk_forms_VERSION): $(FLOBJECTS) libfltk.so.$(LIBfltk_VERSION)
2003-12-26 09:18:30 -05:00
$(DSOCOMMAND) $@ $(FLOBJECTS) -L. -lfltk
2006-10-19 05:41:32 -04:00
- $(RM) libfltk_forms.so
2002-11-16 11:30:00 -05:00
- $(LN) libfltk_forms.so.1.1 libfltk_forms.so
2003-12-26 09:18:30 -05:00
libfltk_forms.sl.1.1: $(FLOBJECTS) libfltk.sl.1.1
2002-11-16 11:30:00 -05:00
echo $(DSOCOMMAND) $@ ...
2006-10-19 05:41:32 -04:00
@@ -267,16 +259,12 @@ libfltk_forms_s.a: $(FLOBJECTS)
$(CHMOD) +x libfltk_forms_s.a
$(GLLIBNAME): $(GLOBJECTS)
- echo $(LIBCOMMAND) $@ ...
$(RM) $@
2002-11-16 11:30:00 -05:00
$(LIBCOMMAND) $@ $(GLOBJECTS)
$(RANLIB) $@
2003-12-26 09:18:30 -05:00
-libfltk_gl.so.1.1: $(GLOBJECTS) libfltk.so.1.1
2006-10-19 05:41:32 -04:00
- echo $(DSOCOMMAND) $@ ...
2005-12-25 15:23:18 -05:00
+libfltk_gl.so.$(LIBfltk_gl_VERSION): $(GLOBJECTS) libfltk.so.$(LIBfltk_VERSION)
2003-12-26 09:18:30 -05:00
$(DSOCOMMAND) $@ $(GLOBJECTS) -L. -lfltk
2006-10-19 05:41:32 -04:00
- $(RM) libfltk_gl.so
2002-11-16 11:30:00 -05:00
- $(LN) libfltk_gl.so.1.1 libfltk_gl.so
2003-12-26 09:18:30 -05:00
libfltk_gl.sl.1.1: $(GLOBJECTS) libfltk.sl.1.1
2002-11-16 11:30:00 -05:00
echo $(DSOCOMMAND) $@ ...
2006-10-19 05:41:32 -04:00
@@ -303,16 +291,12 @@ libfltk_gl_s.a: $(GLOBJECTS)
$(CHMOD) +x libfltk_gl_s.a
$(IMGLIBNAME): $(IMGOBJECTS)
- echo $(LIBCOMMAND) $@ ...
$(RM) $@
2002-11-16 11:30:00 -05:00
$(LIBCOMMAND) $@ $(IMGOBJECTS)
$(RANLIB) $@
2003-12-26 09:18:30 -05:00
-libfltk_images.so.1.1: $(IMGOBJECTS) libfltk.so.1.1
2006-10-19 05:41:32 -04:00
- echo $(DSOCOMMAND) $@ ...
2005-12-25 15:23:18 -05:00
+libfltk_images.so.$(LIBfltk_images_VERSION): $(IMGOBJECTS) libfltk.so.$(LIBfltk_VERSION)
2006-10-19 05:41:32 -04:00
$(DSOCOMMAND) $@ $(IMGOBJECTS) -L. $(IMAGELIBS) -lfltk
- $(RM) libfltk_images.so
2002-11-16 11:30:00 -05:00
- $(LN) libfltk_images.so.1.1 libfltk_images.so
2003-12-26 09:18:30 -05:00
libfltk_images.sl.1.1: $(IMGOBJECTS) libfltk.sl.1.1
2002-11-16 11:30:00 -05:00
echo $(DSOCOMMAND) $@ ...
2006-10-19 05:41:32 -04:00
@@ -466,7 +450,6 @@ install: $(LIBNAME) $(DSONAME) \
$(FLLIBNAME) $(FLDSONAME) \
$(GLLIBNAME) $(GLDSONAME) \
$(IMGLIBNAME) $(IMGDSONAME)
- echo "Installing libraries in $(DESTDIR)$(libdir)..."
-$(MKDIR) $(DESTDIR)$(libdir)
-$(MKDIR) $(DESTDIR)$(bindir)
$(RM) $(DESTDIR)$(libdir)/$(LIBNAME)
@@ -477,11 +460,10 @@ install: $(LIBNAME) $(DSONAME) \
$(RANLIB) $(DESTDIR)$(libdir)/$(GLLIBNAME); \
2002-11-16 11:30:00 -05:00
fi
2006-10-19 05:41:32 -04:00
$(RANLIB) $(DESTDIR)$(libdir)/$(IMGLIBNAME)
2002-11-16 11:30:00 -05:00
- if test x$(DSONAME) = xlibfltk.so.1.1; then\
2005-12-25 15:23:18 -05:00
+ if test x$(DSONAME) = xlibfltk.so.$(LIBfltk_VERSION); then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk.so*;\
- $(CP) libfltk.so.1.1 $(DESTDIR)$(libdir); \
- $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk.so.1.1; \
- $(LN) libfltk.so.1.1 $(DESTDIR)$(libdir)/libfltk.so;\
+ $(CP) libfltk.so.$(LIBfltk_VERSION) $(DESTDIR)$(libdir); \
+ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk.so.$(LIBfltk_VERSION); \
2002-11-16 11:30:00 -05:00
fi
if test x$(DSONAME) = xlibfltk.sl.1.1; then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk.sl*;\
@@ -516,11 +498,10 @@ install: $(LIBNAME) $(DSONAME) \
$(CP) libfltk.dll.a $(DESTDIR)$(libdir); \
$(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk.dll.a; \
2002-11-16 11:30:00 -05:00
fi
- if test x$(FLDSONAME) = xlibfltk_forms.so.1.1; then\
2005-12-25 15:23:18 -05:00
+ if test x$(FLDSONAME) = xlibfltk_forms.so.$(LIBfltk_forms_VERSION); then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.so*;\
- $(CP) libfltk_forms.so.1.1 $(DESTDIR)$(libdir); \
- $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_forms.so.1.1; \
- $(LN) libfltk_forms.so.1.1 $(DESTDIR)$(libdir)/libfltk_forms.so;\
+ $(CP) libfltk_forms.so.$(LIBfltk_VERSION) $(DESTDIR)$(libdir); \
+ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_forms.so.$(LIBfltk_VERSION); \
2002-11-16 11:30:00 -05:00
fi
if test x$(FLDSONAME) = xlibfltk_forms.sl.1.1; then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk_forms.sl*;\
@@ -555,11 +536,10 @@ install: $(LIBNAME) $(DSONAME) \
$(CP) libfltk_forms.dll.a $(DESTDIR)$(libdir); \
$(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_forms.dll.a; \
2002-11-16 11:30:00 -05:00
fi
- if test x$(GLDSONAME) = xlibfltk_gl.so.1.1; then\
2005-12-25 15:23:18 -05:00
+ if test x$(GLDSONAME) = xlibfltk_gl.so.$(LIBfltk_gl_VERSION); then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.so*;\
- $(CP) libfltk_gl.so.1.1 $(DESTDIR)$(libdir); \
- $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_gl.so.1.1; \
- $(LN) libfltk_gl.so.1.1 $(DESTDIR)$(libdir)/libfltk_gl.so;\
+ $(CP) libfltk_gl.so.$(LIBfltk_gl_VERSION) $(DESTDIR)$(libdir); \
+ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_gl.so.$(LIBfltk_gl_VERSION); \
2002-11-16 11:30:00 -05:00
fi
if test x$(GLDSONAME) = xlibfltk_gl.sl.1.1; then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk_gl.sl*;\
@@ -594,11 +574,10 @@ install: $(LIBNAME) $(DSONAME) \
$(CP) libfltk_gl.dll.a $(DESTDIR)$(libdir); \
$(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_gl.dll.a; \
2002-11-16 11:30:00 -05:00
fi
- if test x$(IMGDSONAME) = xlibfltk_images.so.1.1; then\
2005-12-25 15:23:18 -05:00
+ if test x$(IMGDSONAME) = xlibfltk_images.so.$(LIBfltk_images_VERSION); then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk_images.so*;\
- $(CP) libfltk_images.so.1.1 $(DESTDIR)$(libdir); \
- $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_images.so.1.1; \
- $(LN) libfltk_images.so.1.1 $(DESTDIR)$(libdir)/libfltk_images.so;\
+ $(CP) libfltk_images.so.$(LIBfltk_images_VERSION) $(DESTDIR)$(libdir); \
+ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_images.so.$(LIBfltk_images_VERSION); \
2002-11-16 11:30:00 -05:00
fi
if test x$(IMGDSONAME) = xlibfltk_images.sl.1.1; then\
2006-10-19 05:41:32 -04:00
$(RM) $(DESTDIR)$(libdir)/libfltk_images.sl*;\