freebsd-ports/multimedia/pHash/Makefile
Jan Beich 47471a2a82 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/
2015-09-11 23:27:46 +00:00

57 lines
1.6 KiB
Makefile

# 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>