2013-08-30 23:01:05 +00:00
|
|
|
# Created by: Matthias Andree <matthias.andree@gmx.de>
|
2003-11-22 22:32:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= squash
|
2004-02-26 18:51:43 +00:00
|
|
|
PORTVERSION= 1.0
|
2014-03-10 20:55:20 +00:00
|
|
|
PORTREVISION= 11
|
2003-11-22 22:32:00 +00:00
|
|
|
CATEGORIES= audio
|
2004-02-26 18:51:43 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2003-11-22 22:32:00 +00:00
|
|
|
|
2010-06-13 11:57:36 +00:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2003-11-22 22:32:00 +00:00
|
|
|
COMMENT= Learning console-based MP3/OGG player
|
|
|
|
|
2013-12-11 14:35:36 +00:00
|
|
|
LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac \
|
|
|
|
libfftw.so:${PORTSDIR}/math/fftw \
|
|
|
|
libid3.so:${PORTSDIR}/audio/id3lib \
|
|
|
|
libmad.so:${PORTSDIR}/audio/mad \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libao.so:${PORTSDIR}/audio/libao
|
2003-11-22 22:32:00 +00:00
|
|
|
RUN_DEPENDS= id3v2:${PORTSDIR}/audio/id3v2
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2013-08-30 23:01:05 +00:00
|
|
|
USES= gmake
|
2003-11-22 22:32:00 +00:00
|
|
|
USE_RUBY= yes
|
2013-09-13 00:32:17 +00:00
|
|
|
MAKE_ARGS= CC=${CC}
|
|
|
|
|
2014-02-21 13:35:10 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2013-09-13 00:32:17 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-02-26 18:51:43 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
2003-11-22 22:32:00 +00:00
|
|
|
|
|
|
|
post-patch:
|
2004-02-26 18:51:43 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|--std=gnu99|--std=gnu99 ${CFLAGS} ${PTHREAD_CFLAGS}|; \
|
2003-11-22 22:32:00 +00:00
|
|
|
s|-Iinclude|-Iinclude -I${LOCALBASE}/include|; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|; s|-ldl|-L${LOCALBASE}/lib|" ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e "s,/usr/bin/ruby,${RUBY}," \
|
|
|
|
${WRKSRC}/extra/*.rb
|
|
|
|
@${REINPLACE_CMD} -e "s,/etc/squash.conf,${PREFIX}/etc/squash.conf," \
|
|
|
|
${WRKSRC}/src/global.c
|
|
|
|
|
|
|
|
do-install:
|
2013-12-14 09:52:41 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/squash ${STAGEDIR}${PREFIX}/bin
|
2003-11-22 22:32:00 +00:00
|
|
|
.for FILE in collect_info edit_tag export_music import_music joystick uncollect_info
|
2013-12-14 09:52:41 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/extra/${FILE}.rb ${STAGEDIR}${PREFIX}/bin
|
2003-11-22 22:32:00 +00:00
|
|
|
.endfor
|
2013-12-14 09:52:41 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/extra/musicdb_lib.rb ${STAGEDIR}${RUBY_SITELIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/extra/squash.conf ${STAGEDIR}${PREFIX}/etc/squash.conf.dist
|
2013-09-13 00:32:17 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-12-14 09:52:41 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2003-11-22 22:32:00 +00:00
|
|
|
.for i in README doc/FEATURES doc/LOCKS doc/INSTALL doc/USERS_GUIDE
|
2013-12-14 09:52:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2003-11-22 22:32:00 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2007-04-16 06:47:06 +00:00
|
|
|
.include <bsd.port.mk>
|