1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/multimedia/2mandvd/Makefile
Max Brazhnikov b924964cfa - Remove now needless qmake_build from USE_QT4
- Get rid of QMAKEFLAGS
- Use globally provided LRELEASE
2013-11-21 16:09:47 +00:00

78 lines
2.5 KiB
Makefile

# Created by: Diego Depaoli <trebestie@gmail.com>
# $FreeBSD$
PORTNAME= 2ManDVD
PORTVERSION= 1.8.5
CATEGORIES= multimedia kde
MASTER_SITES= http://download.tuxfamily.org/2mandvd/
MAINTAINER= ports@FreeBSD.org
COMMENT= DVD authoring and slideshow tool
LICENSE= GPLv2
LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS= sox:${PORTSDIR}/audio/sox \
notify-send:${PORTSDIR}/devel/libnotify \
exif:${PORTSDIR}/graphics/exif \
netpbm>=10.26:${PORTSDIR}/graphics/netpbm \
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
ffmpegthumbnailer:${PORTSDIR}/multimedia/ffmpegthumbnailer \
mencoder:${PORTSDIR}/multimedia/mencoder \
ppmtoy4m:${PORTSDIR}/multimedia/mjpegtools \
mplayer:${PORTSDIR}/multimedia/mplayer \
tcprobe:${PORTSDIR}/multimedia/transcode \
xine:${PORTSDIR}/multimedia/xine \
bash:${PORTSDIR}/shells/bash \
cdrecord:${PORTSDIR}/sysutils/cdrtools \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= desktop-file-utils gmake perl5 qmake:norecursive shebangfix
SHEBANG_FILES= fake.pl
USE_QT4= corelib gui opengl \
linguist_build moc_build rcc_build uic_build
USE_GL= glu
USE_SDL= sdl
USE_PERL5= run
DATADIR= ${PREFIX}/share/2ManDVD
post-extract:
@${FIND} ${WRKSRC} -name "*~" -delete
post-patch:
@${GREP} -lR "/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|/bash|/sh|'
@${GREP} -lR "cp -rf" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|cp -rf|cp -Rf|'
@${REINPLACE_CMD} -e \
's|/usr/include|${LOCALBASE}/include| ; \
s|/usr/share/2ManDVD|${DATADIR}| ; \
s|/usr/bin|${DATADIR}| ; \
s|/usr/share/applications|${PREFIX}/share/applications| ; \
s|^QMAKE_|#QMAKE_|' ${WRKSRC}/2ManDVD.pro
@${REINPLACE_CMD} -e \
's|/usr/share/2ManDVD|${PREFIX}/share/pixmaps| ; \
s|/usr/bin/||' ${WRKSRC}/2ManDVD.desktop
@${REINPLACE_CMD} -e \
's|Ne slideshow|New slideshow|' ${WRKSRC}/2mandvd_en.ts
pre-build:
(cd ${WRKSRC} && ${LRELEASE} 2mandvd_en.ts)
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} 2ManDVD ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_SCRIPT} fake.pl ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} Bibliotheque ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} 2ManDVD.desktop \
${STAGEDIR}${DESKTOPDIR})
(cd ${WRKSRC}/Interface && ${INSTALL_DATA} mandvdico.png \
${STAGEDIR}${PREFIX}/share/pixmaps)
.include <bsd.port.mk>