Date: Fri, 8 Nov 2013 05:59:05 +0000 (UTC) From: Dirk Meyer <dinoex@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333182 - in head/audio/mp3asm: . files Message-ID: <201311080559.rA85x5mV041657@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dinoex Date: Fri Nov 8 05:59:05 2013 New Revision: 333182 URL: http://svnweb.freebsd.org/changeset/ports/333182 Log: - Fix build with clang - use STAGEDIR - use OPTIONS_DEFINE - Use PLIST_FILES and PORTDOCS instead of PLIST PR: 183110 Submitted by: sunpoet (Sunpoet Po-Chuan Hsieh) - rename patchfiles - merge REINPLACE_CMD Added: head/audio/mp3asm/files/patch-utils.c - copied unchanged from r333181, head/audio/mp3asm/files/patch-src::utils.c Deleted: head/audio/mp3asm/files/patch-src::mp3asm.h head/audio/mp3asm/files/patch-src::utils.c head/audio/mp3asm/pkg-plist Modified: head/audio/mp3asm/Makefile Modified: head/audio/mp3asm/Makefile ============================================================================== --- head/audio/mp3asm/Makefile Fri Nov 8 05:29:43 2013 (r333181) +++ head/audio/mp3asm/Makefile Fri Nov 8 05:59:05 2013 (r333182) @@ -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> Copied: head/audio/mp3asm/files/patch-utils.c (from r333181, head/audio/mp3asm/files/patch-src::utils.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/mp3asm/files/patch-utils.c Fri Nov 8 05:59:05 2013 (r333182, copy of r333181, head/audio/mp3asm/files/patch-src::utils.c) @@ -0,0 +1,10 @@ +--- src/utils.c.orig Fri Jul 20 11:14:59 2001 ++++ src/utils.c Fri Jul 20 11:15:37 2001 +@@ -25,6 +25,7 @@ + #include "utils.h" + #include <unistd.h> + #include <stdio.h> ++#include <errno.h> + + /* + * tmalloc: mallocs cleanly
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311080559.rA85x5mV041657>