blob: 2b072eff14331a458d7dea02e6fdab1c73a99935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Matthias Andree <matthias.andree@gmx.de>
# $FreeBSD$
PORTNAME= squash
PORTVERSION= 1.0
PORTREVISION= 14
CATEGORIES= audio
MASTER_SITES= SAVANNAH
MAINTAINER= mandree@FreeBSD.org
COMMENT= Learning console-based MP3/OGG player
LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac \
libfftw.so:${PORTSDIR}/math/fftw \
libid3.so:${PORTSDIR}/audio/id3lib \
libmad.so:${PORTSDIR}/audio/libmad \
libvorbis.so:${PORTSDIR}/audio/libvorbis \
libao.so:${PORTSDIR}/audio/libao
RUN_DEPENDS= id3v2:${PORTSDIR}/audio/id3v2
USES= tar:bzip2 gmake
USE_RUBY= yes
MAKE_ARGS= CC="${CC}"
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e "s|--std=gnu99|--std=gnu99 ${CFLAGS}|; \
s|-Iinclude|-Iinclude -I${LOCALBASE}/include|; \
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:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/squash ${STAGEDIR}${PREFIX}/bin
.for FILE in collect_info edit_tag export_music import_music joystick uncollect_info
${INSTALL_SCRIPT} ${WRKSRC}/extra/${FILE}.rb ${STAGEDIR}${PREFIX}/bin
.endfor
${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
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README doc/FEATURES doc/LOCKS doc/INSTALL doc/USERS_GUIDE
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|