aboutsummaryrefslogtreecommitdiff
path: root/multimedia/dvdauthor/Makefile
blob: 26bc38ab7d252b270b660d73a292fc5d9bcf7ab9 (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
# Created by: pb@FreeBSD.org

PORTNAME=	dvdauthor
PORTVERSION=	0.7.2.20211105
PORTREVISION=	1
CATEGORIES=	multimedia

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Makes a DVD file structure from one or more MPEG2 streams

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libdvdread.so:multimedia/libdvdread \
		libfribidi.so:converters/fribidi \
		libfreetype.so:print/freetype2 \
		libpng.so:graphics/png \
		libexpat.so:textproc/expat2 \
		libfontconfig.so:x11-fonts/fontconfig

USE_GITHUB=	yes
GH_ACCOUNT=	ldo
GH_TAGNAME=	fe8fe35

USES=		autoreconf:build bison:alias gettext-tools \
		gmake gnome iconv localbase pkgconfig
USE_GNOME=	libxml2
GNU_CONFIGURE=	yes

SUB_FILES=	README.FreeBSD

PORTDOCS=	*

OPTIONS_DEFINE=			DOCS MANPAGES
OPTIONS_RADIO=			IMAGEMAGICK VIDEO-FORMAT
OPTIONS_RADIO_IMAGEMAGICK=	GRAPHICSMAGICK IMAGEMAGICK6
OPTIONS_RADIO_VIDEO-FORMAT=	NTSC PAL
OPTIONS_SUB=			yes

GRAPHICSMAGICK_DESC=		GraphicsMagick image processing support
IMAGEMAGICK6_DESC=		ImageMagick 6.x image processing support
NTSC_DESC=			Default video format NTSC
PAL_DESC=			Default video format PAL
VIDEO-FORMAT_DESC=		Use default video format

GRAPHICSMAGICK_CONFIGURE_WITH=	graphicsmagick
GRAPHICSMAGICK_LIB_DEPENDS=	libGraphicsMagick.so:graphics/GraphicsMagick
IMAGEMAGICK6_CONFIGURE_WITH=	imagemagick
IMAGEMAGICK6_USES=		magick:6
MANPAGES_BUILD_DEPENDS=		docbook2man:textproc/docbook-utils \
				docbook-sgml>0:textproc/docbook-sgml
NTSC_CONFIGURE_ON=		--enable-default-video-format=NTSC
PAL_CONFIGURE_ON=		--enable-default-video-format=PAL

pre-configure-MANPAGES-off:
	@(${MV} ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/Makefile.am.bak && \
	 ${GREP} '^dist_pkgdata_DATA' \
		${WRKSRC}/doc/Makefile.am.bak > ${WRKSRC}/doc/Makefile.am)

pre-configure:
	@(cd ${WRKSRC} && ${MKDIR} autotools/ && \
	 ${CP} ${LOCALBASE}/share/gettext/config.rpath autotools/ && \
	 ${LOCALBASE}/bin/autoreconf -i)

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} \
		${WRKSRC}/AUTHORS ${WRKSRC}/ChangeLog ${WRKSRC}/README \
		${WRKSRC}/TODO ${WRKDIR}/README.FreeBSD ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>