pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/tiff Create a separate libtiffcxx.so library ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/daae7dab08d6
branches:  trunk
changeset: 487200:daae7dab08d6
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jan 11 05:29:55 2005 +0000

description:
Create a separate libtiffcxx.so library for use by C++ applications.
It's meant to be used directly in place of libtiff.so, i.e. instead
of linking against -ltiff, you link against -ltiffcxx.  It also leaves
libtiff.so as a plain C-linkage library again, as it was in tiff-3.6.x,
and avoids needing to patch tiff-using packages to link using the C++
compiler.  Bump the PKGREVISION to 1.

diffstat:

 graphics/tiff/Makefile         |  17 ++++++++++++++++-
 graphics/tiff/PLIST            |   3 ++-
 graphics/tiff/buildlink3.mk    |   4 ++--
 graphics/tiff/distinfo         |   4 +++-
 graphics/tiff/patches/patch-af |  12 ++++++++++++
 graphics/tiff/patches/patch-ag |  15 +++++++++++++++
 6 files changed, 50 insertions(+), 5 deletions(-)

diffs (116 lines):

diff -r 903679faa1f6 -r daae7dab08d6 graphics/tiff/Makefile
--- a/graphics/tiff/Makefile    Tue Jan 11 05:12:56 2005 +0000
+++ b/graphics/tiff/Makefile    Tue Jan 11 05:29:55 2005 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.63 2005/01/09 23:03:58 jlam Exp $
+# $NetBSD: Makefile,v 1.64 2005/01/11 05:29:55 jlam Exp $
 
 DISTNAME=      tiff-3.7.1
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  ftp://ftp.remotesensing.org/pub/libtiff/ \
                http://libtiff.maptools.org/dl/
@@ -41,4 +42,18 @@
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/jpeg/buildlink3.mk"
+
+# We explicitly build libtiff without C++ support by patching the
+# configure script (patch-af).  We also add a new target into
+# libtiff/Makefile to create a libtiffcxx.la containing the C++
+# functions (patch-ag).
+#
+post-build:
+       cd ${WRKSRC}/libtiff && ${MAKE} libtiffcxx.la
+
+post-install:
+       cd ${WRKSRC}/libtiff && ${INSTALL_DATA} tiffio.hxx ${PREFIX}/include
+       cd ${WRKSRC}/libtiff && ${LIBTOOL} --mode=install               \
+               ${INSTALL_LIB} libtiffcxx.la ${PREFIX}/lib
+
 .include "../../mk/bsd.pkg.mk"
diff -r 903679faa1f6 -r daae7dab08d6 graphics/tiff/PLIST
--- a/graphics/tiff/PLIST       Tue Jan 11 05:12:56 2005 +0000
+++ b/graphics/tiff/PLIST       Tue Jan 11 05:29:55 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2004/12/28 23:10:10 reed Exp $
+@comment $NetBSD: PLIST,v 1.6 2005/01/11 05:29:55 jlam Exp $
 bin/bmp2tiff
 bin/fax2ps
 bin/fax2tiff
@@ -27,6 +27,7 @@
 include/tiffio.hxx
 include/tiffvers.h
 lib/libtiff.la
+lib/libtiffcxx.la
 man/man1/bmp2tiff.1
 man/man1/fax2ps.1
 man/man1/fax2tiff.1
diff -r 903679faa1f6 -r daae7dab08d6 graphics/tiff/buildlink3.mk
--- a/graphics/tiff/buildlink3.mk       Tue Jan 11 05:12:56 2005 +0000
+++ b/graphics/tiff/buildlink3.mk       Tue Jan 11 05:29:55 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2004/12/28 23:10:10 reed Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2005/01/11 05:29:55 jlam Exp $
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
 TIFF_BUILDLINK3_MK:=   ${TIFF_BUILDLINK3_MK}+
@@ -12,7 +12,7 @@
 
 .if !empty(TIFF_BUILDLINK3_MK:M+)
 BUILDLINK_DEPENDS.tiff+=       tiff>=3.6.1
-BUILDLINK_RECOMMENDED.tiff+=   tiff>=3.7.0
+BUILDLINK_RECOMMENDED.tiff+=   tiff>=3.7.1nb1
 BUILDLINK_PKGSRCDIR.tiff?=     ../../graphics/tiff
 .endif # TIFF_BUILDLINK3_MK
 
diff -r 903679faa1f6 -r daae7dab08d6 graphics/tiff/distinfo
--- a/graphics/tiff/distinfo    Tue Jan 11 05:12:56 2005 +0000
+++ b/graphics/tiff/distinfo    Tue Jan 11 05:29:55 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2004/12/28 23:10:10 reed Exp $
+$NetBSD: distinfo,v 1.21 2005/01/11 05:29:55 jlam Exp $
 
 SHA1 (tiff-3.7.1.tar.gz) = 001b03350182869c7f5d46e6b27862b85cb06fc3
 Size (tiff-3.7.1.tar.gz) = 1253810 bytes
@@ -7,3 +7,5 @@
 SHA1 (patch-ac) = 40e817380c5183cf2e1e5461c05600073dec7348
 SHA1 (patch-ad) = 301e0ce2c121e9082e0ff9c5681c2ea1e0e6dcff
 SHA1 (patch-ae) = bb2e2d3a5be49204356c3c504d3a4bd5ba1fd9b2
+SHA1 (patch-af) = 29adfbcaa317df36a41af791e93159ad795c5e0b
+SHA1 (patch-ag) = dc6490a688b8e26a068465965de0856d1affe2eb
diff -r 903679faa1f6 -r daae7dab08d6 graphics/tiff/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tiff/patches/patch-af    Tue Jan 11 05:29:55 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.10 2005/01/11 05:29:55 jlam Exp $
+
+--- configure.orig     2004-12-20 14:41:54.000000000 -0500
++++ configure
+@@ -23722,6 +23722,7 @@ if test "${enable_c+++set}" = set; then
+ else
+   HAVE_CXX=yes
+ fi;
++HAVE_CXX=no
+ 
+ if test "$HAVE_CXX" = "yes" ; then
+ 
diff -r 903679faa1f6 -r daae7dab08d6 graphics/tiff/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tiff/patches/patch-ag    Tue Jan 11 05:29:55 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.10 2005/01/11 05:29:55 jlam Exp $
+
+--- libtiff/Makefile.in.orig   2004-12-20 14:41:54.000000000 -0500
++++ libtiff/Makefile.in
+@@ -409,6 +409,10 @@ clean-libLTLIBRARIES:
+ libtiff.la: $(libtiff_la_OBJECTS) $(libtiff_la_DEPENDENCIES) 
+       $(CXXLINK) -rpath $(libdir) $(libtiff_la_LDFLAGS) $(libtiff_la_OBJECTS) $(libtiff_la_LIBADD) $(LIBS)
+ 
++libtiffcxx_la_OBJECTS: tif_stream.lo
++libtiffcxx.la: $(libtiffcxx_la_OBJECTS) $(libtiff_la_DEPENDENCIES) 
++      $(CXXLINK) -rpath $(libdir) $(libtiff_la_LDFLAGS) $(libtiffcxx_la_OBJECTS) libtiff.la $(libtiff_la_LIBADD) $(LIBS)
++
+ clean-noinstPROGRAMS:
+       @list='$(noinst_PROGRAMS)'; for p in $$list; do \
+         f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \



Home | Main Index | Thread Index | Old Index