summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-03-07 17:48:08 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-03-07 17:48:08 +0000
commitc00818c0fc59777d8f8f221194e8893e8ec7d7e9 (patch)
treed6ab3855f199aba64ec53b4b0c3885fd009123ae /multimedia
parentFix packaging with python 3.5 and also installs stripped shared (diff)
Fix build on 10.x+
PR: 206896 Submitted by: tkato432 yahoo com Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=410534
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/bombono/Makefile25
-rw-r--r--multimedia/bombono/files/patch-SConstruct11
-rw-r--r--multimedia/bombono/files/patch-src_mgui_ffviewer.cpp (renamed from multimedia/bombono/files/patch-src-mgui-ffviewer.cpp)0
-rw-r--r--multimedia/bombono/files/patch-src_mgui_stream__utils.h13
-rw-r--r--multimedia/bombono/files/patch-src_mlib_filesystem.cpp (renamed from multimedia/bombono/files/patch-src-mlib-filesystem.cpp)8
-rw-r--r--multimedia/bombono/files/patch-src_mlib_stream.h (renamed from multimedia/bombono/files/patch-stream.h)6
6 files changed, 45 insertions, 18 deletions
diff --git a/multimedia/bombono/Makefile b/multimedia/bombono/Makefile
index 425c663a4ca3..92417b62ede4 100644
--- a/multimedia/bombono/Makefile
+++ b/multimedia/bombono/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bombono
PORTVERSION= 1.2.2
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-dvd/${PORTVERSION:R}
DISTNAME= ${PORTNAME}-dvd-${PORTVERSION}
@@ -11,9 +11,11 @@ DISTNAME= ${PORTNAME}-dvd-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= DVD authoring program
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
BUILD_DEPENDS= gm:${PORTSDIR}/graphics/GraphicsMagick
-LIB_DEPENDS= libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24 \
- libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 \
+LIB_DEPENDS= libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 \
liblavfile.so:${PORTSDIR}/multimedia/mjpegtools \
libdvdread.so:${PORTSDIR}/multimedia/libdvdread \
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
@@ -23,8 +25,9 @@ RUN_DEPENDS= gm:${PORTSDIR}/graphics/GraphicsMagick \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
toolame:${PORTSDIR}/audio/toolame
-USES= gettext pkgconfig scons tar:bzip2
-USE_GCC= any
+USES= desktop-file-utils gettext pkgconfig scons shared-mime-info \
+ tar:bzip2
+USE_GNOME= gtkmm24
INSTALLS_ICONS= yes
CXXFLAGS+= -I${LOCALBASE}/include
@@ -34,14 +37,16 @@ MAKE_ARGS= DVDREAD_INCLUDE=${LOCALBASE}/include \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
CC="${CC}" CXX="${CXX}" USE_EXT_BOOST=true
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000023
-BROKEN= does not build on 10.x+
+USES+= compiler:gcc-c++11-lib
.endif
post-install:
- cd ${WRKSRC}/docs/man/man1 && ${INSTALL_MAN} bombono-dvd.1 \
- mpeg2demux.1 ${STAGEDIR}${MANPREFIX}/man/man1
+.for i in bombono-dvd mpeg2demux
+ ${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${i}.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
+.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/multimedia/bombono/files/patch-SConstruct b/multimedia/bombono/files/patch-SConstruct
index 921c1be3ba59..cda742672447 100644
--- a/multimedia/bombono/files/patch-SConstruct
+++ b/multimedia/bombono/files/patch-SConstruct
@@ -5,10 +5,19 @@
cxx_warn_flags = []
debug_flags = ['-g', '-O0']
-release_flags = ['-O2']
-+release_flags = ['']
++release_flags = []
defines = []
def CalcCommonFlags():
+@@ -69,7 +69,7 @@ def CalcCommonFlags():
+ global common_warn_flags, cxx_warn_flags, debug_flags, defines
+ if BV.IsGccCompiler():
+ # GCC
+- common_warn_flags = ['-ansi']
++ common_warn_flags = []
+ # -Wno-reorder - not to warn if not accurate order in ctor (let compiler do!)
+ # :TODO: why
+ # CXXCOM = $CXX -o $TARGET -c $CXXFLAGS $CCFLAGS ...
@@ -148,18 +148,6 @@ def AdjustConfigOptions(env):
#env.Replace (PATH = user_options_dict['PATH'])
#env.Replace (AR = user_options_dict['AR'])
diff --git a/multimedia/bombono/files/patch-src-mgui-ffviewer.cpp b/multimedia/bombono/files/patch-src_mgui_ffviewer.cpp
index 8580bbb87cca..8580bbb87cca 100644
--- a/multimedia/bombono/files/patch-src-mgui-ffviewer.cpp
+++ b/multimedia/bombono/files/patch-src_mgui_ffviewer.cpp
diff --git a/multimedia/bombono/files/patch-src_mgui_stream__utils.h b/multimedia/bombono/files/patch-src_mgui_stream__utils.h
new file mode 100644
index 000000000000..6884912e3e4d
--- /dev/null
+++ b/multimedia/bombono/files/patch-src_mgui_stream__utils.h
@@ -0,0 +1,13 @@
+--- src/mgui/stream_utils.h.orig 2013-03-07 21:20:45 UTC
++++ src/mgui/stream_utils.h
+@@ -42,8 +42,8 @@ class stream
+ stream(std::iostream& strm): io_strm(strm) {}
+
+ std::iostream& strm() { return io_strm; }
+- operator void*() const { return (void*)io_strm; }
+- bool operator!() const { return !operator void*(); }
++ operator bool() const { return static_cast<bool> (io_strm); }
++ bool operator!() const { return !operator bool(); }
+ stream& seekg(streamoff off, ios_base::seekdir dir)
+ { io_strm.seekg(off, dir); return *this; }
+ stream& seekp(streamoff off, ios_base::seekdir dir)
diff --git a/multimedia/bombono/files/patch-src-mlib-filesystem.cpp b/multimedia/bombono/files/patch-src_mlib_filesystem.cpp
index 11bc768edc8e..1f6c940c0a04 100644
--- a/multimedia/bombono/files/patch-src-mlib-filesystem.cpp
+++ b/multimedia/bombono/files/patch-src_mlib_filesystem.cpp
@@ -1,6 +1,6 @@
---- ./src/mlib/filesystem.cpp.orig 2013-03-07 22:20:45.000000000 +0100
-+++ src/mlib/filesystem.cpp 2013-03-08 16:42:27.000000000 +0100
-@@ -105,7 +105,7 @@
+--- src/mlib/filesystem.cpp.orig 2013-03-07 21:20:45 UTC
++++ src/mlib/filesystem.cpp
+@@ -105,7 +105,7 @@ std::string get_extension(const fs::path
std::string get_basename(const fs::path& pth)
{
@@ -9,7 +9,7 @@
const char* name = name_s.c_str();
//if( const char* dot = strstr(name, ".") )
-@@ -116,7 +116,7 @@
+@@ -116,7 +116,7 @@ std::string get_basename(const fs::path&
std::string get_extension(const fs::path& pth)
{
diff --git a/multimedia/bombono/files/patch-stream.h b/multimedia/bombono/files/patch-src_mlib_stream.h
index 82658b9023b6..03b2f3e8f427 100644
--- a/multimedia/bombono/files/patch-stream.h
+++ b/multimedia/bombono/files/patch-src_mlib_stream.h
@@ -1,6 +1,6 @@
---- src/mlib/stream.h.orig 2009-08-24 15:11:47.000000000 +0700
-+++ src/mlib/stream.h 2009-08-24 15:12:03.000000000 +0700
-@@ -186,6 +186,7 @@
+--- src/mlib/stream.h.orig 2013-03-07 21:20:45 UTC
++++ src/mlib/stream.h
+@@ -186,6 +186,7 @@ class basic_fstream : public basic_iostr
// write(fd, "some text", 9);
// ..
// Причины использования класса io::fd_proxy см. в его описании