freebsd-ports/multimedia/pHash/Makefile
Jan Beich 84e727457f multimedia/ffmpeg: update to 3.4
Notable changes:
- i386/amd64 now depend on NASM per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4f9297ac3b39
- NETCDF is now MYSOFA but the dependency doesn't exist in ports yet
- SCHROEDINGER is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/220b24c7c9
- DRM, LIBRSVG2, LIBXML2 are new options
- ABI isn't completely compatible: some structs have changed

Minor cleanup:
- Don't pass --disable-{in,out}dev when it's already blocked by disabled dependency
- Drop redundant "Enable" from option descriptions
- Switch CDIO_DESC to use Mk/bsd.options.desc.mk

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.4:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR:		223057
Exp-run by:	antoine
2017-10-21 06:50:49 +00:00

62 lines
1.6 KiB
Makefile

# Created by: Naram Qashat <cyberbotx@cyberbotx.com>
# $FreeBSD$
PORTNAME= pHash
PORTVERSION= 0.9.6
PORTREVISION= 7
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>