aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/manslide/Makefile
blob: f5495217a9c837758a45ca687f619f210cfb37b3 (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
67
68
69
70
71
72
73
74
75
76
77
# New ports collection makefile for:    manslide
# Date created:     Mer 28 Feb 2007 23:25:17 CET
# Whom:                 Diego Depaoli <trebestie@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   manslide
DISTVERSION=    1.5.5
CATEGORIES= multimedia kde
MASTER_SITES=   http://csgib36.ifrance.com/Manslide/

MAINTAINER= trebestie@gmail.com
COMMENT=    Utility to simply create your own slideshow

RUN_DEPENDS=    sox:${PORTSDIR}/audio/sox \
        mencoder:${PORTSDIR}/multimedia/mplayer \
        mplayer:${PORTSDIR}/multimedia/mplayer \
        mjpegtools>=1.8.0:${PORTSDIR}/multimedia/mjpegtools \
        ImageMagick>=6.3.2.9:${PORTSDIR}/graphics/ImageMagick \
        xvid4conf:${PORTSDIR}/multimedia/xvid4conf

USE_QT_VER= 4
QT_COMPONENTS=  corelib gui moc opengl qmake rcc uic \
        imageformats inputmethods iconengines
MANSLIDEDIR=    ${PREFIX}/share/manslide

MAKE_ENV?=  QTDIR=${QT_PREFIX}
WRKSRC=     ${WRKDIR}/Manslide-${PORTVERSION}
LANGUAGE_FILES= _ca _en _pl _it _ru
EFFECTS=    Explode Film Fire France Record Smoke Sunset

DESKTOP_ENTRIES=    "Manslide" \
            "Create your slideshow" \
            "" \
            "Manslide" \
                "Application;AudioVideo;" \
            false

.if defined (WITH_XINE)
RUN_DEPENDS+=   xine:${PORTSDIR}/multimedia/xine
.endif

post-extract:
# bash it isn't the FreeBSD's default shell
    @${REINPLACE_CMD} -e 's|bash|sh|g' ${WRKSRC}/mainfrm.cpp

do-configure:
    @cd ${WRKSRC} \
    &&  ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC}

pre-install:
    ${MKDIR} ${MANSLIDEDIR}/Interface/Transitions
    ${MKDIR} ${MANSLIDEDIR}/Luma
    ${INSTALL_PROGRAM} ${WRKSRC}/Manslide ${MANSLIDEDIR}/

.for effects in ${EFFECTS}
    ${MKDIR} ${MANSLIDEDIR}/Effects/${effects}
    ${INSTALL_DATA} ${WRKSRC}/Effects/${effects}/*jpg ${MANSLIDEDIR}/Effects/${effects}/
.endfor
    ${INSTALL_DATA} ${WRKSRC}/Interface/Transitions/*png ${MANSLIDEDIR}/Interface/Transitions/
# Wrong extension
    ${INSTALL_DATA} ${WRKSRC}/Interface/*PNG ${MANSLIDEDIR}/Interface/

    ${INSTALL_DATA} ${WRKSRC}/Interface/*png ${MANSLIDEDIR}/Interface
    ${INSTALL_DATA} ${WRKSRC}/Luma/*pgm ${MANSLIDEDIR}/Luma

.for lang in ${LANGUAGE_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}${lang}.qm ${MANSLIDEDIR}
.endfor

    ${LN} -fs ${MANSLIDEDIR}/Manslide ${PREFIX}/bin/

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>