diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-12-20 16:21:19 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-12-20 16:21:19 +0000 |
commit | e4d3fabab0126a23b2796482c3036a97dbb5e0f4 (patch) | |
tree | 7f20212499f8b10e8d2951a73cca37499b308c11 /audio/mp3stat | |
parent | f128b7ec12fb576d077cfff6438e1074c8597cf5 (diff) | |
download | ports-e4d3fabab0126a23b2796482c3036a97dbb5e0f4.tar.gz ports-e4d3fabab0126a23b2796482c3036a97dbb5e0f4.zip |
Notes
Diffstat (limited to 'audio/mp3stat')
-rw-r--r-- | audio/mp3stat/Makefile | 32 | ||||
-rw-r--r-- | audio/mp3stat/files/patch-base.cpp | 9 | ||||
-rw-r--r-- | audio/mp3stat/files/patch-input__vorbis__oggstat.cpp | 7 | ||||
-rw-r--r-- | audio/mp3stat/files/patch-ui__console__cli.cpp | 9 |
4 files changed, 42 insertions, 15 deletions
diff --git a/audio/mp3stat/Makefile b/audio/mp3stat/Makefile index 8ec17b87a11d..87402405e548 100644 --- a/audio/mp3stat/Makefile +++ b/audio/mp3stat/Makefile @@ -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> diff --git a/audio/mp3stat/files/patch-base.cpp b/audio/mp3stat/files/patch-base.cpp new file mode 100644 index 000000000000..dbb26395a441 --- /dev/null +++ b/audio/mp3stat/files/patch-base.cpp @@ -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> + diff --git a/audio/mp3stat/files/patch-input__vorbis__oggstat.cpp b/audio/mp3stat/files/patch-input__vorbis__oggstat.cpp new file mode 100644 index 000000000000..0871455a927c --- /dev/null +++ b/audio/mp3stat/files/patch-input__vorbis__oggstat.cpp @@ -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; diff --git a/audio/mp3stat/files/patch-ui__console__cli.cpp b/audio/mp3stat/files/patch-ui__console__cli.cpp new file mode 100644 index 000000000000..04d31adc1d19 --- /dev/null +++ b/audio/mp3stat/files/patch-ui__console__cli.cpp @@ -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; |