summaryrefslogtreecommitdiff
path: root/multimedia/pHash/Makefile
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-09-11 23:27:46 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-09-11 23:27:46 +0000
commit47471a2a828c48e9671bb5947df3f5db1019b1d6 (patch)
tree0f84db6d703d1d80878c37a8674970bf20ba74ce /multimedia/pHash/Makefile
parentAdd vacation script dependencies (diff)
multimedia/pHash: add new port
PR: 202635 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> 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/
Notes
Notes: svn path=/head/; revision=396723
Diffstat (limited to 'multimedia/pHash/Makefile')
-rw-r--r--multimedia/pHash/Makefile57
1 files changed, 57 insertions, 0 deletions
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 <cyberbotx@cyberbotx.com>
+# $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 <bsd.port.mk>