aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/xvid/Makefile
blob: 64a11fc155a53a4668be7a46379f9f08bb944896 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Michael Nottebrock <michaelnottebrock@gmx.net> et al
# $FreeBSD$

PORTNAME=   xvid
PORTVERSION=    1.3.4
PORTEPOCH=  1
CATEGORIES= multimedia
MASTER_SITES=   http://downloads.xvid.org/downloads/
DISTNAME=   ${PORTNAME}core-${PORTVERSION}

MAINTAINER= riggs@FreeBSD.org
COMMENT=    Opensource MPEG-4 codec, based on OpenDivx

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKDIR}/xvidcore/LICENSE

USES=       gmake
GNU_CONFIGURE=  yes
MAKE_JOBS_UNSAFE=   yes
USE_LDCONFIG=   yes

CONFIGURE_ENV+= ac_cv_prog_ac_yasm=no

PLIST_FILES=    include/xvid.h \
        lib/libxvidcore.a \
        lib/libxvidcore.so \
        lib/libxvidcore.so.4 \
        lib/libxvidcore.so.4.3

WRKSRC=     ${WRKDIR}/xvidcore/build/generic

OPTIONS_DEFINE= OPTIMIZED_CFLAGS

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CONFIGURE_TARGET=   x86_64-portbld-freebsd${OSREL}
.endif
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
BUILD_DEPENDS+= nasm:devel/nasm
.endif

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
# let xvid's build system override CFLAGS
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cflags
.endif

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxvidcore.so

.include <bsd.port.post.mk>