mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/rene/libtiff/shlib.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./libtiff/Makefile.in.orig Tue Jul 18 03:24:57 2000
  20. +++ ./libtiff/Makefile.in Tue Jul 18 03:28:40 2000
  21. @@ -64,6 +64,8 @@
  22. COPTS = @GCOPTS@
  23. OPTIMIZER=-O
  24. CFLAGS = @ENVOPTS@ @LIBCOPTS@ ${COPTS} ${OPTIMIZER} ${IPATH} ${CONF_LIBRARY}
  25. +SONAME = libtiff.so.3
  26. +SHLIB = libtiff.so.3.5.7
  27. #
  28. SRCS = \
  29. tif_aux.c \
  30. @@ -135,7 +137,8 @@
  31. tif_write.o \
  32. tif_zip.o \
  33. ${NULL}
  34. -TARGETS = libtiff.a
  35. +TARGETS = libtiff.a $(SHLIB)
  36. +SHOBJS= $(OBJS:%.o=%.so)
  37. all: ${TARGETS}
  38. if [ @DSO@dso != nodso ]; then \
  39. @@ -148,6 +151,9 @@
  40. ${AR} ${AROPTS} libtiff.a $?
  41. ${RANLIB} libtiff.a
  42. +$(SHLIB): $(SHOBJS)
  43. + gcc -o $(SHLIB) -Wl,-soname,$(SONAME) -shared $(SHOBJS) -ljpeg -lz
  44. +
  45. #
  46. # NB: The configure script verifies that the configured
  47. # tools are capable of producing a DSO before enabling
  48. @@ -346,3 +352,5 @@
  49. mkg3states tif_fax3sm.c \
  50. mkversion version.h \
  51. libtiff.a libtiff.@DSOSUF@ libtiff.@DSOSUF_VERSION@ *dso
  52. +%.so : %.c
  53. + $(CC) -c -fPIC $(CFLAGS) $(CPPFLAGS) $< -o $@
  54. --- ./tools/Makefile.in.orig Tue Jul 18 03:29:05 2000
  55. +++ ./tools/Makefile.in Tue Jul 18 03:30:06 2000
  56. @@ -48,9 +48,10 @@
  57. CFLAGS = @ENVOPTS@ ${COPTS} ${OPTIMIZER} ${IPATH}
  58. #
  59. TIFFLIB = ${DEPTH}/libtiff/libtiff.@DSOSUF@
  60. +TIFFLIB = ${DEPTH}/libtiff/libtiff.so.3.5.7
  61. LIBJPEG = @LIBJPEG@
  62. LIBGZ = @LIBGZ@
  63. -LIBTIFF = @TIFFLIBREF@
  64. +LIBTIFF = -L${DEPTH}/libtiff -ltiff
  65. LIBPORT = @LIBPORT@
  66. MACHLIBS= @MACHDEPLIBS@
  67. LIBS = ${LIBTIFF} ${LIBJPEG} ${LIBGZ} ${LIBPORT} ${MACHLIBS}