aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/avidemux2-plugins/Makefile
blob: 19e61aeb0169453738c555e937215aa4f2ef10c7 (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
# Created by: Anish Mistry (with help from mean)
# $FreeBSD$

PORTNAME=   avidemux2
PORTVERSION=    ${AVIDEMUX2_VERSION}
PORTREVISION=   7
CATEGORIES= multimedia
PKGNAMESUFFIX=  -plugins

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Simple GUI based video editor (Plugins)

BUILD_DEPENDS=  avidemux2_cli:${PORTSDIR}/multimedia/avidemux2
RUN_DEPENDS=    avidemux2_cli:${PORTSDIR}/multimedia/avidemux2

MASTERDIR=  ${.CURDIR}/../avidemux2
PLIST=      ${.CURDIR}/pkg-plist

.include "${MASTERDIR}/Makefile.common"

CMAKE_ARGS+=    -DAVIDEMUX_SOURCE_DIR=${WRKSRC} -DAVIDEMUX_INSTALL_PREFIX:PATH="${PREFIX}" -DAVIDEMUX_CORECONFIG_DIR=${CONFIGURE_WRKSRC}/config

post-configure: post-configure-common
    @${MKDIR} ${WRKDIR}/.build-plugins
    @cd ${WRKDIR}/.build-plugins && ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${WRKSRC}/plugins

do-build:
    @cd ${WRKDIR}/.build-plugins && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}

do-install:
    @(cd ${WRKDIR}/.build-plugins && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})

.include <bsd.port.post.mk>