aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mpeg_encode/Makefile
blob: da02c1ab992df8adb05d673452fba5fb02e66e29 (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
# New ports collection makefile for:    mpeg_encode
# Date created:
# Whom:                 erich@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   mpeg_encode
PORTVERSION=    1.5b
CATEGORIES= multimedia
MASTER_SITES=   ftp://mm-ftp.CS.Berkeley.EDU/pub/multimedia/mpeg/encode/
DISTNAME=   ${PKGNAME}-src

MAINTAINER= ports@FreeBSD.org
COMMENT=    UCB's MPEG-I video stream encoder

MAN1=       mpeg_encode.1

USE_REINPLACE=  yes

WRKSRC=     ${WRKDIR}/${PORTNAME}

post-patch:
    @(${GREP} -R -l "malloc.h" ${WRKSRC}/* | \
        ${XARGS} ${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/")

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in users-guide.ps template.param
    @${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>