From owner-svn-ports-all@freebsd.org Fri Sep 11 23:27:48 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5683A022A8; Fri, 11 Sep 2015 23:27:48 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA34A1D29; Fri, 11 Sep 2015 23:27:48 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8BNRm8c004048; Fri, 11 Sep 2015 23:27:48 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8BNRlIS004039; Fri, 11 Sep 2015 23:27:47 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201509112327.t8BNRlIS004039@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 11 Sep 2015 23:27:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r396723 - in head/multimedia: . pHash pHash/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 23:27:49 -0000 Author: jbeich Date: Fri Sep 11 23:27:46 2015 New Revision: 396723 URL: https://svnweb.freebsd.org/changeset/ports/396723 Log: 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/ Added: head/multimedia/pHash/ head/multimedia/pHash/Makefile (contents, props changed) head/multimedia/pHash/distinfo (contents, props changed) head/multimedia/pHash/files/ head/multimedia/pHash/files/patch-src_pHash.cpp (contents, props changed) head/multimedia/pHash/pkg-descr (contents, props changed) head/multimedia/pHash/pkg-plist (contents, props changed) Modified: head/multimedia/Makefile (contents, props changed) Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Fri Sep 11 23:18:00 2015 (r396722) +++ head/multimedia/Makefile Fri Sep 11 23:27:46 2015 (r396723) @@ -279,6 +279,7 @@ SUBDIR += p5-Subtitles SUBDIR += p5-Umph-Prompt SUBDIR += p5-Video-OpenQuicktime + SUBDIR += pHash SUBDIR += phonon SUBDIR += phonon-designerplugin SUBDIR += phonon-gstreamer Added: head/multimedia/pHash/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/pHash/Makefile Fri Sep 11 23:27:46 2015 (r396723) @@ -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 Added: head/multimedia/pHash/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/pHash/distinfo Fri Sep 11 23:27:46 2015 (r396723) @@ -0,0 +1,2 @@ +SHA256 (pHash-0.9.6.tar.gz) = 3c8258a014f9c2491fb1153010984606805638a45d00498864968a9a30102935 +SIZE (pHash-0.9.6.tar.gz) = 1315965 Added: head/multimedia/pHash/files/patch-src_pHash.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/pHash/files/patch-src_pHash.cpp Fri Sep 11 23:27:46 2015 (r396723) @@ -0,0 +1,22 @@ +--- src/pHash.cpp.orig 2013-04-13 17:23:12 UTC ++++ src/pHash.cpp +@@ -34,14 +34,18 @@ + int ph_num_threads() + { + int numCPU = 1; +-#ifdef __GLIBC__ ++#ifdef _SC_NPROCESSORS_ONLN + numCPU = sysconf( _SC_NPROCESSORS_ONLN ); + #else + int mib[2]; + size_t len; + + mib[0] = CTL_HW; ++#ifdef HW_AVAILCPU + mib[1] = HW_AVAILCPU; ++#else ++ mib[1] = HW_NCPU; ++#endif + + sysctl(mib, 2, &numCPU, &len, NULL, 0); + Added: head/multimedia/pHash/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/pHash/pkg-descr Fri Sep 11 23:27:46 2015 (r396723) @@ -0,0 +1,5 @@ +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++. + +WWW: http://phash.org/ Added: head/multimedia/pHash/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/pHash/pkg-plist Fri Sep 11 23:27:46 2015 (r396723) @@ -0,0 +1,9 @@ +include/audiophash.h +include/pHash-config.h +include/pHash.h +include/ph_fft.h +lib/libpHash.a +lib/libpHash.so +lib/libpHash.so.0 +lib/libpHash.so.0.0.0 +libdata/pkgconfig/pHash.pc