blob: 63236867bcadb52b5c62f3b4eca3bcbe71b155d9 (
plain) (
tree)
|
|
# Created by: Charlie Kester <corky1951@comcast.net>
# $FreeBSD$
PORTNAME= photofilmstrip
PORTVERSION= 1.5.0
PORTREVISION= 2
CATEGORIES= multimedia python
MASTER_SITES= SF/photostoryx/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= 5u623l20@gmail.com
COMMENT= Creates movies out of your pictures
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
mencoder:${PORTSDIR}/multimedia/mencoder \
mplayer:${PORTSDIR}/multimedia/mplayer
PORTSCOUT= skipv:1.9.90,1.9.91 # Unstable Versions
USE_PYTHON= yes
USE_WX= 2.8+
WX_COMPS= python:lib
WX_UNICODE= yes
USES= gettext
ALL_TARGET= compile
PFSDIR= ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
NO_STAGE= yes
pre-everything::
@${ECHO_MSG} "To run ${PORTNAME}, you must have sqlite3 installed with extensions enabled."
post-patch:
@${REINPLACE_CMD} -e \
's|make -C|$$(MAKE) -C|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
'/^prefix/s|=.*|= ${PREFIX}|g ; \
/^appdir/s|=.*|= ${PFSDIR}|g' ${WRKSRC}/Makefile.rules
@${REINPLACE_CMD} -e \
'/^prefix/d ; \
/^export/s|=.*|=${PFSDIR}|g ; \
s|/usr/bin/python|${PYTHON_CMD}|g' ${WRKSRC}/build/${PORTNAME}
@${REINPLACE_CMD} -e \
'/^prefix/d ; \
/^export/s|=.*|=${PFSDIR}|g ; \
s|/usr/bin/python|${PYTHON_CMD}|g' ${WRKSRC}/build/${PORTNAME}-cli
@${REINPLACE_CMD} -e \
'/^Version/s|=.*|=${PORTVERION}|g ; \
s|/usr/share/pixmaps/||g ; \
/^Categories/s|=.*|=Application;AudioVideo;AudioVideoEditing|g ; \
/^OnlyShowIn/d' ${WRKSRC}/build/${PORTNAME}.desktop
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME}-cli ${PREFIX}/bin
@${MKDIR} ${PFSDIR}
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}-cli.py ${PFSDIR}
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}-gui.py ${PFSDIR}
.for dir in cli core gui lib res
@(cd ${WRKSRC}/src && \
${FIND} ${dir} ! \( -name '*.bak' -o -name '*.orig' \) | \
${CPIO} -pdm -R ${SHAREOWN}:${SHAREGRP} ${PFSDIR})
.endfor
@${MKDIR} ${PFSDIR}/doc
${INSTALL_DATA} ${WRKSRC}/doc/photofilmstrip/* ${PFSDIR}/doc
@${FIND} ${PFSDIR} -type d | ${XARGS} ${CHMOD} a+rx
@${FIND} ${PFSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.desktop ${PREFIX}/share/applications
.for lang in cs de en fr it ko nl pt tr
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/PhotoFilmStrip.mo
.endfor
@${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.xpm ${PREFIX}/share/pixmaps
.include <bsd.port.mk>
|