mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Fix build with clang
- Update MASTER_SITES - Support staging PR: ports/184863 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
f128b7ec12
commit
e4d3fabab0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337033
@ -19,12 +19,12 @@ OPTIONS_DEFAULT= VORBIS
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
USES= gmake pkgconfig
|
||||
NO_STAGE= yes
|
||||
USES= dos2unix gmake pkgconfig
|
||||
DOS2UNIX_FILES= ui/console/cli.cpp
|
||||
USE_GNOME= gtk20
|
||||
|
||||
CXX+= -I${LOCALBASE}/include -L${LOCALBASE}/lib \
|
||||
-Wl,--rpath,${LOCALBASE}/lib
|
||||
CXXFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -Wl,--rpath,${LOCALBASE}/lib
|
||||
|
||||
PORTDOCS= README
|
||||
PLIST_FILES= bin/mp3stat \
|
||||
@ -46,23 +46,25 @@ post-patch:
|
||||
@${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|@$${CXX}|$${CXX}|g ; \
|
||||
s|-ldl|-lz|g ; \
|
||||
s|-lc||g ; \
|
||||
s|-lc|$${LDFLAGS}|g ; \
|
||||
s|-Wl,-soname,.*\.so\.1||g ; \
|
||||
s|-fpic|-fPIC|g ; \
|
||||
s|^CXX|#CXX|g'
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mp3stat ${PREFIX}/bin
|
||||
@${MKDIR} ${PREFIX}/lib/mp3stat
|
||||
${INSTALL_DATA} ${WRKSRC}/ui/gtk/ui_gtk2.so ${PREFIX}/lib/mp3stat
|
||||
${INSTALL_DATA} ${WRKSRC}/ui/console/ui_console.so ${PREFIX}/lib/mp3stat
|
||||
${INSTALL_DATA} ${WRKSRC}/input/mp3/input_mp3.so ${PREFIX}/lib/mp3stat
|
||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} mp3stat ${STAGEDIR}${PREFIX}/bin)
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/mp3stat
|
||||
(cd ${WRKSRC}/ui/gtk && ${INSTALL_DATA} ui_gtk2.so \
|
||||
${STAGEDIR}${PREFIX}/lib/mp3stat)
|
||||
(cd ${WRKSRC}/ui/console && ${INSTALL_DATA} ui_console.so \
|
||||
${STAGEDIR}${PREFIX}/lib/mp3stat)
|
||||
(cd ${WRKSRC}/input/mp3 && ${INSTALL_DATA} input_mp3.so \
|
||||
${STAGEDIR}${PREFIX}/lib/mp3stat)
|
||||
.if ${PORT_OPTIONS:MVORBIS}
|
||||
${INSTALL_DATA} ${WRKSRC}/input/vorbis/input_vorb.so ${PREFIX}/lib/mp3stat
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
(cd ${WRKSRC}/input/vorbis && ${INSTALL_DATA} input_vorb.so \
|
||||
${STAGEDIR}${PREFIX}/lib/mp3stat)
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
9
audio/mp3stat/files/patch-base.cpp
Normal file
9
audio/mp3stat/files/patch-base.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
--- base.cpp.orig
|
||||
+++ base.cpp
|
||||
@@ -1,4 +1,5 @@
|
||||
-#include <stdio.h>
|
||||
+#include <cstdio>
|
||||
+#include <cstdlib>
|
||||
#include <dlfcn.h>
|
||||
#include <dirent.h>
|
||||
|
7
audio/mp3stat/files/patch-input__vorbis__oggstat.cpp
Normal file
7
audio/mp3stat/files/patch-input__vorbis__oggstat.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
--- input/vorbis/oggstat.cpp.orig
|
||||
+++ input/vorbis/oggstat.cpp
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <cstdlib>
|
||||
#include "oggstat.h"
|
||||
|
||||
using namespace std;
|
9
audio/mp3stat/files/patch-ui__console__cli.cpp
Normal file
9
audio/mp3stat/files/patch-ui__console__cli.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
--- ui/console/cli.cpp.orig
|
||||
+++ ui/console/cli.cpp
|
||||
@@ -1,4 +1,5 @@
|
||||
-#include <stdio.h>
|
||||
+#include <cstdio>
|
||||
+#include <cstdlib>
|
||||
#include "cli.h"
|
||||
|
||||
using namespace std;
|
Loading…
Reference in New Issue
Block a user