Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2013 18:06:30 GMT
From:      Scot Hetzel <swhetzel@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180175: graphics/jasper:
Message-ID:  <201307011806.r61I6UAc028610@oldred.freebsd.org>
Resent-Message-ID: <201307011810.r61IA0XA073924@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180175
>Category:       ports
>Synopsis:       graphics/jasper:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 01 18:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Scot Hetzel
>Release:        
>Organization:
>Environment:
>Description:
Currently, jasper only has a dependency on graphics/jpeg.

Change the port to allow it to depend on either graphics/jpeg or graphics/libjpeg-turbo
>How-To-Repeat:

>Fix:
The attached patch allows the port to depend on either graphics/jpeg or graphics/libjpeg-turbo.  By default the port will use graphics/jpeg unless the HPJPG option is selected.

Note:  This patch will require the recently submitted PR ports/1801&#8203;59 which adds a new USES jpeg feature to select between the 2 jpeg ports.

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 322133)
+++ Makefile	(working copy)
@@ -12,8 +12,6 @@
 MAINTAINER=	dinoex@FreeBSD.org
 COMMENT=	An implementation of the codec specified in the JPEG-2000 standard
 
-LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
-
 LICENSE=	MIT
 
 USE_AUTOTOOLS=	libtool
@@ -30,11 +28,18 @@
 	ftp://ftp.imagemagick.org/pub/%SUBDIR%/ \
 	${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/&,}
 
-OPTIONS_DEFINE= OPENGL UUID
+OPTIONS_DEFINE= HPJPG OPENGL UUID
 UUID_DESC=	UUID support (required by GDAL)
+HPJPG_DESC=	Build with High-Performance JPEG support
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MHPJPG}
+USES+=	jpeg:turbo
+.else
+USES+=	jpeg
+.endif
+
 .if ${PORT_OPTIONS:MOPENGL}
 USE_XORG=	x11 xmu xi xext
 USE_GL=		glut


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307011806.r61I6UAc028610>