Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2013 02:14:33 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329854 - in head/multimedia/sabbu: . files
Message-ID:  <201310090214.r992EX8k032903@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Wed Oct  9 02:14:33 2013
New Revision: 329854
URL: http://svnweb.freebsd.org/changeset/ports/329854

Log:
  multimedia/sabbu: link using ffmpeg0
  
  - Link using ffmpeg0
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/multimedia/sabbu/files/patch-Source-Makefile.in   (contents, props changed)
Modified:
  head/multimedia/sabbu/Makefile
  head/multimedia/sabbu/files/patch-video.h

Modified: head/multimedia/sabbu/Makefile
==============================================================================
--- head/multimedia/sabbu/Makefile	Wed Oct  9 01:54:21 2013	(r329853)
+++ head/multimedia/sabbu/Makefile	Wed Oct  9 02:14:33 2013	(r329854)
@@ -2,14 +2,14 @@
 
 PORTNAME=	sabbu
 PORTVERSION=	0.3.0
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	multimedia
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/Sabbu%20${PORTVERSION}
 
 MAINTAINER=	dinoex@FreeBSD.org
 COMMENT=	Program used to time subtitles
 
-LIB_DEPENDS=	avcodec:${PORTSDIR}/multimedia/ffmpeg \
+LIB_DEPENDS=	libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
 		sndfile:${PORTSDIR}/audio/libsndfile
 
 NO_STAGE=	yes
@@ -20,8 +20,8 @@ USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 
 USE_GNOME=	gtk20
-CFLAGS+=	${PTHREAD_CFLAGS} -I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lswscale
+CFLAGS+=	-I${LOCALBASE}/include/ffmpeg0 ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib/ffmpeg0 -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lswscale0
 
 OPTIONS_DEFINE=	GTKSPELL
 OPTIONS_DEFAULT=GTKSPELL
@@ -47,4 +47,12 @@ LIB_DEPENDS+=	gtkspell:${PORTSDIR}/textp
 BROKEN=		Does not configure on powerpc
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} \
+		-e 's,ffmpeg/avformat,libavformat/avformat,g' \
+		-e 's,lavcodec,lavcodec0,g' \
+		-e 's,lavformat,lavformat0,g' \
+		-e 's,lavswscale,lavswscale0,g' \
+		${WRKSRC}/configure
+
 .include <bsd.port.post.mk>

Added: head/multimedia/sabbu/files/patch-Source-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/sabbu/files/patch-Source-Makefile.in	Wed Oct  9 02:14:33 2013	(r329854)
@@ -0,0 +1,13 @@
+--- Source/Makefile.in.orig	2013-10-08 23:05:45.410158951 -0300
++++ Source/Makefile.in	2013-10-08 23:09:15.165157059 -0300
+@@ -100,8 +100,8 @@
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+-CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
++CXXCOMPILE = $(CXX) $(DEFS) $(AM_CXXFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) \
++	$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS)
+ CXXLD = $(CXX)
+ CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+ 	-o $@

Modified: head/multimedia/sabbu/files/patch-video.h
==============================================================================
--- head/multimedia/sabbu/files/patch-video.h	Wed Oct  9 01:54:21 2013	(r329853)
+++ head/multimedia/sabbu/files/patch-video.h	Wed Oct  9 02:14:33 2013	(r329854)
@@ -1,12 +1,13 @@
---- Source/video.h.orig	Thu Jul 14 17:52:07 2005
-+++ Source/video.h	Sun Jun 17 08:57:32 2007
+--- Source/video.h.orig	2005-07-14 12:52:07.000000000 -0300
++++ Source/video.h	2013-10-08 23:10:25.214159730 -0300
 @@ -23,11 +23,13 @@
  };
  
  #else
 +extern "C" {
  #ifndef _WINDOWS
- #include <ffmpeg/avformat.h>
+-#include <ffmpeg/avformat.h>
++#include <libavformat/avformat.h>
  #else
  #include "video_ffmpeg.h"
  #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310090214.r992EX8k032903>