aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/opencinematools/Makefile
blob: 028b610593f490e1fce3ccc2a34ff318d2e7a329 (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
# $FreeBSD$

PORTNAME=   opencinematools
PORTVERSION=    1.1.2
CATEGORIES= multimedia
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Tools for creating multi-reel DCPs from MXF source material

LIB_DEPENDS=    openjpeg.2:${PORTSDIR}/graphics/openjpeg \
        expat.6:${PORTSDIR}/textproc/expat2 \
        asdcp.0:${PORTSDIR}/multimedia/asdcplib

USE_DOS2UNIX=   yes
USE_ZIP=    yes

WRKSRC=     ${WRKDIR}/${DISTNAME:S/-src//}

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAKE_ENV+=  CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

PLIST_FILES=    bin/mkcpl bin/mkpkl bin/mkmap

do-build:
    @cd ${WRKSRC}/build/unix && ${MAKE} ${MAKE_ENV}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/mkcpl ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/mkpkl ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/mkmap ${PREFIX}/bin

.include <bsd.port.mk>