blob: acd065c7dcc3d8b7317b169ec82669b3b25e53b7 (
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
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= mp3asm
PORTVERSION= 0.1.3.1
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.1.3-1
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= MP3 frame level editor
LICENSE= GPLv2
USES= gmake
USE_BZIP2= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-0.1
PLIST_FILES= bin/mp3asm
PORTDOCS= Changelog README
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-extract:
@${RM} ${WRKSRC}/config.cache
post-patch:
${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|#include <argz.h>||' \
-e 's|getprogname|_getprogname|g' \
-e 's|\([ (!]\)\(log[\.;]\)|\1mp3asm\2|g' \
${WRKSRC}/src/mp3asm.h ${WRKSRC}/src/*.c
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
|