diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-04-08 23:38:02 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-04-08 23:38:02 +0000 |
commit | 7af30bad6deb66708124970d7cd8c00a5784ff10 (patch) | |
tree | ce7793b047b483afa59d0e8ecc24a2de253d8b81 /graphics/xvid | |
parent | PORTREVISION bumped. This should have been done during last (diff) |
New port xvid snapshot release 20020404: An opensource MPEG-4 codec,
based on OpenDivx
PR: 36769
Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
Notes
Notes:
svn path=/head/; revision=57472
Diffstat (limited to 'graphics/xvid')
-rw-r--r-- | graphics/xvid/Makefile | 55 | ||||
-rw-r--r-- | graphics/xvid/distinfo | 1 | ||||
-rw-r--r-- | graphics/xvid/files/config.h.in | 5 | ||||
-rw-r--r-- | graphics/xvid/files/configure.in | 9 | ||||
-rw-r--r-- | graphics/xvid/files/patch-Makefile | 19 | ||||
-rw-r--r-- | graphics/xvid/files/patch-src:portab.h | 22 | ||||
-rw-r--r-- | graphics/xvid/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/xvid/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/xvid/pkg-plist | 4 |
9 files changed, 122 insertions, 0 deletions
diff --git a/graphics/xvid/Makefile b/graphics/xvid/Makefile new file mode 100644 index 000000000000..dad8b0d1c21a --- /dev/null +++ b/graphics/xvid/Makefile @@ -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> diff --git a/graphics/xvid/distinfo b/graphics/xvid/distinfo new file mode 100644 index 000000000000..9eb8c9cc31cc --- /dev/null +++ b/graphics/xvid/distinfo @@ -0,0 +1 @@ +MD5 (xvid_snapshot_20020404.tar.gz) = d5d0221a8206f99bf51cd346f9cbf56a diff --git a/graphics/xvid/files/config.h.in b/graphics/xvid/files/config.h.in new file mode 100644 index 000000000000..9c556c46c573 --- /dev/null +++ b/graphics/xvid/files/config.h.in @@ -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 diff --git a/graphics/xvid/files/configure.in b/graphics/xvid/files/configure.in new file mode 100644 index 000000000000..e9f3bbb84ccb --- /dev/null +++ b/graphics/xvid/files/configure.in @@ -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) diff --git a/graphics/xvid/files/patch-Makefile b/graphics/xvid/files/patch-Makefile new file mode 100644 index 000000000000..1e43f1b207fa --- /dev/null +++ b/graphics/xvid/files/patch-Makefile @@ -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 + diff --git a/graphics/xvid/files/patch-src:portab.h b/graphics/xvid/files/patch-src:portab.h new file mode 100644 index 000000000000..520e2a6c4f67 --- /dev/null +++ b/graphics/xvid/files/patch-src:portab.h @@ -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 + diff --git a/graphics/xvid/pkg-comment b/graphics/xvid/pkg-comment new file mode 100644 index 000000000000..8077e86cc197 --- /dev/null +++ b/graphics/xvid/pkg-comment @@ -0,0 +1 @@ +An opensource MPEG-4 codec, based on OpenDivx diff --git a/graphics/xvid/pkg-descr b/graphics/xvid/pkg-descr new file mode 100644 index 000000000000..f1cbaa81b88c --- /dev/null +++ b/graphics/xvid/pkg-descr @@ -0,0 +1,6 @@ +An opensource MPEG-4 codec, based on OpenDivx + +WWW: http://www.xvid.org/ + +- Michael Nottebrock +michaelnottebrock@gmx.net diff --git a/graphics/xvid/pkg-plist b/graphics/xvid/pkg-plist new file mode 100644 index 000000000000..1cd58140b8cb --- /dev/null +++ b/graphics/xvid/pkg-plist @@ -0,0 +1,4 @@ +include/xvid.h +lib/libcore.a +lib/libxvidcore.so +lib/libxvidcore.so.0 |