mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
New port xvid snapshot release 20020404: An opensource MPEG-4 codec,
based on OpenDivx PR: 36769 Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
This commit is contained in:
parent
a99982d41d
commit
7af30bad6d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57472
@ -384,6 +384,7 @@
|
||||
SUBDIR += xsane
|
||||
SUBDIR += xv
|
||||
SUBDIR += xv-m17n
|
||||
SUBDIR += xvid
|
||||
SUBDIR += xwpick
|
||||
SUBDIR += xzgv
|
||||
SUBDIR += zimg
|
||||
|
55
graphics/xvid/Makefile
Normal file
55
graphics/xvid/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# New ports collection makefile for: xvid
|
||||
# Date created: 04 April 2002
|
||||
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net> et al
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= xvid
|
||||
PORTVERSION= 0.20020404
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.xvid.org/ \
|
||||
http://lofi.dyndns.org/
|
||||
DISTNAME= xvid_snapshot_${PORTVERSION:S/^0.//}
|
||||
|
||||
MAINTAINER= lofi@lofi.dyndns.org
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
USE_AUTOCONF= yes
|
||||
USE_GMAKE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
CONFIGURE_WRKSRC= ${WRKDIR}
|
||||
WRKSRC= ${WRKDIR}/xvid_20020404/xvidcore/build/generic
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@ ${ECHO_MSG} "You can enable additional compilation optimizations"
|
||||
@ ${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@ ${FIND} ${WRKDIR} -type f | \
|
||||
${XARGS} -n 10 -x ${PERL} -pi -e \
|
||||
's|<malloc.h>|<stdlib.h>|'
|
||||
.ifndef(WITH_OPTIMIZED_CFLAGS)
|
||||
@ ${PERL} -pi -e 's|(CFLAGS \+=).*|\1 ${CFLAGS}|' ${WRKSRC}/Makefile
|
||||
.else
|
||||
@ ${PERL} -pi -e 's|(CFLAGS \+=.*)|\1 ${CFLAGS}|' ${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
# trick to detect existence of stdint.h
|
||||
pre-configure:
|
||||
.for file in configure.in config.h.in
|
||||
@ ${CP} ${FILESDIR}/${file} ${WRKDIR}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/libxvidcore.so ${PREFIX}/lib/libxvidcore.so.0
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/libcore.a ${PREFIX}/lib/libcore.a
|
||||
@ ${LN} -s libxvidcore.so.0 ${PREFIX}/lib/libxvidcore.so
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/../../src/xvid.h ${PREFIX}/include
|
||||
|
||||
.include <bsd.port.mk>
|
1
graphics/xvid/distinfo
Normal file
1
graphics/xvid/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xvid_snapshot_20020404.tar.gz) = d5d0221a8206f99bf51cd346f9cbf56a
|
5
graphics/xvid/files/config.h.in
Normal file
5
graphics/xvid/files/config.h.in
Normal file
@ -0,0 +1,5 @@
|
||||
/* Define as 1 if you have stdint.h. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define as 1 if you have inttypes.h. */
|
||||
#undef HAVE_INTTYPES_H
|
9
graphics/xvid/files/configure.in
Normal file
9
graphics/xvid/files/configure.in
Normal file
@ -0,0 +1,9 @@
|
||||
dnl Process this file with autoconf to produce a configure header
|
||||
AC_INIT(config.h.in)
|
||||
|
||||
dnl Check for and header files
|
||||
AC_CHECK_HEADERS(stdint.h inttypes.h)
|
||||
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
AC_OUTPUT(config.h)
|
19
graphics/xvid/files/patch-Makefile
Normal file
19
graphics/xvid/files/patch-Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
--- Makefile.orig Sat Apr 6 16:29:59 2002
|
||||
+++ Makefile Sat Apr 6 16:31:10 2002
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
include Makefile.inc
|
||||
|
||||
-CC = gcc
|
||||
#CC=icc
|
||||
#CC = /opt/experimental/bin/gcc # that's where SuSE installs gcc3
|
||||
|
||||
@@ -33,7 +32,7 @@
|
||||
# CFLAGS += -march=pentium -mcpu=pentium
|
||||
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro
|
||||
|
||||
- CFLAGS += -Wall -O3 -funroll-loops -ffast-math -march=pentiumpro -mcpu=pentiumpro
|
||||
+ CFLAGS += -Wall -O3 -funroll-loops -ffast-math
|
||||
CFLAGS += -fstrict-aliasing -fomit-frame-pointer
|
||||
endif
|
||||
|
22
graphics/xvid/files/patch-src:portab.h
Normal file
22
graphics/xvid/files/patch-src:portab.h
Normal file
@ -0,0 +1,22 @@
|
||||
--- ../../src/portab.h.orig Sat Apr 6 15:40:58 2002
|
||||
+++ ../../src/portab.h Sat Apr 6 15:41:21 2002
|
||||
@@ -52,6 +52,7 @@
|
||||
|
||||
#elif defined(LINUX) || defined(DJGPP)
|
||||
|
||||
+#include "../../../config.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -72,7 +73,11 @@
|
||||
|
||||
#if defined(LINUX)
|
||||
|
||||
+#if defined(HAVE_STDINT_H)
|
||||
#include <stdint.h>
|
||||
+#elif defined(HAVE_INTTYPES_H)
|
||||
+#include <inttypes.h>
|
||||
+#endif
|
||||
|
||||
#else
|
||||
|
1
graphics/xvid/pkg-comment
Normal file
1
graphics/xvid/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An opensource MPEG-4 codec, based on OpenDivx
|
6
graphics/xvid/pkg-descr
Normal file
6
graphics/xvid/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
An opensource MPEG-4 codec, based on OpenDivx
|
||||
|
||||
WWW: http://www.xvid.org/
|
||||
|
||||
- Michael Nottebrock
|
||||
michaelnottebrock@gmx.net
|
4
graphics/xvid/pkg-plist
Normal file
4
graphics/xvid/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
include/xvid.h
|
||||
lib/libcore.a
|
||||
lib/libxvidcore.so
|
||||
lib/libxvidcore.so.0
|
55
multimedia/xvid/Makefile
Normal file
55
multimedia/xvid/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# New ports collection makefile for: xvid
|
||||
# Date created: 04 April 2002
|
||||
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net> et al
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= xvid
|
||||
PORTVERSION= 0.20020404
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.xvid.org/ \
|
||||
http://lofi.dyndns.org/
|
||||
DISTNAME= xvid_snapshot_${PORTVERSION:S/^0.//}
|
||||
|
||||
MAINTAINER= lofi@lofi.dyndns.org
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
USE_AUTOCONF= yes
|
||||
USE_GMAKE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
CONFIGURE_WRKSRC= ${WRKDIR}
|
||||
WRKSRC= ${WRKDIR}/xvid_20020404/xvidcore/build/generic
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@ ${ECHO_MSG} "You can enable additional compilation optimizations"
|
||||
@ ${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@ ${FIND} ${WRKDIR} -type f | \
|
||||
${XARGS} -n 10 -x ${PERL} -pi -e \
|
||||
's|<malloc.h>|<stdlib.h>|'
|
||||
.ifndef(WITH_OPTIMIZED_CFLAGS)
|
||||
@ ${PERL} -pi -e 's|(CFLAGS \+=).*|\1 ${CFLAGS}|' ${WRKSRC}/Makefile
|
||||
.else
|
||||
@ ${PERL} -pi -e 's|(CFLAGS \+=.*)|\1 ${CFLAGS}|' ${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
# trick to detect existence of stdint.h
|
||||
pre-configure:
|
||||
.for file in configure.in config.h.in
|
||||
@ ${CP} ${FILESDIR}/${file} ${WRKDIR}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/libxvidcore.so ${PREFIX}/lib/libxvidcore.so.0
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/libcore.a ${PREFIX}/lib/libcore.a
|
||||
@ ${LN} -s libxvidcore.so.0 ${PREFIX}/lib/libxvidcore.so
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/../../src/xvid.h ${PREFIX}/include
|
||||
|
||||
.include <bsd.port.mk>
|
1
multimedia/xvid/distinfo
Normal file
1
multimedia/xvid/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xvid_snapshot_20020404.tar.gz) = d5d0221a8206f99bf51cd346f9cbf56a
|
5
multimedia/xvid/files/config.h.in
Normal file
5
multimedia/xvid/files/config.h.in
Normal file
@ -0,0 +1,5 @@
|
||||
/* Define as 1 if you have stdint.h. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define as 1 if you have inttypes.h. */
|
||||
#undef HAVE_INTTYPES_H
|
9
multimedia/xvid/files/configure.in
Normal file
9
multimedia/xvid/files/configure.in
Normal file
@ -0,0 +1,9 @@
|
||||
dnl Process this file with autoconf to produce a configure header
|
||||
AC_INIT(config.h.in)
|
||||
|
||||
dnl Check for and header files
|
||||
AC_CHECK_HEADERS(stdint.h inttypes.h)
|
||||
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
AC_OUTPUT(config.h)
|
19
multimedia/xvid/files/patch-Makefile
Normal file
19
multimedia/xvid/files/patch-Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
--- Makefile.orig Sat Apr 6 16:29:59 2002
|
||||
+++ Makefile Sat Apr 6 16:31:10 2002
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
include Makefile.inc
|
||||
|
||||
-CC = gcc
|
||||
#CC=icc
|
||||
#CC = /opt/experimental/bin/gcc # that's where SuSE installs gcc3
|
||||
|
||||
@@ -33,7 +32,7 @@
|
||||
# CFLAGS += -march=pentium -mcpu=pentium
|
||||
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro
|
||||
|
||||
- CFLAGS += -Wall -O3 -funroll-loops -ffast-math -march=pentiumpro -mcpu=pentiumpro
|
||||
+ CFLAGS += -Wall -O3 -funroll-loops -ffast-math
|
||||
CFLAGS += -fstrict-aliasing -fomit-frame-pointer
|
||||
endif
|
||||
|
22
multimedia/xvid/files/patch-src:portab.h
Normal file
22
multimedia/xvid/files/patch-src:portab.h
Normal file
@ -0,0 +1,22 @@
|
||||
--- ../../src/portab.h.orig Sat Apr 6 15:40:58 2002
|
||||
+++ ../../src/portab.h Sat Apr 6 15:41:21 2002
|
||||
@@ -52,6 +52,7 @@
|
||||
|
||||
#elif defined(LINUX) || defined(DJGPP)
|
||||
|
||||
+#include "../../../config.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -72,7 +73,11 @@
|
||||
|
||||
#if defined(LINUX)
|
||||
|
||||
+#if defined(HAVE_STDINT_H)
|
||||
#include <stdint.h>
|
||||
+#elif defined(HAVE_INTTYPES_H)
|
||||
+#include <inttypes.h>
|
||||
+#endif
|
||||
|
||||
#else
|
||||
|
1
multimedia/xvid/pkg-comment
Normal file
1
multimedia/xvid/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An opensource MPEG-4 codec, based on OpenDivx
|
6
multimedia/xvid/pkg-descr
Normal file
6
multimedia/xvid/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
An opensource MPEG-4 codec, based on OpenDivx
|
||||
|
||||
WWW: http://www.xvid.org/
|
||||
|
||||
- Michael Nottebrock
|
||||
michaelnottebrock@gmx.net
|
4
multimedia/xvid/pkg-plist
Normal file
4
multimedia/xvid/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
include/xvid.h
|
||||
lib/libcore.a
|
||||
lib/libxvidcore.so
|
||||
lib/libxvidcore.so.0
|
Loading…
Reference in New Issue
Block a user