Subject: X-less ImageMagick
To: None <tech-pkg@NetBSD.org>
From: iMil <imil@home.imil.net>
List: tech-pkg
Date: 12/16/2004 13:47:53
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi list,

as i needed a X11-less ImageMagick, i did this little patch to original's 
package Makefile :

- --- Makefile.old        2004-12-16 13:28:30.000000000 +0100
+++ Makefile    2004-12-16 13:30:46.000000000 +0100
@@ -8,15 +8,9 @@
  HOMEPAGE=      http://www.simplesystems.org/ImageMagick/
  COMMENT=       Package for display and interactive manipulation of images

- -BUILDLINK_DEPENDS.jasper+=     jasper>=1.701.0
- -DEPENDS+=                      mpeg2codec-1.2:../../graphics/mpeg2codec
- -
- -CONFLICTS=     geomview<1.8.1nb2  # used to have a program named 
'animate'
- -
  PKG_INSTALLATION_TYPES=        overwrite pkgviews

  USE_BUILDLINK3=                YES
- -USE_X11=               YES
  GNU_CONFIGURE=         YES
  USE_LIBTOOL=           YES
  USE_LANGUAGES=         c c++
@@ -31,6 +25,19 @@

  .include "../../mk/bsd.prefs.mk"

+.if defined(USE_X11)
+
+BUILDLINK_DEPENDS.jasper+=     jasper>=1.701.0
+DEPENDS+=                      mpeg2codec-1.2:../../graphics/mpeg2codec
+CONFLICTS=     geomview<1.8.1nb2  # used to have a program named 
'animate'
+
+.include "../../graphics/jasper/buildlink3.mk"
+.include "../../graphics/libwmf/buildlink3.mk"
+
+.else
+CONFIGURE_ARGS+=       --without-x
+.endif
+
  .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
  GCC_REQD+=             3.0
  .endif
@@ -44,10 +51,8 @@
  CONFIGURE_ARGS+=       --without-perl

  .include "../../archivers/bzip2/buildlink3.mk"
- -.include "../../graphics/jasper/buildlink3.mk"
  .include "../../graphics/lcms/buildlink3.mk"
  .include "../../graphics/libexif/buildlink3.mk"
- -.include "../../graphics/libwmf/buildlink3.mk"
  .include "../../graphics/tiff/buildlink3.mk"

  .include "../../mk/bsd.pkg.mk"


regards

- -------------------------
iMil <imil@home.imil.net>                                                 _
      http://gcu-squad.org                          ASCII ribbon campaign ( )
                                                     - against HTML email  X
                                                                 & vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFBwYP7FG3BlGWyzUIRArHCAJ42jYBOMU1qAITtrT+iSHoq4kMadQCghuXp
nSj5v7zCvQVOGpF2kxkqf1U=
=/35P
-----END PGP SIGNATURE-----