1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Fix build with clang

PR:		190800
This commit is contained in:
Martin Wilke 2014-06-27 14:26:24 +00:00
parent ceb44743f2
commit b2c9b0f2dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359541
2 changed files with 14 additions and 6 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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();