From 47471a2a828c48e9671bb5947df3f5db1019b1d6 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 11 Sep 2015 23:27:46 +0000 Subject: multimedia/pHash: add new port PR: 202635 Submitted by: Naram Qashat pHash is an open source software library released under the GPLv3 license that implements several perceptual hashing algorithms, and provides a C-like API to use those functions in your own programs. pHash itself is written in C++. http://phash.org/ --- multimedia/pHash/Makefile | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 multimedia/pHash/Makefile (limited to 'multimedia/pHash/Makefile') diff --git a/multimedia/pHash/Makefile b/multimedia/pHash/Makefile new file mode 100644 index 000000000000..795554abf884 --- /dev/null +++ b/multimedia/pHash/Makefile @@ -0,0 +1,57 @@ +# Created by: Naram Qashat +# $FreeBSD$ + +PORTNAME= pHash +PORTVERSION= 0.9.6 +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 # or any later version + +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:${PORTSDIR}/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:${PORTSDIR}/graphics/png + +AUDIO_CONFIGURE_ENABLE= audio-hash +AUDIO_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile \ + libsamplerate.so:${PORTSDIR}/audio/libsamplerate \ + libmpg123.so:${PORTSDIR}/audio/mpg123 + +IMAGE_CONFIGURE_ENABLE= image-hash +IMAGE_BUILD_DEPENDS= ${LOCALBASE}/include/CImg.h:${PORTSDIR}/graphics/cimg +IMAGE_RUN_DEPENDS= ${LOCALBASE}/include/CImg.h:${PORTSDIR}/graphics/cimg + +VIDEO_CONFIGURE_ENABLE= video-hash +VIDEO_BUILD_DEPENDS= ${LOCALBASE}/include/CImg.h:${PORTSDIR}/graphics/cimg +VIDEO_RUN_DEPENDS= ${LOCALBASE}/include/CImg.h:${PORTSDIR}/graphics/cimg +VIDEO_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg + +.include -- cgit v1.2.3