2013-08-03 08:45:51 +00:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2006-11-02 20:35:49 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fdmf
|
2010-04-25 14:01:24 +00:00
|
|
|
DISTVERSION= 0.0.9s
|
2014-01-16 17:58:47 +00:00
|
|
|
PORTREVISION= 5
|
2006-11-02 20:35:49 +00:00
|
|
|
CATEGORIES= audio
|
2007-04-18 08:01:25 +00:00
|
|
|
MASTER_SITES= http://w140.com/audio/ CENKES
|
2006-11-02 20:35:49 +00:00
|
|
|
|
2008-09-07 00:19:05 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-11-02 20:35:49 +00:00
|
|
|
COMMENT= Find similar music by perceptual hashing
|
|
|
|
|
2013-12-11 14:35:36 +00:00
|
|
|
LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm \
|
|
|
|
libplot.so:${PORTSDIR}/graphics/plotutils \
|
|
|
|
libfftw3.so:${PORTSDIR}/math/fftw3
|
2006-11-02 20:35:49 +00:00
|
|
|
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
|
|
|
|
mpg123:${PORTSDIR}/audio/mpg123 \
|
|
|
|
ogg123:${PORTSDIR}/audio/vorbis-tools \
|
|
|
|
p5-GDBM>=0:${PORTSDIR}/databases/p5-GDBM
|
|
|
|
|
2014-01-16 17:58:47 +00:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
SHEBANG_FILES= ${SCRS}
|
2006-11-02 20:35:49 +00:00
|
|
|
CFLAGS= -I${LOCALBASE}/include -L. -L${LOCALBASE}/lib
|
|
|
|
MAKE_ENV= VPATH=common
|
|
|
|
PORTDOCS= README
|
|
|
|
BINS= sonic_reducer vector_pairs
|
|
|
|
SCRS= ${PORTNAME} ${PORTNAME}_bench cleanup_dups optparam
|
2006-11-06 20:33:46 +00:00
|
|
|
PLIST_FILES= ${BINS:S,^,bin/,} ${SCRS:S,^,bin/,}
|
2006-11-02 20:35:49 +00:00
|
|
|
|
2014-01-16 17:58:47 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-01-03 15:26:06 +00:00
|
|
|
|
2006-11-02 20:35:49 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee '/^(CFLAGS|CC) =/s|.*||' -e 's|common/||g' ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
2014-01-16 17:58:47 +00:00
|
|
|
${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${SCRS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2006-11-02 20:35:49 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|