Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2019 18:00:56 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498734 - head/graphics/leptonica
Message-ID:  <201904121800.x3CI0ubl097645@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Apr 12 18:00:56 2019
New Revision: 498734
URL: https://svnweb.freebsd.org/changeset/ports/498734

Log:
  graphics/leptonica: add options
  
  PR:		236087
  Submitted by:	rozhuk.im@gmail.com
  Approved by:	maintainer timeout (hiroto.kagotani@gmail.com, >6 weeks>

Modified:
  head/graphics/leptonica/Makefile   (contents, props changed)
  head/graphics/leptonica/pkg-plist   (contents, props changed)

Modified: head/graphics/leptonica/Makefile
==============================================================================
--- head/graphics/leptonica/Makefile	Fri Apr 12 17:41:19 2019	(r498733)
+++ head/graphics/leptonica/Makefile	Fri Apr 12 18:00:56 2019	(r498734)
@@ -3,22 +3,17 @@
 
 PORTNAME=	leptonica
 PORTVERSION=	1.76.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 MAINTAINER=	hiroto.kagotani@gmail.com
 COMMENT=	C library for efficient image processing and image analysis operations
 
-LIB_DEPENDS=	libgif.so:graphics/giflib \
-		libopenjp2.so:graphics/openjpeg \
-		libpng.so:graphics/png \
-		libtiff.so:graphics/tiff \
-		libwebp.so:graphics/webp
-
 LICENSE_FILE=	leptonica-license.txt
 
 CONFLICTS=	leptonlib-[0-9]*
 
-USES=		autoreconf jpeg libtool pathfix pkgconfig
+USES=		autoreconf libtool pathfix pkgconfig
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	DanBloomberg
@@ -28,6 +23,26 @@ USE_LDCONFIG=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 INSTALL_TARGET=	install-strip
+
+OPTIONS_DEFINE=		BIN GIF JPEG JPEG2000 PNG TIFF WEBP ZLIB
+OPTIONS_DEFAULT=	BIN GIF JPEG PNG TIFF WEBP ZLIB
+OPTIONS_SUB=		yes
+
+BIN_DESC=		Build additional programs
+BIN_CONFIGURE_ENABLE=	programs
+GIF_LIB_DEPENDS=	libgif.so:graphics/giflib
+GIF_CONFIGURE_WITH=	giflib
+JPEG_USES=		jpeg
+JPEG_CONFIGURE_WITH=	jpeg
+JPEG2000_LIB_DEPENDS=	libopenjp2.so:graphics/openjpeg
+JPEG2000_CONFIGURE_WITH=libopenjpeg
+PNG_LIB_DEPENDS=	libpng.so:graphics/png
+PNG_CONFIGURE_WITH=	libpng
+TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
+TIFF_CONFIGURE_WITH=	libtiff
+WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
+WEBP_CONFIGURE_WITH=	libwebp
+ZLIB_CONFIGURE_WITH=	zlib
 
 TESTS?=	generate compare
 .if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)

Modified: head/graphics/leptonica/pkg-plist
==============================================================================
--- head/graphics/leptonica/pkg-plist	Fri Apr 12 17:41:19 2019	(r498733)
+++ head/graphics/leptonica/pkg-plist	Fri Apr 12 18:00:56 2019	(r498734)
@@ -1,12 +1,12 @@
-bin/convertfilestopdf
-bin/convertfilestops
-bin/convertformat
-bin/convertsegfilestopdf
-bin/convertsegfilestops
-bin/converttopdf
-bin/converttops
-bin/fileinfo
-bin/xtractprotos
+%%BIN%%bin/convertfilestopdf
+%%BIN%%bin/convertfilestops
+%%BIN%%bin/convertformat
+%%BIN%%bin/convertsegfilestopdf
+%%BIN%%bin/convertsegfilestops
+%%BIN%%bin/converttopdf
+%%BIN%%bin/converttops
+%%BIN%%bin/fileinfo
+%%BIN%%bin/xtractprotos
 include/leptonica/allheaders.h
 include/leptonica/alltypes.h
 include/leptonica/array.h



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