aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/dvd-slideshow/Makefile
blob: 06f8cf6b18c86713bcc645c649ed2a1200a53fa0 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# New ports collection makefile for:    dvd-slideshow
# Date created:             2005-02-16
# Whom:                 Phil Oleson <oz@nixil.net>
#
# $FreeBSD$
#

PORTNAME=   dvd-slideshow
PORTVERSION=    0.6.0
PORTREVISION=   1
CATEGORIES= multimedia
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= oz@nixil.net
COMMENT=    Script that creates a slideshow-style DVD with some simple menus

RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash \
        identify:${PORTSDIR}/graphics/ImageMagick \
        sox:${PORTSDIR}/audio/sox \
        dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
        ppmtoyuv:${PORTSDIR}/graphics/netpbm \
        mkisofs:${PORTSDIR}/sysutils/cdrtools

NO_BUILD=   yes
USE_REINPLACE=  yes

OPTIONS=    DVDRWTOOLS "Needed to record/burn DVD" off \
        LAME "Optional support for audio" off \
        VORBISTOOLS "Optional audio support" off

PLIST_FILES=    bin/dvd-slideshow \
        bin/dvd-menu \
        bin/gallery2slideshow \
        bin/jigl2slideshow

MAN1=       dvd-slideshow.1 \
        dvd-menu.1 \
        gallery2slideshow.1 \
        jigl2slideshow.1

.if !defined(NOPORTDOCS)
DOC_FILES=  README.html examples.html changelog.html \
        gallery2slideshow.html dir2slideshow.html \
        jigl2slideshow.html dvd-encode.html \
        test_with_background.html dvd-menu.html \
        test_with_background.txt dvd-slideshow.html
PLIST_FILES+=   ${DOC_FILES:S,^,%%DOCSDIR%%/,}
PLIST_DIRS+=    %%DOCSDIR%%
.endif

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/bin/growisofs)
WITH_DVDRWTOOLS=yes
.endif
.if exists(${LOCALBASE}/bin/lame)
WITH_LAME=yes
.endif
.if exists(${LOCALBASE}/bin/oggdec)
WITH_VORBISTOOLS=yes
.endif

.if defined(WITH_DVDRWTOOLS)
RUN_DEPENDS+=   growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
.endif
.if defined(WITH_LAME)
RUN_DEPENDS+=   lame:${PORTSDIR}/audio/lame
.endif
.if defined(WITH_VORBISTOOLS)
RUN_DEPENDS+=   oggdec:${PORTSDIR}/audio/vorbis-tools
.endif

pre-patch:
.for FILE in dvd-slideshow dvd-menu gallery2slideshow jigl2slideshow
    @${REINPLACE_CMD} -e 's|!/bin/bash|!${PREFIX}/bin/bash|g' ${WRKSRC}/${FILE}
.endfor

do-install:
.for FILE in dvd-slideshow dvd-menu gallery2slideshow jigl2slideshow
    ${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
.endfor
.for FILE in ${MAN1}
    ${INSTALL_MAN} ${WRKSRC}/man/${FILE} ${PREFIX}/man/man1
.endfor
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for FILE in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>