freebsd-ports/multimedia/pHash/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

62 lines
1.6 KiB
Makefile

# Created by: Naram Qashat <cyberbotx@cyberbotx.com>
# $FreeBSD$
PORTNAME= pHash
PORTVERSION= 0.9.6
PORTREVISION= 12
CATEGORIES= multimedia devel
MASTER_SITES= http://phash.org/releases/ \
http://www.cyberbotx.com/pHash/
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Open source perceptual hash library
LICENSE= GPLv3+
USES= gmake libtool pathfix
GNU_CONFIGURE= yes
CONFIGURE_ENV= PTHREAD_LIBS="-lpthread"
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= DEBUG FFTW JPEG OPENMP PNG
OPTIONS_MULTI= HASHING
OPTIONS_MULTI_HASHING= AUDIO IMAGE VIDEO
OPTIONS_DEFAULT= FFTW JPEG PNG AUDIO IMAGE VIDEO
AUDIO_DESC= Enable audio hashing
IMAGE_DESC= Enable image hashing
VIDEO_DESC= Enable video hashing
DEBUG_CONFIGURE_ENABLE= debug
FFTW_CONFIGURE_WITH= fftw
FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3
JPEG_CONFIGURE_WITH= libjpeg
JPEG_USES= jpeg
OPENMP_CONFIGURE_ENABLE=openmp
OPENMP_USES= compiler:openmp
PNG_CONFIGURE_WITH= libpng
PNG_LIB_DEPENDS= libpng.so:graphics/png
AUDIO_CONFIGURE_ENABLE= audio-hash
AUDIO_LIB_DEPENDS= libsndfile.so:audio/libsndfile \
libsamplerate.so:audio/libsamplerate \
libmpg123.so:audio/mpg123
IMAGE_CONFIGURE_ENABLE= image-hash
IMAGE_BUILD_DEPENDS= ${LOCALBASE}/include/CImg.h:graphics/cimg
IMAGE_RUN_DEPENDS= ${LOCALBASE}/include/CImg.h:graphics/cimg
VIDEO_CONFIGURE_ENABLE= video-hash
VIDEO_BUILD_DEPENDS= ${LOCALBASE}/include/CImg.h:graphics/cimg
VIDEO_RUN_DEPENDS= ${LOCALBASE}/include/CImg.h:graphics/cimg
VIDEO_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
post-patch:
# Avoid USES=autoreconf while keeping configure.ac patch for reference
@${TOUCH} -r ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure.ac
.include <bsd.port.mk>