1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/graphics/libraw/Makefile
Jason E. Hale 5ac4397c90 Update to 0.18.5
This addresses CVE-2017-14265, CVE-2017-14348, and CVE-2017-14608
Use FreeBSD libc strnlen and strcasestr functions instead of bundled [1]

PR:		219029 [1]
Submitted by:	mi [1]
MFH:		2017Q3
Security:	4cd857d9-26d2-4417-b765-69701938f9e0
Security:	d9f96741-47bd-4426-9aba-8736c0971b24
Security:	02bee9ae-c5d1-409b-8a79-983a88861509
2017-09-29 20:12:38 +00:00

73 lines
2.1 KiB
Makefile

# Created by: Sergey A. Osokin <osa@FreeBSD.org>
# $FreeBSD$
PORTNAME= libraw
PORTVERSION= 0.18.5
CATEGORIES= graphics
MASTER_SITES= http://www.libraw.org/data/
DISTNAME= LibRaw-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Library for manipulating raw images
LICENSE= LGPL21 CDDL
LICENSE_COMB= dual
USE_LDCONFIG= yes
USES= cpe libtool localbase pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-examples
INSTALL_TARGET= install-strip
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DEMOSAIC_PACK_GPL2 DEMOSAIC_PACK_GPL3 \
DOCS EXAMPLES JASPER JPEG LCMS2 OPENMP
OPTIONS_DEFINE_i386= OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= JPEG LCMS2
DEMOSAIC_PACK_GPL2_DESC= GPLv2 demosaic pack
DEMOSAIC_PACK_GPL2_CONFIGURE_OFF= --disable-demosaic-pack-gpl2
DEMOSAIC_PACK_GPL2_CONFIGURE_ON= --enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTVERSION}
DEMOSAIC_PACK_GPL2_DISTFILES= LibRaw-demosaic-pack-GPL2-${PORTVERSION}.tar.gz
DEMOSAIC_PACK_GPL2_VARS= LICENSE=GPLv2+ \
LICENSE_COMB=single
DEMOSAIC_PACK_GPL3_DESC= GPLv3 demosaic pack
DEMOSAIC_PACK_GPL3_CONFIGURE_OFF= --disable-demosaic-pack-gpl3
DEMOSAIC_PACK_GPL3_CONFIGURE_ON= --enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-${PORTVERSION}
DEMOSAIC_PACK_GPL3_DISTFILES= LibRaw-demosaic-pack-GPL3-${PORTVERSION}.tar.gz
DEMOSAIC_PACK_GPL3_VARS= LICENSE=GPLv3+ \
LICENSE_COMB=single
JASPER_CONFIGURE_ENABLE= jasper
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
JPEG_CONFIGURE_ENABLE= jpeg
JPEG_USES= jpeg
LCMS2_CONFIGURE_ENABLE= lcms
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
OPENMP_DESC= OpenMP support (implies GCC)
OPENMP_CONFIGURE_ENABLE= openmp
OPENMP_USES= compiler:openmp
OPTIMIZED_CFLAGS_CFLAGS= -O3
# Use "\*" instead of "." in COPYTREE_SHARE commands as "." has
# the undesired effect of copying ".deps" directory
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && \
${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/samples && \
${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>