aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libtheora/Makefile
blob: 4a0ce896b0e8341764c773302dd7e575e60de485 (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
# New ports collection makefile for:    theora
# Date created:             09 februari 2003
# Whom:                 Koop Mast <kwm@rainbow-runner.nl>
#
# $FreeBSD$
#

PORTNAME=   libtheora
DISTVERSION=    1.0alpha7
CATEGORIES= multimedia
MASTER_SITES=   http://downloads.xiph.org/releases/theora/ \
        http://distfiles.master.finkmirrors.net/

MAINTAINER= rainer.alves@gmail.com
COMMENT=    Theora video codec for the Ogg multimedia streaming system

LIB_DEPENDS=    vorbis.3:${PORTSDIR}/audio/libvorbis

USE_BZIP2=  yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include " \
        LDFLAGS="-L${LOCALBASE}/lib" \
        LIBS="${PTHEAD_LIBS}"
CONFIGURE_ARGS+=--disable-sdltest \
        --enable-shared

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
CONFIGURE_ARGS+=--disable-asm
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
        ${WRKSRC}/examples/Makefile.in
    @${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>