2005-02-19 22:52:12 +01:00
|
|
|
# New ports collection makefile for: dvd-slideshow
|
|
|
|
# Date created: 2005-02-16
|
|
|
|
# Whom: Phil Oleson <oz@nixil.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dvd-slideshow
|
2008-04-17 20:50:53 +02:00
|
|
|
PORTVERSION= 0.8.0
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2005-02-19 22:52:12 +01:00
|
|
|
CATEGORIES= multimedia
|
2008-04-17 20:50:53 +02:00
|
|
|
MASTER_SITES= SF
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}-1${EXTRACT_SUFX}
|
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 \
|
- 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
|
|
|
${LOCALBASE}/lib/X11/fonts/urwfonts-ttf/README:${PORTSDIR}/x11-fonts/urwfonts-ttf
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2008-04-17 20:50:53 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-1
|
|
|
|
|
2005-02-19 22:52:12 +01:00
|
|
|
NO_BUILD= yes
|
2007-01-31 15:07:59 +01:00
|
|
|
USE_CDRTOOLS= yes
|
2008-04-17 20:50:53 +02:00
|
|
|
DATADIR= ${PREFIX}/share/apps/${PORTNAME}
|
2005-02-19 22:52:12 +01:00
|
|
|
|
2008-04-17 20:50:53 +02:00
|
|
|
OPTIONS= LAME "Optional mp3 audio support" off \
|
|
|
|
THEMES "Optional themes" off \
|
|
|
|
TOOLAME "Faster Optional mp3 audio support" off \
|
|
|
|
VORBISTOOLS "Optional ogg vorbis audio support" off
|
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
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/bin/lame)
|
|
|
|
WITH_LAME=yes
|
|
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/bin/oggdec)
|
|
|
|
WITH_VORBISTOOLS=yes
|
|
|
|
.endif
|
2008-04-17 20:50:53 +02:00
|
|
|
.if exists(${LOCALBASE}/bin/toolame)
|
|
|
|
WITH_TOOLAME=yes
|
2005-02-19 22:52:12 +01:00
|
|
|
.endif
|
2008-04-17 20:50:53 +02:00
|
|
|
|
2005-02-19 22:52:12 +01:00
|
|
|
.if defined(WITH_LAME)
|
|
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_VORBISTOOLS)
|
|
|
|
RUN_DEPENDS+= oggdec:${PORTSDIR}/audio/vorbis-tools
|
|
|
|
.endif
|
2008-04-17 20:50:53 +02:00
|
|
|
.if defined(WITH_TOOLAME)
|
|
|
|
RUN_DEPENDS+= toolame:${PORTSDIR}/audio/toolame
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_THEMES)
|
|
|
|
DISTFILES+= ${PORTNAME}-themes-${PORTVERSION}-1${EXTRACT_SUFX}
|
|
|
|
WRKSRC2= ${WRKDIR}/${PORTNAME}-themes-${PORTVERSION}-1
|
|
|
|
PLIST_SUB+= NOTHEMES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NOTHEMES="@comment "
|
|
|
|
.endif
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
PLIST_SUB+= NOPORTDOCS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NOPORTDOCS=""
|
|
|
|
.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}
|
2008-04-17 20:50:53 +02:00
|
|
|
.ifdef(WITH_THEMES)
|
|
|
|
@${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
|
|
|
|
.ifndef(NOPORTDOCS)
|
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
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
2005-02-19 22:52:12 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2008-04-17 20:50:53 +02:00
|
|
|
.ifdef(WITH_THEMES)
|
|
|
|
@${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
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|