pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/zphoto Enable to build with X-less imlib2.
details: https://anonhg.NetBSD.org/pkgsrc/rev/3cdb999db878
branches: trunk
changeset: 535418:3cdb999db878
user: obache <obache%pkgsrc.org@localhost>
date: Sat Nov 17 01:47:02 2007 +0000
description:
Enable to build with X-less imlib2.
diffstat:
graphics/zphoto/Makefile | 8 +-------
graphics/zphoto/distinfo | 3 ++-
graphics/zphoto/options.mk | 12 ++++++++++--
graphics/zphoto/patches/patch-ac | 20 ++++++++++++++++++++
4 files changed, 33 insertions(+), 10 deletions(-)
diffs (94 lines):
diff -r d39bde99f50d -r 3cdb999db878 graphics/zphoto/Makefile
--- a/graphics/zphoto/Makefile Sat Nov 17 01:41:06 2007 +0000
+++ b/graphics/zphoto/Makefile Sat Nov 17 01:47:02 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2007/04/01 01:58:38 obache Exp $
+# $NetBSD: Makefile,v 1.6 2007/11/17 01:47:02 obache Exp $
#
DISTNAME= zphoto-1.2
@@ -17,17 +17,11 @@
USE_TOOLS+= gmake perl
USE_LANGUAGES= c c++
-CONFIGURE_ARGS+= --with-x
CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.libiconv:Q}
CONFIGURE_ARGS+= --with-libintl-prefix=${BUILDLINK_PREFIX.gettext-lib:Q}
-BUILDLINK_DEPMETHOD.libXt?= build
-
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../multimedia/ming/buildlink3.mk"
-.include "../../x11/libX11/buildlink3.mk"
-.include "../../x11/libXext/buildlink3.mk"
-.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r d39bde99f50d -r 3cdb999db878 graphics/zphoto/distinfo
--- a/graphics/zphoto/distinfo Sat Nov 17 01:41:06 2007 +0000
+++ b/graphics/zphoto/distinfo Sat Nov 17 01:47:02 2007 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2006/08/22 15:19:44 joerg Exp $
+$NetBSD: distinfo,v 1.3 2007/11/17 01:47:02 obache Exp $
SHA1 (zphoto-1.2.tar.gz) = 2d45c5df2f2a00db0d8170f18ea5ed399fb9d611
RMD160 (zphoto-1.2.tar.gz) = 54a93da3c8303ebbf9c505891e9fa8fb32bd6a64
Size (zphoto-1.2.tar.gz) = 414079 bytes
SHA1 (patch-aa) = 4c15d45ecfbefadc4b9b2195e00d005e3ed2a936
SHA1 (patch-ab) = d365aeba430374b3ba6b4f1f88731f3b809fca31
+SHA1 (patch-ac) = b810ce437c8bc7be796e7206f99300422fb9467c
diff -r d39bde99f50d -r 3cdb999db878 graphics/zphoto/options.mk
--- a/graphics/zphoto/options.mk Sat Nov 17 01:41:06 2007 +0000
+++ b/graphics/zphoto/options.mk Sat Nov 17 01:47:02 2007 +0000
@@ -1,16 +1,24 @@
-# $NetBSD: options.mk,v 1.1.1.1 2006/08/12 16:20:35 xtraeme Exp $
+# $NetBSD: options.mk,v 1.2 2007/11/17 01:47:02 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.zphoto
PKG_SUPPORTED_OPTIONS= zip wx
PKG_OPTIONS_REQUIRED_GROUPS= graphics
-PKG_OPTIONS_GROUP.graphics= imlib2 magick
+PKG_OPTIONS_GROUP.graphics= imlib2 imagemagick
PKG_SUGGESTED_OPTIONS= imlib2
+PKG_OPTIONS_LEGACY_OPTS+= magick:imagemagick
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mimlib2)
. include "../../graphics/imlib2/buildlink3.mk"
CONFIGURE_ARGS+= --disable-magick
+. if !empty(PKG_BUILD_OPTIONS.imlib2:Mx11)
+CONFIGURE_ARGS+= --with-x
+BUILDLINK_DEPMETHOD.libXt?= build
+.include "../../x11/libXt/buildlink3.mk"
+. else
+CONFIGURE_ARGS+= --without-x
+. endif
.elif !empty(PKG_OPTIONS:Mmagick)
. include "../../graphics/ImageMagick/buildlink3.mk"
CONFIGURE_ARGS+= --disable-imlib2
diff -r d39bde99f50d -r 3cdb999db878 graphics/zphoto/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/zphoto/patches/patch-ac Sat Nov 17 01:47:02 2007 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ac,v 1.1 2007/11/17 01:47:02 obache Exp $
+
+--- image.cpp.orig 2004-07-20 16:48:11.000000000 +0000
++++ image.cpp
+@@ -50,7 +50,6 @@ static void get_new_image_size (ZphotoIm
+
+ #include <avifile.h>
+ #include <avm_output.h>
+-#include <X11/Xlib.h>
+ #include <Imlib2.h>
+
+ typedef struct {
+@@ -315,7 +314,6 @@ zphoto_image_get_bitmap (const char* fil
+ */
+ #ifdef HAVE_IMLIB2
+
+-#include <X11/Xlib.h>
+ #include <Imlib2.h>
+
+ static Imlib_Image
Home |
Main Index |
Thread Index |
Old Index