aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-04-04 01:25:24 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-04-04 01:25:24 +0000
commit0a643c9d20c5df3cb634c1285def7df14351be8a (patch)
treee88df9ee60d0d0292ee86e43988adfb31960896f
parent3415939d304e80947eb7988904fbb35390386c1c (diff)
downloadports-0a643c9d20c5df3cb634c1285def7df14351be8a.tar.gz
ports-0a643c9d20c5df3cb634c1285def7df14351be8a.zip
Notes
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/avbin/Makefile48
-rw-r--r--multimedia/avbin/distinfo3
-rw-r--r--multimedia/avbin/files/patch-include-avbin.h10
-rw-r--r--multimedia/avbin/pkg-descr4
5 files changed, 66 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 18afc470a15d..49779a389176 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -8,6 +8,7 @@
SUBDIR += atomicparsley
SUBDIR += audacious
SUBDIR += audacious-plugins
+ SUBDIR += avbin
SUBDIR += avidemux2
SUBDIR += avifile
SUBDIR += avinfo
diff --git a/multimedia/avbin/Makefile b/multimedia/avbin/Makefile
new file mode 100644
index 000000000000..2c21d2f8f589
--- /dev/null
+++ b/multimedia/avbin/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: avbin
+# Date created: 03 Apr 2009
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= avbin
+PORTVERSION= 7
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
+ http://mirror.amdmi3.ru/
+DISTNAME= ${PORTNAME}-src-${PORTVERSION}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= FFmpeg wrapper
+
+LIB_DEPENDS= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
+
+LIBNAME= libavbin.so.${PORTVERSION}
+PLIST_FILES= lib/${LIBNAME} include/avbin.h
+USE_LDCONFIG= yes
+
+PORTDOCS= *
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+= -fPIC
+.endif
+
+do-build:
+ cd ${WRKSRC} && \
+ ${CC} ${CFLAGS} -shared -soname ${LIBNAME} -o ${LIBNAME} \
+ src/avbin.c -Iinclude -I${LOCALBASE}/include \
+ -DAVBIN_VERSION=${PORTVERSION} -DFFMPEG_REVISION=0 \
+ -L${LOCALBASE}/lib -lavcodec -lavformat
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/${LIBNAME} ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/include/avbin.h ${PREFIX}/include
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} '*' ${DOCSDIR}/
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/avbin/distinfo b/multimedia/avbin/distinfo
new file mode 100644
index 000000000000..71594bf4abc4
--- /dev/null
+++ b/multimedia/avbin/distinfo
@@ -0,0 +1,3 @@
+MD5 (avbin-src-7.tar.gz) = 9c08f4f6e778021dcd154e11fd0f79ad
+SHA256 (avbin-src-7.tar.gz) = 3f10835e599bed8c9831ce9a04b3ff3f65866cae67ae7010c9d8a10528c651a2
+SIZE (avbin-src-7.tar.gz) = 63378
diff --git a/multimedia/avbin/files/patch-include-avbin.h b/multimedia/avbin/files/patch-include-avbin.h
new file mode 100644
index 000000000000..2c617f507c43
--- /dev/null
+++ b/multimedia/avbin/files/patch-include-avbin.h
@@ -0,0 +1,10 @@
+--- include/avbin.h.orig 2008-09-21 10:45:33.000000000 +0400
++++ include/avbin.h 2009-04-03 06:49:52.000000000 +0400
+@@ -69,6 +69,7 @@
+ #define AVBIN_H
+
+ #include <stdint.h>
++#include <sys/types.h>
+
+ /**
+ * Error-checked function result.
diff --git a/multimedia/avbin/pkg-descr b/multimedia/avbin/pkg-descr
new file mode 100644
index 000000000000..68c4bdd5ac01
--- /dev/null
+++ b/multimedia/avbin/pkg-descr
@@ -0,0 +1,4 @@
+AVbin is a thin wrapper around FFmpeg, providing binary compatibility
+for applications and languages that need it
+
+WWW: http://code.google.com/p/avbin/