ports/180175: graphics/jasper:

Scot Hetzel swhetzel at gmail.com
Mon Jul 1 18:10:00 UTC 2013


>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​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 at 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:


More information about the freebsd-ports-bugs mailing list