2013-04-26 14:35:50 +02:00
|
|
|
# Created by: Phil Oleson <oz@nixil.net>
|
2005-02-19 22:52:12 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dvd-slideshow
|
2013-05-30 13:52:44 +02:00
|
|
|
PORTVERSION= 0.8.4
|
2005-02-19 22:52:12 +01:00
|
|
|
CATEGORIES= multimedia
|
2010-09-28 17:17:16 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}-2:main \
|
|
|
|
SF/${PORTNAME}/${PORTNAME}-themes/${THEMEVERSION}-1:themes
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}-2${EXTRACT_SUFX}:main
|
2013-05-30 13:52:44 +02:00
|
|
|
THEMEVERSION= 0.8.4
|
2005-02-19 22:52:12 +01:00
|
|
|
|
|
|
|
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 \
|
2005-05-08 21:58:42 +02:00
|
|
|
mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \
|
|
|
|
ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
|
2005-02-19 22:52:12 +01:00
|
|
|
sox:${PORTSDIR}/audio/sox \
|
|
|
|
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
|
2008-04-17 20:50:53 +02:00
|
|
|
jhead:${PORTSDIR}/graphics/jhead \
|
|
|
|
flvtool2:${PORTSDIR}/multimedia/ruby-flvtool2 \
|
2013-04-26 14:35:50 +02:00
|
|
|
${LOCALBASE}/lib/X11/fonts/urwfonts-ttf/README:${PORTSDIR}/x11-fonts/urwfonts-ttf \
|
|
|
|
cdrecord:${PORTSDIR}/sysutils/cdrtools
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2009-04-23 11:25:21 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-2
|
2008-04-17 20:50:53 +02:00
|
|
|
|
2005-02-19 22:52:12 +01:00
|
|
|
NO_BUILD= yes
|
2008-04-17 20:50:53 +02:00
|
|
|
DATADIR= ${PREFIX}/share/apps/${PORTNAME}
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2013-04-26 14:35:50 +02:00
|
|
|
OPTIONS_DEFINE= LAME THEMES TOOLAME VORBIS
|
|
|
|
THEMES_DESC= Optional themes
|
|
|
|
TOOLAME_DESC= Faster Optional mp3 audio support
|
2005-02-19 22:52:12 +01:00
|
|
|
|
|
|
|
MAN1= dvd-slideshow.1 \
|
|
|
|
dvd-menu.1 \
|
2005-05-08 21:58:42 +02:00
|
|
|
dir2slideshow.1 \
|
2006-10-10 12:50:14 +02:00
|
|
|
gallery1-to-slideshow.1 \
|
2005-02-19 22:52:12 +01:00
|
|
|
jigl2slideshow.1
|
|
|
|
|
2013-09-20 22:57:48 +02:00
|
|
|
NO_STAGE= yes
|
2013-04-26 14:35:50 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MLAME}
|
2005-02-19 22:52:12 +01:00
|
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
|
|
|
|
.endif
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MVORBISTOOLS}
|
2005-02-19 22:52:12 +01:00
|
|
|
RUN_DEPENDS+= oggdec:${PORTSDIR}/audio/vorbis-tools
|
|
|
|
.endif
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MTOOLAME}
|
2008-04-17 20:50:53 +02:00
|
|
|
RUN_DEPENDS+= toolame:${PORTSDIR}/audio/toolame
|
|
|
|
.endif
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MTHEMES}
|
2010-09-28 17:17:16 +02:00
|
|
|
DISTFILES+= ${PORTNAME}-themes-${THEMEVERSION}-1${EXTRACT_SUFX}:themes
|
2009-04-23 11:25:21 +02:00
|
|
|
WRKSRC2= ${WRKDIR}/${PORTNAME}-themes-${THEMEVERSION}-1
|
2008-04-17 20:50:53 +02:00
|
|
|
PLIST_SUB+= NOTHEMES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NOTHEMES="@comment "
|
|
|
|
.endif
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2005-12-30 22:26:14 +01:00
|
|
|
post-patch:
|
2006-10-10 12:50:14 +02:00
|
|
|
.for FILE in dvd-slideshow dvd-menu dir2slideshow gallery1-to-slideshow jigl2slideshow
|
2006-03-20 16:24:56 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|!/bin/bash|!${PREFIX}/bin/bash|g ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s|/usr/share/fonts/|${LOCALBASE}/lib/X11/fonts/|g ; \
|
2006-03-20 16:24:56 +01:00
|
|
|
s|seq |seq2 |g' \
|
|
|
|
${WRKSRC}/${FILE}
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MTHEMES}
|
2008-04-17 20:50:53 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/opt/dvd-slideshow/themes|${DATADIR}/themes|g' \
|
|
|
|
${WRKSRC}/${FILE}
|
|
|
|
.endif
|
2005-02-19 22:52:12 +01:00
|
|
|
.endfor
|
2005-05-08 21:58:42 +02:00
|
|
|
|
2005-02-19 22:52:12 +01:00
|
|
|
do-install:
|
2008-04-17 20:50:53 +02:00
|
|
|
@${ECHO_MSG} "Installing scripts."
|
2006-10-10 12:50:14 +02:00
|
|
|
.for FILE in dvd-slideshow dvd-menu dir2slideshow gallery1-to-slideshow jigl2slideshow
|
2005-02-19 22:52:12 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
|
|
|
|
.endfor
|
2005-05-08 21:58:42 +02:00
|
|
|
@${ECHO_MSG} "Installing man files."
|
2005-02-19 22:52:12 +01:00
|
|
|
.for FILE in ${MAN1}
|
2008-04-17 20:50:53 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${FILE} ${PREFIX}/man/man1
|
2005-02-19 22:52:12 +01:00
|
|
|
.endfor
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-05-08 21:58:42 +02:00
|
|
|
@${ECHO_MSG} "Installing doc files."
|
2008-04-17 20:50:53 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dvd-slideshowrc ${DOCSDIR}
|
|
|
|
.for FILE in changelog.html gallery1-to-slideshow.html dir2slideshow.html jigl2slideshow.html dvd-menu.html dvd-slideshow.html
|
2009-04-23 11:25:21 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
|
2005-02-19 22:52:12 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2013-04-26 14:35:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MTHEMES}
|
2008-04-17 20:50:53 +02:00
|
|
|
@${ECHO_MSG} "Installing theme files."
|
|
|
|
${MKDIR} ${DATADIR}/themes
|
|
|
|
cd ${WRKSRC2} && ${FIND} * | ${CPIO} -dpmu -R ${BINOWN}:${BINGRP} --quiet ${DATADIR}/themes
|
|
|
|
.endif
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2013-04-26 14:35:50 +02:00
|
|
|
.include <bsd.port.mk>
|