Lines 6-69
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= dvdauthor |
8 |
PORTNAME= dvdauthor |
9 |
PORTVERSION= 0.7.0 |
9 |
PORTVERSION= 0.7.1 |
10 |
PORTREVISION= 3 |
|
|
11 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia |
12 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF |
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= nemysis@gmx.ch |
15 |
COMMENT= Makes a DVD file structure from one or more MPEG2 streams |
14 |
COMMENT= Makes a DVD file structure from one or more MPEG2 streams |
16 |
|
15 |
|
17 |
LIB_DEPENDS= dvdread.4:${PORTSDIR}/multimedia/libdvdread \ |
16 |
LICENSE= GPLv2 |
18 |
fribidi.3:${PORTSDIR}/converters/fribidi \ |
|
|
19 |
xml2.5:${PORTSDIR}/textproc/libxml2 \ |
20 |
freetype.9:${PORTSDIR}/print/freetype2 |
21 |
|
17 |
|
22 |
USE_BISON= build |
18 |
LIB_DEPENDS= dvdread:${PORTSDIR}/multimedia/libdvdread \ |
23 |
USE_GMAKE= yes |
19 |
fribidi:${PORTSDIR}/converters/fribidi \ |
|
|
20 |
iconv:${PORTSDIR}/converters/libiconv \ |
21 |
freetype:${PORTSDIR}/print/freetype2 \ |
22 |
png15:${PORTSDIR}/graphics/png |
23 |
|
24 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
25 |
|
26 |
USE_GNOME= libxml2 |
24 |
GNU_CONFIGURE= yes |
27 |
GNU_CONFIGURE= yes |
25 |
CFLAGS+= -I${LOCALBASE}/include |
28 |
USE_GMAKE= yes |
26 |
LDFLAGS+= -L${LOCALBASE}/lib |
29 |
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib |
27 |
WRKSRC= ${WRKDIR}/dvdauthor |
|
|
28 |
MAN1= dvdauthor.1 dvddirdel.1 dvdunauthor.1 mpeg2desc.1 spumux.1 spuunmux.1 |
29 |
|
30 |
|
30 |
.include <bsd.port.pre.mk> |
31 |
DOCSRCDIR1= ${WRKSRC} |
|
|
32 |
DOC_FILES1= AUTHORS ChangeLog README TODO |
31 |
|
33 |
|
32 |
.if exists(${LOCALBASE}/lib/libfreetype.so.9) |
34 |
DOCSRCDIR2= ${WRKDIR} |
33 |
WITH_FREETYPE= yes |
35 |
DOC_FILES2= README.FreeBSD |
34 |
.endif |
36 |
|
35 |
.if exists(${LOCALBASE}/lib/libiconv.so) |
37 |
MAN1= dvdauthor.1 dvddirdel.1 dvdunauthor.1 mpeg2desc.1 spumux.1 spuunmux.1 |
36 |
WITH_ICONV= yes |
38 |
|
|
|
39 |
OPTIONS_DEFINE= VIDEO-FORMAT IMAGEMAGICK |
40 |
|
41 |
OPTIONS_SINGLE= VIDEO-FORMAT |
42 |
OPTIONS_SINGLE_VIDEO-FORMAT= NTSC PAL |
43 |
|
44 |
VIDEO-FORMAT_DESC= Use default video format |
45 |
NTSC_DESC= Default video format NTSC |
46 |
PAL_DESC= Default video format PAL |
47 |
|
48 |
SUB_FILES= README.FreeBSD |
49 |
|
50 |
.include <bsd.port.options.mk> |
51 |
|
52 |
.if ${PORT_OPTIONS:MNTSC} |
53 |
.if ${PORT_OPTIONS:MVIDEO-FORMAT} |
54 |
CONFIGURE_ENV+= --enable-default-video-format=NTSC |
37 |
.endif |
55 |
.endif |
38 |
.if exists(${LOCALBASE}/lib/libMagickWand.so.5) |
|
|
39 |
WITH_IMAGEMAGICK= yes |
40 |
.endif |
56 |
.endif |
41 |
|
57 |
|
42 |
.if defined(WITH_ICONV) |
58 |
.if ${PORT_OPTIONS:MPAL} |
43 |
USE_ICONV= yes |
59 |
.if ${PORT_OPTIONS:MVIDEO-FORMAT} |
44 |
CFLAGS+= -DICONV_CONV=yes |
60 |
CONFIGURE_ENV+= --enable-default-video-format=PAL |
45 |
.endif |
61 |
.endif |
46 |
.if defined(WITH_IMAGEMAGICK) |
|
|
47 |
LIB_DEPENDS+= MagickWand.5:${PORTSDIR}/graphics/ImageMagick |
48 |
.else |
49 |
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png |
50 |
.endif |
62 |
.endif |
51 |
|
63 |
|
52 |
pre-everything:: |
64 |
.if ${PORT_OPTIONS:MIMAGEMAGICK} |
53 |
.if !defined(WITH_ICONV) |
65 |
LIB_DEPENDS+= Magick:${PORTSDIR}/graphics/ImageMagick |
54 |
@${ECHO_MSG} "You can enable Iconv support by defining WITH_ICONV." |
|
|
55 |
@${ECHO_MSG} |
56 |
.endif |
57 |
.if !defined(WITH_IMAGEMAGICK) |
58 |
@${ECHO_MSG} "You can enable ImageMagick support by defining WITH_IMAGEMAGICK." |
59 |
@${ECHO_MSG} |
60 |
.endif |
66 |
.endif |
61 |
|
67 |
|
62 |
post-install: |
68 |
post-install: |
63 |
.if !defined(NOPORTDOCS) |
69 |
.if ${PORT_OPTIONS:MDOCS} |
64 |
${MKDIR} ${PREFIX}/share/doc/dvdauthor |
70 |
${MKDIR} ${DOCSDIR} |
65 |
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dvdauthor |
71 |
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} |
66 |
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${PREFIX}/share/doc/dvdauthor |
72 |
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR} |
67 |
.endif |
73 |
.endif |
68 |
|
74 |
|
69 |
.include <bsd.port.post.mk> |
75 |
.include <bsd.port.mk> |