aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/winff/Makefile
blob: 11bdc5fd48f312a8d1a6832adab8a5b3db14b567 (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
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$

PORTNAME=   WinFF
PORTVERSION=    1.5.5
PORTREVISION=   9
CATEGORIES= multimedia
PKGNAMESUFFIX=  ${LAZARUS_PKGNAMESUFFIX}
MASTER_SITES=   http://winff.org/docs/source/
DISTNAME=   ${_PORTNAME}-${PORTVERSION}-source

MAINTAINER= thierry@FreeBSD.org
COMMENT=    Convert your videos quickly, easily, and all at once

LICENSE=    GPLv3

LIB_DEPENDS=    libavutil.so:multimedia/ffmpeg

NO_WRKSUBDIR=   yes
USE_XORG=   x11
USES=       fpc lazarus:flavors
USE_FPC=    chm fcl-base fcl-image fcl-json fcl-xml pasjpeg regexpr x11
_PORTNAME=  ${PORTNAME:tl}
DATADIR=    ${PREFIX}/share/${_PORTNAME}
DOCSDIR=    ${PREFIX}/share/doc/${_PORTNAME}

DESKTOP_ENTRIES=    "${PORTNAME}"   \
            "${COMMENT}"    \
            "${_PORTNAME}"  \
            "${_PORTNAME}"  \
            "AudioVideo;"   \
            true

LAZARUS_NO_FLAVORS= qt5
LAZARUS_PROJECT_FILES=  winff.lpr
LAZBUILD_ARGS=      -d

gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt4
qt4_CONFLICTS_INSTALL=  ${PORTNAME}-gtk2

BUILD_WRKSRC=   ${WRKDIR}/${PKGNAME}/${_PORTNAME}

.if ${FLAVOR:Ugtk2:Mgtk2}
USE_FPC+=   cairo
USE_GNOME+= cairo
INSTALLS_ICONS=yes
.endif

pre-configure:
    ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${BUILD_WRKSRC}/unit1.pas
.for fp in unit1.pas unit4.pas scripts/check_presets.sh
    ${REINPLACE_CMD} -e 's|/usr/bin/|${LOCALBASE}/bin/|g' ${BUILD_WRKSRC}/${fp}
.endfor

do-install:
    ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME:tl} ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DATADIR}/languages
    ${INSTALL_DATA} ${BUILD_WRKSRC}/presets.xml ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${BUILD_WRKSRC}/languages/* ${STAGEDIR}${DATADIR}/languages/
    ${INSTALL_MAN} ${BUILD_WRKSRC}/${_PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${INSTALL_DATA} ${BUILD_WRKSRC}/winff-icons/48x48/${_PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${BUILD_WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>