From owner-svn-ports-head@FreeBSD.ORG Tue Sep 25 20:38:04 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 255A6106566C; Tue, 25 Sep 2012 20:38:04 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 101288FC08; Tue, 25 Sep 2012 20:38:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8PKc3mD091608; Tue, 25 Sep 2012 20:38:03 GMT (envelope-from glarkin@svn.freebsd.org) Received: (from glarkin@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8PKc3vf091606; Tue, 25 Sep 2012 20:38:03 GMT (envelope-from glarkin@svn.freebsd.org) Message-Id: <201209252038.q8PKc3vf091606@svn.freebsd.org> From: Greg Larkin Date: Tue, 25 Sep 2012 20:38:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304860 - head/graphics/GraphicsMagick12 X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 20:38:04 -0000 Author: glarkin Date: Tue Sep 25 20:38:03 2012 New Revision: 304860 URL: http://svn.freebsd.org/changeset/ports/304860 Log: - Fixed X11-conditional dependency injection - Converted to optionsNG - Bumped PORTREVISION Requested by: Mark Felder Modified: head/graphics/GraphicsMagick12/Makefile Modified: head/graphics/GraphicsMagick12/Makefile ============================================================================== --- head/graphics/GraphicsMagick12/Makefile Tue Sep 25 20:20:32 2012 (r304859) +++ head/graphics/GraphicsMagick12/Makefile Tue Sep 25 20:38:03 2012 (r304860) @@ -7,7 +7,7 @@ PORTNAME= GraphicsMagick PORTVERSION= 1.2.10 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= SF \ ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.2/ @@ -21,17 +21,20 @@ CONFLICTS= GraphicsMagick-1.[13].* LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \ png15:${PORTSDIR}/graphics/png \ jbig:${PORTSDIR}/graphics/jbigkit \ - wmflite:${PORTSDIR}/graphics/libwmf \ xml2:${PORTSDIR}/textproc/libxml2 OTHERGRAPHICS= jasper jpeg lcms tiff LIB_DEPENDS+= ${OTHERGRAPHICS:C|(.+)|\1:${PORTSDIR}/graphics/\1|} -OPTIONS= Q8BIT "Use 8-bit pixels (speed) instead of 16 (quality)" off \ - FPX "Enable FlashPIX support" on \ - DPS "Enable Display Ghostscript support" on \ - OPENMP "Enable OpenMP support" off \ - SSE "Enable SSE opcodes on supported CPUs" off \ - X11 "Enable X11 support" on \ - TESTS "Run bundled self-tests after build" on + +OPTIONS_DEFINE= Q8BIT FPX OPENMP SSE TESTS X11 DOCS + +Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16 (quality) +DPS_DESC= Enable Display Ghostscript support +NODPS_DESC= Disable Display Ghostscript support +TESTS_DESC= Run bundled self-tests after build + +OPTIONS_DEFAULT=FPX DPS OPENMP X11 TESTS DOCS +OPTIONS_SINGLE= X11 +OPTIONS_SINGLE_X11= DPS NODPS USE_ICONV= yes USE_AUTOTOOLS= libtool libltdl @@ -61,15 +64,15 @@ LDFLAGS+= -L${LOCALBASE}/lib test check: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check -.include +.include -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} == "" # Get rid of the Makefile targets that install the documentation # and HTML files into DOCSDIR EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in .endif -.if defined(WITH_SSE) +.if ${PORT_OPTIONS:MSSE} .if ${MACHINE_CPU:Msse} CFLAGS+= -msse .endif @@ -81,21 +84,21 @@ CFLAGS+= -msse3 .endif .endif -.if defined(WITH_FPX) +.if ${PORT_OPTIONS:MFPX} LIB_DEPENDS+= fpx.[2-9]:${PORTSDIR}/graphics/libfpx CONFIGURE_ARGS+= --with-fpx .else CONFIGURE_ARGS+= --without-fpx .endif -.if defined(WITH_DPS) +.if ${PORT_OPTIONS:MDPS} LIB_DEPENDS+= dps:${PORTSDIR}/x11/dgs CONFIGURE_ARGS+= --with-dps .else CONFIGURE_ARGS+= --without-dps .endif -.if defined(WITH_OPENMP) +.if ${PORT_OPTIONS:MOPENMP} .if ${OSVERSION} < 700042 IGNORE= does not support OpenMP on FreeBSD version ${OSVERSION} .endif @@ -115,12 +118,15 @@ WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fo CONFIGURE_ARGS+= --with-windows-font-dir="${WINDOWS_FONT_DIR}" .endif -.if !defined(WITH_X11) +.if ${PORT_OPTIONS:MX11} == "" PKGNAMESUFFIX+= -nox11 CONFIGURE_ARGS+=--without-x +LIB_DEPENDS+= wmflite:${PORTSDIR}/graphics/libwmf-nox11 +.else +LIB_DEPENDS+= wmflite:${PORTSDIR}/graphics/libwmf .endif -.if defined(WITH_Q8BIT) || defined(WITHOUT_GRAPHICSMAGICK_16BIT_PIXEL) +.if ${PORT_OPTIONS:MQ8BIT} CONFIGURE_ARGS+= --with-quantum-depth=8 PLIST_SUB+= Q=8 .else @@ -128,7 +134,7 @@ CONFIGURE_ARGS+= --with-quantum-depth=16 PLIST_SUB+= Q=16 .endif -.if !defined(WITHOUT_TESTS) +.if ${PORT_OPTIONS:MTESTS} post-build:: test .else post-build:: @@ -138,4 +144,4 @@ post-build:: # .endif -.include +.include