blob: 992d5b9b507aeb7490aab302a9967bd38cc5e03e (
plain) (
blame)
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
|
# New ports collection makefile for: mp3gain
# Date created: 5 September 2002
# Whom: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
#
# $FreeBSD$
#
PORTNAME= mp3gain
PORTVERSION= 1.3.2
CATEGORIES= audio
MASTER_SITES= http://www.mpex.net/software/mirror/ \
http://www.speakeasy.net/~djkarmad/mp3gain/
DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//g}_src${EXTSUFFIX}
MAINTAINER= corecode@corecode.ath.cx
COMMENT= A tool to normalize the gain of mp3 files
USE_REINPLACE= yes
USE_ZIP= yes
NO_WRKSUBDIR= yes
MAKE_ENV= PREFIX="${PREFIX}"
pre-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s/`/usr/bin/printf '\r'`//"
post-patch:
@${REINPLACE_CMD} -e '906,943s,/?,-h,;921,945s,/,-,g' ${WRKSRC}/mp3gain.c
@${REINPLACE_CMD} -e 's,\\,/,' ${WRKSRC}/mpglibDBL/interface.h
@${CP} ${FILESDIR}/Makefile.main ${WRKSRC}/Makefile
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/mpglibDBL/Makefile
.include <bsd.port.mk>
|