aboutsummaryrefslogtreecommitdiff
path: root/audio/mp3asm
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-11-08 05:59:05 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-11-08 05:59:05 +0000
commit942544505c1aeb7c855f4693ae8e91d681d2acc5 (patch)
tree2919c11fb7fe83d561585c380dc36a50860fd9db /audio/mp3asm
parent6cfc36ad7677be1fd592364965b798e83a858fa4 (diff)
downloadports-942544505c1aeb7c855f4693ae8e91d681d2acc5.tar.gz
ports-942544505c1aeb7c855f4693ae8e91d681d2acc5.zip
Notes
Diffstat (limited to 'audio/mp3asm')
-rw-r--r--audio/mp3asm/Makefile23
-rw-r--r--audio/mp3asm/files/patch-src::mp3asm.h10
-rw-r--r--audio/mp3asm/files/patch-utils.c (renamed from audio/mp3asm/files/patch-src::utils.c)0
-rw-r--r--audio/mp3asm/pkg-plist4
4 files changed, 12 insertions, 25 deletions
diff --git a/audio/mp3asm/Makefile b/audio/mp3asm/Makefile
index 9deec2afe7df..b7c7b614e5f8 100644
--- a/audio/mp3asm/Makefile
+++ b/audio/mp3asm/Makefile
@@ -13,28 +13,29 @@ COMMENT= MP3 frame level editor
LICENSE= GPLv2
-NO_STAGE= yes
-
USES= gmake
USE_BZIP2= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-0.1
+PLIST_FILES= bin/mp3asm
+PORTDOCS= Changelog README
+
+.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|getprogname|_getprogname|g' ${WRKSRC}/src/mp3asm.c
+ ${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:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for i in Changelog README
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
diff --git a/audio/mp3asm/files/patch-src::mp3asm.h b/audio/mp3asm/files/patch-src::mp3asm.h
deleted file mode 100644
index aabba2f6f270..000000000000
--- a/audio/mp3asm/files/patch-src::mp3asm.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/mp3asm.h.orig Fri Jul 20 11:17:05 2001
-+++ src/mp3asm.h Fri Jul 20 11:17:58 2001
-@@ -30,7 +30,6 @@
- #include <stdlib.h>
- #include <string.h>
- #include <sysexits.h>
--#include <argz.h>
- #include <ctype.h>
-
- #define LOGBUFSIZE 4096
diff --git a/audio/mp3asm/files/patch-src::utils.c b/audio/mp3asm/files/patch-utils.c
index a4be43497def..a4be43497def 100644
--- a/audio/mp3asm/files/patch-src::utils.c
+++ b/audio/mp3asm/files/patch-utils.c
diff --git a/audio/mp3asm/pkg-plist b/audio/mp3asm/pkg-plist
deleted file mode 100644
index 7c8461876703..000000000000
--- a/audio/mp3asm/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/mp3asm
-%%PORTDOCS%%%%DOCSDIR%%/Changelog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%