pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/tiff Note that this package requires C++. Al...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1274f7ec4812
branches:  trunk
changeset: 487130:1274f7ec4812
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Jan 09 21:34:41 2005 +0000

description:
Note that this package requires C++.  Also, convert to use the
bsd.options.mk framework.  The USE_GIF option is now called "lzw" and
is enabled by default.

diffstat:

 graphics/tiff/Makefile |  24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 4deccbabcd4a -r 1274f7ec4812 graphics/tiff/Makefile
--- a/graphics/tiff/Makefile    Sun Jan 09 17:31:55 2005 +0000
+++ b/graphics/tiff/Makefile    Sun Jan 09 21:34:41 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2004/12/28 23:10:10 reed Exp $
+# $NetBSD: Makefile,v 1.62 2005/01/09 21:34:41 jlam Exp $
 
 DISTNAME=      tiff-3.7.1
 CATEGORIES=    graphics
@@ -11,20 +11,32 @@
 
 EXTRACT_ONLY=  ${DISTNAME}${EXTRACT_SUFX}
 
-BUILD_DEFS+=   USE_GIF
-
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
+USE_LANGUAGES= c c++
 USE_BUILDLINK3=        yes
 USE_LIBTOOL=   yes
-GNU_CONFIGURE= yes
 
+GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --enable-rpath
+CONFIGURE_ARGS+=       --enable-c++
 
 .include "../../mk/bsd.prefs.mk"
 
-.if !defined(USE_GIF) || !empty(USE_GIF:M[Nn][Oo])
-# disable support for LZW algorithm
+.if defined(USE_GIF) && !empty(USE_GIF:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+=  lzw
+.endif
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.tiff
+PKG_SUPPORTED_OPTIONS= lzw
+.include "../../mk/bsd.options.mk"
+
+###
+### LZW compression support
+###
+.if !empty(PKG_OPTIONS:Mlzw)
+CONFIGURE_ARGS+=       --enable-lzw
+.else
 CONFIGURE_ARGS+=       --disable-lzw
 .endif
 



Home | Main Index | Thread Index | Old Index