From b2c9b0f2dcdfc68a219ee54b7692c1d31501f4c6 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Fri, 27 Jun 2014 14:26:24 +0000 Subject: [PATCH] - Stage support - Fix build with clang PR: 190800 --- audio/streamtranscoder/Makefile | 9 +++------ .../streamtranscoder/files/patch-src-commandline.cpp | 11 +++++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 audio/streamtranscoder/files/patch-src-commandline.cpp diff --git a/audio/streamtranscoder/Makefile b/audio/streamtranscoder/Makefile index e86f5e236618..0542b5bff46a 100644 --- a/audio/streamtranscoder/Makefile +++ b/audio/streamtranscoder/Makefile @@ -3,7 +3,7 @@ PORTNAME= streamtranscoder PORTVERSION= 1.2.8 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= audio MASTER_SITES= http://www.oddsock.org/tools/streamTranscoder/ @@ -16,7 +16,6 @@ LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \ libcurl.so:${PORTSDIR}/ftp/curl \ libmp3lame.so:${PORTSDIR}/audio/lame -NO_STAGE= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -37,9 +36,7 @@ post-patch: ${WRKSRC}/src/libtranscoder/transcurl.cpp post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include diff --git a/audio/streamtranscoder/files/patch-src-commandline.cpp b/audio/streamtranscoder/files/patch-src-commandline.cpp new file mode 100644 index 000000000000..2dfb700fb05f --- /dev/null +++ b/audio/streamtranscoder/files/patch-src-commandline.cpp @@ -0,0 +1,11 @@ +--- src/commandline.cpp.orig 2014-06-08 18:46:55.585823061 +0100 ++++ src/commandline.cpp 2014-06-08 18:47:13.735820885 +0100 +@@ -221,7 +221,7 @@ + return 1; + } + +-main(int argc, char **argv) { ++int main(int argc, char **argv) { + int processID = 0; + transcode_init(argc, argv); + return transcode_main();