aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/exportvideo/Makefile
blob: b1c94a348d3a5aaf57c18274fdf136f0cf3a6e9d (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# New ports collection makefile for:    exportvideo
# Date created:     24 October 2004
# Whom:         Frank W. Josellis <frank@dynamical-systems.org>
#
# $FreeBSD$
#

PORTNAME=   exportvideo
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= multimedia
MASTER_SITES=   http://tigerente.htu.tuwien.ac.at/~aoe/mystuff/mpeg2_movie-avipatch/
DISTNAME=   ${PORTNAME}.7e-pre9

MAINTAINER= frank@dynamical-systems.org
COMMENT=    Writes yuv4mpeg streams for mpeg2enc from nuppelvideo files

BUILD_DEPENDS=  nasm:${PORTSDIR}/devel/nasm
LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png

USE_GNOME=  gtk12
USE_XLIB=   yes
USE_GMAKE=  yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --no-avi --prefix=${PREFIX}

WRKSRC=     ${WRKDIR}/${DISTNAME}

PORTDOCS=   README README.links

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
IGNORE=     Supported for i386 architecture only
.endif

# Compiling with MMX extensions fails on FreeBSD 5.x
.if ${OSVERSION} >= 500000
WITHOUT_MMX=    yes
.endif

.if defined(WITHOUT_MMX)
CONFIGURE_ARGS+=    --no-mmx
.endif

.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+=    -O3 -fomit-frame-pointer -funroll-loops -ffast-math
.endif

pre-everything::
.if !defined(WITHOUT_MMX)
    @${ECHO_MSG}
    @${ECHO_MSG} "You can disable MMX optimizations by defining WITHOUT_MMX."
.endif
.if !defined(WITH_OPTIMIZED_CFLAGS)
    @${ECHO_MSG}
    @${ECHO_MSG} "You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS."
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
        ${WRKSRC}/libmpeg3/configure ${WRKSRC}/quicktime/configure

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/video/exportvideo ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${FILESDIR}/nuv4dvd ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${FILESDIR}/README.FreeBSD ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>