View | Details | Raw Unified | Return to bug 50410
Collapse All | Expand All

(-)multimedia/xvid/Makefile (-42 / +8 lines)
Lines 2-63 Link Here
2
# Date created:		04 April 2002
2
# Date created:		04 April 2002
3
# Whom:			Michael Nottebrock <michaelnottebrock@gmx.net> et al
3
# Whom:			Michael Nottebrock <michaelnottebrock@gmx.net> et al
4
#
4
#
5
# $FreeBSD: ports/graphics/xvid/Makefile,v 1.10 2003/02/21 12:15:34 knu Exp $
5
# $FreeBSD: ports/graphics/xvid/Makefile,v 1.8 2003/01/20 12:07:09 edwin Exp $
6
#
6
#
7
7
8
PORTNAME=	xvid
8
PORTNAME=	xvid
9
PORTVERSION=	0.9.0
9
PORTVERSION=	0.9.1
10
PORTREVISION=	1
11
PORTEPOCH=	1
10
PORTEPOCH=	1
12
CATEGORIES=	graphics
11
CATEGORIES=	multimedia
13
MASTER_SITES=	http://files.xvid.org/downloads/
12
MASTER_SITES=	http://files.xvid.org/downloads/
14
DISTNAME=	xvidcore-${PORTVERSION}
13
DISTNAME=	${PORTNAME}core-${PORTVERSION}
15
14
16
MAINTAINER=	michaelnottebrock@gmx.net
15
MAINTAINER=	michaelnottebrock@gmx.net
17
COMMENT=	An opensource MPEG-4 codec, based on OpenDivx
16
COMMENT=	An opensource MPEG-4 codec, based on OpenDivx
18
17
19
BUILD_DEPENDS=	${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
18
BUILD_DEPENDS=	${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
20
19
21
ONLY_FOR_ARCHS=	i386 sparc64
20
HAS_CONFIGURE=	yes
22
USE_AUTOCONF_VER=	253
23
USE_PERL5_BUILD=yes
24
USE_GMAKE=	yes
21
USE_GMAKE=	yes
25
INSTALLS_SHLIB=	yes
22
INSTALLS_SHLIB=	yes
26
USE_REINPLACE=	yes
27
23
28
CONFIGURE_WRKSRC=	${WRKDIR}
29
WRKSRC=			${WRKDIR}/${DISTNAME}/build/generic
24
WRKSRC=			${WRKDIR}/${DISTNAME}/build/generic
30
25
31
# XXX - compatility header installed for mplayer-devel port's benefit
26
post-install:
32
EXTRA_HEADER_FILES=	divx4.h
27
	@ ${LN} -sf libxvidcore.so ${PREFIX}/lib/libxvidcore.so.0
33
28
34
# trick to detect existence of stdint.h
29
.include <bsd.port.mk>
35
# amongst other things
36
pre-configure:
37
.for file in configure.in config.h.in
38
	@ ${CP} ${FILESDIR}/${file} ${WRKDIR}
39
.endfor
40
41
post-patch:
42
.for file in Makefile.linuxx86 Makefile.sparc
43
	${REINPLACE_CMD} -e 's|-lc||' ${WRKSRC}/$(file)
44
.endfor
45
46
do-install:
47
	@ ${INSTALL_DATA} ${WRKSRC}/libxvidcore.so ${PREFIX}/lib/libxvidcore.so.0
48
	@ ${LN} -s libxvidcore.so.0 ${PREFIX}/lib/libxvidcore.so
49
	@ ${INSTALL_DATA} ${WRKSRC}/../../src/xvid.h ${PREFIX}/include
50
# XXX - compatility header installed for mplayer's benefit
51
.for header in ${EXTRA_HEADER_FILES}
52
	@ ${INSTALL_DATA} ${WRKSRC}/../../src/${header} ${PREFIX}/include
53
.endfor
54
55
.include <bsd.port.pre.mk>
56
57
.if ${ARCH:L} == i386
58
MAKEFILE=	Makefile.linuxx86
59
.elif ${ARCH:L} == sparc64
60
MAKEFILE=	Makefile.sparc
61
.endif
62
63
.include <bsd.port.post.mk>
(-)multimedia/xvid/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (xvidcore-0.9.0.tar.gz) = 8d0cd15a9d935ec46d3b67eddf188c4a
1
MD5 (xvidcore-0.9.1.tar.gz) = d4b4cb185f074082e17b36c24b277276
(-)multimedia/xvid/files/config.h.in (-14 lines)
Lines 1-14 Link Here
1
/* Define as 1 if you have sys/endian.h. */
2
#undef HAVE_SYS_ENDIAN_H
3
4
/* Define as 1 if you have sys/param.h. */
5
#undef HAVE_SYS_PARAM_H
6
7
/* Define as 1 if you have stdint.h. */
8
#undef HAVE_STDINT_H
9
10
/* Define as 1 if you have inttypes.h. */
11
#undef HAVE_INTTYPES_H
12
13
/* Define size of uintptr_t type. */
14
#undef SIZEOF_UINTPTR_T
(-)multimedia/xvid/files/configure.in (-12 lines)
Lines 1-12 Link Here
1
dnl Process this file with autoconf to produce a configure header
2
AC_INIT(config.h.in)
3
4
dnl Check for and header files
5
AC_CHECK_HEADERS(sys/endian.h sys/param.h stdint.h inttypes.h)
6
7
dnl Check size of pointer for cache size
8
AC_CHECK_SIZEOF(uintptr_t)
9
10
AC_CONFIG_HEADER([config.h])
11
12
AC_OUTPUT(config.h)
(-)multimedia/xvid/files/patch-src:portab.h (-58 lines)
Lines 1-58 Link Here
1
--- ../../src/portab.h.orig	Sat Nov 23 22:50:14 2002
2
+++ ../../src/portab.h	Fri Jan  3 14:40:18 2003
3
@@ -83,6 +83,14 @@
4
  *  Types used in XviD sources
5
  ****************************************************************************/
6
 
7
+#if defined(HAVE_SYS_PARAM_H)
8
+#include <sys/param.h>
9
+#endif
10
+
11
+#if defined(__FreeBSD__) && __FreeBSD_version >= 470000 && defined(HAVE_SYS_ENDIAN_H)
12
+#include <sys/endian.h>
13
+#endif
14
+
15
 /*----------------------------------------------------------------------------
16
  | Standard Unix include file (sorry, we put all unix into "linux" case)
17
  *---------------------------------------------------------------------------*/
18
@@ -90,8 +98,15 @@
19
 #if defined(LINUX) || defined(BEOS) || defined(FREEBSD)
20
 
21
 /* All (u)int(size)_t types are defined here */
22
-#    include <inttypes.h>
23
 
24
+#include "../../config.h"
25
+
26
+#if defined(HAVE_STDINT_H)
27
+#include <stdint.h>
28
+#elif defined(HAVE_INTTYPES_H)
29
+#include <inttypes.h>
30
+#endif
31
+	
32
 /*----------------------------------------------------------------------------
33
  | msvc (lacks such a header file)
34
  *---------------------------------------------------------------------------*/
35
@@ -139,6 +154,9 @@
36
 #elif defined(ARCH_IA64)
37
 #    define CACHE_LINE  32
38
 #    define ptr_t uint64_t
39
+#elif defined(__FreeBSD__)
40
+#    define CACHE_LINE  (SIZEOF_UINTPTR_T * 4)
41
+#    define ptr_t uintptr_t
42
 #else
43
 #    error Architecture not supported.
44
 #endif
45
@@ -341,6 +359,13 @@
46
          {
47
              return 0;
48
          }
49
+
50
+/*----------------------------------------------------------------------------
51
+ | FreeBSD specific macros/functions
52
+ *---------------------------------------------------------------------------*/
53
+#    elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 && defined(HAVE_SYS_ENDIAN_H)
54
+#	define BSWAP(a) (be32toh(x))
55
+#	error Missing EMMS() definition for this architecture.
56
 
57
 /*----------------------------------------------------------------------------
58
  | XviD + gcc unsupported Architecture
(-)multimedia/xvid/pkg-plist (-1 / +1 lines)
Lines 1-4 Link Here
1
include/divx4.h
2
include/xvid.h
1
include/xvid.h
2
lib/libxvidcore.a
3
lib/libxvidcore.so
3
lib/libxvidcore.so
4
lib/libxvidcore.so.0
4
lib/libxvidcore.so.0

Return to bug 50410