aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/2mandvd/Makefile
blob: 4f3a26d26a2e0425a0fc3859c0ca03551a23f89d (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
# New ports collection makefile for: 2ManDVD
# Date created:     Mon 16 Mar 2009 19:23:00 CET
# Whom:                 Diego Depaoli <trebestie@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   2ManDVD
PORTVERSION=    0.9.7
CATEGORIES= multimedia kde
MASTER_SITES=   http://download.tuxfamily.org/2mandvd/

MAINTAINER= trebestie@gmail.com
COMMENT=    Create your own video dvd

RUN_DEPENDS=    sox>=14.0:${PORTSDIR}/audio/sox \
        mencoder:${PORTSDIR}/multimedia/mencoder \
        mplayer:${PORTSDIR}/multimedia/mplayer \
        netpbm>=10.26:${PORTSDIR}/graphics/netpbm \
        dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
        ppmtoy4m:${PORTSDIR}/multimedia/mjpegtools \
        ffmpegthumbnailer:${PORTSDIR}/multimedia/ffmpegthumbnailer \
        growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
        notify-send:${PORTSDIR}/devel/libnotify \
        xine:${PORTSDIR}/multimedia/xine

USE_QT_VER= 4
USE_CDRTOOLS=   true
QT_COMPONENTS=  qmake_build gui corelib rcc_build moc_build uic_build

MAKE_ENV+=  QTDIR=${QT_PREFIX}
WRKSRC=     ${WRKDIR}/${PORTNAME}
MAKE_JOBS_SAFE= yes

DESKTOP_ENTRIES="2ManDVD" \
        "DVD Maker" \
        "" \
        "2ManDVD" \
        "Application;AudioVideo;" \
        false

post-patch:
    @${REINPLACE_CMD} -e 's|bash|sh|g' ${WRKSRC}/mainfrm.cpp \
        ${WRKSRC}/rendering.cpp ${WRKSRC}/project.cpp \
        ${WRKSRC}/media_browser.cpp
    @${RM} -f ${WRKSRC}/ui_*.h ${WRKSRC}/moc_*.cpp ${WRKSRC}/qrc_*.cpp \
        ${WRKSRC}/*/*/*/*~

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} 2ManDVD.pro

do-install:
    ${MKDIR} ${DATADIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} "Bibliotheque Interface" ${DATADIR}/
    ${INSTALL_DATA} ${WRKSRC}/*.qm ${DATADIR}/
    ${INSTALL_PROGRAM} ${WRKSRC}/2ManDVD ${DATADIR}/
    ${LN} -fs ${DATADIR}/2ManDVD ${PREFIX}/bin/

.include <bsd.port.mk>