diff options
Diffstat (limited to 'multimedia/xvid')
-rw-r--r-- | multimedia/xvid/Makefile | 55 | ||||
-rw-r--r-- | multimedia/xvid/distinfo | 1 | ||||
-rw-r--r-- | multimedia/xvid/files/config.h.in | 5 | ||||
-rw-r--r-- | multimedia/xvid/files/configure.in | 9 | ||||
-rw-r--r-- | multimedia/xvid/files/patch-Makefile | 19 | ||||
-rw-r--r-- | multimedia/xvid/files/patch-src:portab.h | 22 | ||||
-rw-r--r-- | multimedia/xvid/pkg-comment | 1 | ||||
-rw-r--r-- | multimedia/xvid/pkg-descr | 6 | ||||
-rw-r--r-- | multimedia/xvid/pkg-plist | 4 |
9 files changed, 122 insertions, 0 deletions
diff --git a/multimedia/xvid/Makefile b/multimedia/xvid/Makefile new file mode 100644 index 000000000000..dad8b0d1c21a --- /dev/null +++ b/multimedia/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/multimedia/xvid/distinfo b/multimedia/xvid/distinfo new file mode 100644 index 000000000000..9eb8c9cc31cc --- /dev/null +++ b/multimedia/xvid/distinfo @@ -0,0 +1 @@ +MD5 (xvid_snapshot_20020404.tar.gz) = d5d0221a8206f99bf51cd346f9cbf56a diff --git a/multimedia/xvid/files/config.h.in b/multimedia/xvid/files/config.h.in new file mode 100644 index 000000000000..9c556c46c573 --- /dev/null +++ b/multimedia/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/multimedia/xvid/files/configure.in b/multimedia/xvid/files/configure.in new file mode 100644 index 000000000000..e9f3bbb84ccb --- /dev/null +++ b/multimedia/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/multimedia/xvid/files/patch-Makefile b/multimedia/xvid/files/patch-Makefile new file mode 100644 index 000000000000..1e43f1b207fa --- /dev/null +++ b/multimedia/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/multimedia/xvid/files/patch-src:portab.h b/multimedia/xvid/files/patch-src:portab.h new file mode 100644 index 000000000000..520e2a6c4f67 --- /dev/null +++ b/multimedia/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/multimedia/xvid/pkg-comment b/multimedia/xvid/pkg-comment new file mode 100644 index 000000000000..8077e86cc197 --- /dev/null +++ b/multimedia/xvid/pkg-comment @@ -0,0 +1 @@ +An opensource MPEG-4 codec, based on OpenDivx diff --git a/multimedia/xvid/pkg-descr b/multimedia/xvid/pkg-descr new file mode 100644 index 000000000000..f1cbaa81b88c --- /dev/null +++ b/multimedia/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/multimedia/xvid/pkg-plist b/multimedia/xvid/pkg-plist new file mode 100644 index 000000000000..1cd58140b8cb --- /dev/null +++ b/multimedia/xvid/pkg-plist @@ -0,0 +1,4 @@ +include/xvid.h +lib/libcore.a +lib/libxvidcore.so +lib/libxvidcore.so.0 |