aboutsummaryrefslogtreecommitdiff
path: root/multimedia/qdvdauthor/Makefile
blob: 3713ad5c46a588a739c4afbbda4faa1e026fa58e (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# New ports collection makefile for:   qdvdauthor
# Date created:        05/07/04
# Whom:                oz@nixil.net
#
# $FreeBSD$
#

PORTNAME=	qdvdauthor
PORTVERSION=	1.0.0
PORTREVISION=	1
CATEGORIES=	multimedia
MASTER_SITES=	SF

MAINTAINER=	oz@nixil.net
COMMENT=	QT graphical frontend for dvdauthor

BUILD_DEPENDS=	dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
		mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \
		dvd-slideshow:${PORTSDIR}/multimedia/dvd-slideshow \
		qmake:${PORTSDIR}/devel/qmake

RUN_DEPENDS=	dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
		mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \
		dvd-slideshow:${PORTSDIR}/multimedia/dvd-slideshow \
		dv2sub:${PORTSDIR}/multimedia/dv2sub \
		bash:${PORTSDIR}/shells/bash

DATA_FILES=	silence.mp2 html/en/audio_streams.html html/en/system_register.html \
		qdvdauthor_ca.qm qdvdauthor_de.qm qdvdauthor_eo.qm \
		qdvdauthor_es.qm qdvdauthor_fr.qm qdvdauthor_it.qm \
		qdvdauthor_pl.qm qplayer_ca.qm qplayer_de.qm \
		qplayer_es.qm qplayer_fr.qm qslideshow_ca.qm \
		qslideshow_de.qm qslideshow_es.qm qslideshow_fr.qm

PLIST_FILES=	bin/qdvdauthor \
		bin/qslideshow \
		bin/qplayer \
		share/pixmaps/qdvdauthor.png \
		${DATA_FILES:S,^,%%DATADIR%%/,}
PLIST_DIRS=	%%DATADIR%%/html/en %%DATADIR%%/html %%DATADIR%%

DESKTOP_ENTRIES="QDVDAuthor" \
		"DVD Author GUI" \
		"${PREFIX}/share/pixmaps/qdvdauthor.png" \
		"QDVDAuthor" \
		"Application;AudioVideo;Qt;KDE;" \
		"false"

HAS_CONFIGURE=	yes
USE_QT_VER=	3
QT_NONSTANDARD=	yes
CONFIGURE_ENV=	QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
CONFIGURE_ARGS=	--prefix=${PREFIX} --qt-dir=${X11BASE} --with-qt-lib=qt-mt \
		--build-qslideshow --build-qplayer
NO_BUILD=	yes

OPTIONS=	NETPBM "Create mpeg2 streams for movie menus" on \
		MJPEGTOOLS "Convert background images into mpeg2 movie" on \
		CDRTOOLS "Create iso images of DVD on the Hard Drive" on \
		TRANSCODE "Support for movie format conversion" on \
		DVDRWTOOLS "Optional DVD recording/burning prog" off \
		MPLAYER "Optional support for mplayer playback" off \
		TOOLAME "Optional support for audio conversion" off \
		MCTOOLAME "Optional support for audio conversion" off

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/bin/pngtopnm)
WITH_NETPBM=yes
.endif
.if exists(${LOCALBASE}/bin/mpeg2enc)
WITH_MJPEGTOOLS=yes
.endif
.if exists(${LOCALBASE}/bin/mkisofs)
WITH_CDRTOOLS=yes
.endif
.if exists(${LOCALBASE}/bin/growisofs)
WITH_DVDRWTOOLS=yes
.endif
.if exists(${LOCALBASE}/bin/mplayer)
WITH_MPLAYER=yes
.endif
.if exists(${LOCALBASE}/bin/transcode)
WITH_TRANSCODE=yes
.endif
.if exists(${LOCALBASE}/bin/toolame)
WITH_TOOLAME=yes
.endif
.if exists(${LOCALBASE}/bin/mctoolame)
WITH_MCTOOLAME=yes
.endif

.if !defined(WITHOUT_NETPBM)
RUN_DEPENDS+=	pngtopnm:${PORTSDIR}/graphics/netpbm
.endif
.if !defined(WITHOUT_MJPEGTOOLS)
RUN_DEPENDS+=	mpeg2enc:${PORTSDIR}/multimedia/mjpegtools
.endif
.if !defined(WITHOUT_CDRTOOLS)
USE_CDRTOOLS=	yes
.endif
.if defined(WITH_DVDRWTOOLS)
RUN_DEPENDS+=	growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
.endif
.if !defined(WITHOUT_LIBXINE)
LIB_DEPENDS+=	xine.1:${PORTSDIR}/multimedia/libxine
CONFIGURE_ARGS+=--with-xine-support
.endif
.if defined(WITH_MPLAYER)
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
CONFIGURE_ARGS+=--with-mplayer-support
.endif
.if !defined(WITHOUT_TRANSCODE)
RUN_DEPENDS+=	transcode:${PORTSDIR}/multimedia/transcode
.endif
.if defined(WITH_TOOLAME)
RUN_DEPENDS+=	toolame:${PORTSDIR}/audio/toolame
.endif
.if defined(WITH_MCTOOLAME)
RUN_DEPENDS+=	mctoolame:${PORTSDIR}/audio/mctoolame-encoder
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/qdvdauthor ${PREFIX}/bin/qdvdauthor
	${INSTALL_PROGRAM} ${WRKSRC}/bin/qslideshow ${PREFIX}/bin/qslideshow
	${INSTALL_PROGRAM} ${WRKSRC}/bin/qplayer    ${PREFIX}/bin/qplayer

	@${MKDIR} ${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/qdvdauthor.png ${PREFIX}/share/pixmaps

	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/silence.mp2    ${DATADIR}

	@${MKDIR} ${DATADIR}/html/en
	${INSTALL_DATA} ${WRKSRC}/doc/html/en/audio_streams.html   ${DATADIR}/html/en
	${INSTALL_DATA} ${WRKSRC}/doc/html/en/system_register.html ${DATADIR}/html/en

.for locale in ca de eo es fr it pl
	${INSTALL_DATA} ${WRKSRC}/qdvdauthor/i18n/qdvdauthor_${locale}.qm  ${DATADIR}
.endfor
.for locale in ca de es fr
	${INSTALL_DATA} ${WRKSRC}/qdvdauthor/i18n/qplayer_${locale}.qm     ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/qdvdauthor/i18n/qslideshow_${locale}.qm  ${DATADIR}
.endfor
.include <bsd.port.post.mk>