Lines 7-46
Link Here
|
7 |
# |
7 |
# |
8 |
|
8 |
|
9 |
PORTNAME= photofilmstrip |
9 |
PORTNAME= photofilmstrip |
10 |
PORTVERSION= 1.4.1 |
10 |
PORTVERSION= 1.4.3 |
11 |
CATEGORIES= multimedia python |
11 |
CATEGORIES= multimedia python |
12 |
MASTER_SITES= SF/photostoryx/${PORTNAME}/${PORTVERSION}/ |
12 |
MASTER_SITES= SF/photostoryx/${PORTNAME}/${PORTVERSION} |
13 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
14 |
|
14 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= PhotoFilmStrip creates movies out of your pictures |
16 |
COMMENT= Creates movies out of your pictures |
17 |
|
17 |
|
18 |
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \ |
18 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \ |
19 |
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 |
19 |
mencoder:${PORTSDIR}/multimedia/mencoder \ |
|
|
20 |
mplayer:${PORTSDIR}/multimedia/mplayer |
21 |
|
22 |
LICENSE= GPLv2 |
23 |
LICENSE_FILE= ${WRKSRC}/COPYING |
20 |
|
24 |
|
21 |
USE_PYTHON= yes |
25 |
USE_PYTHON= yes |
22 |
USE_WX= 2.8+ |
26 |
USE_WX= 2.8+ |
23 |
WX_COMPS= python:lib |
27 |
WX_COMPS= python:lib |
24 |
WX_UNICODE= yes |
28 |
WX_UNICODE= yes |
25 |
USE_GETTEXT= yes |
29 |
USE_GETTEXT= yes |
|
|
30 |
ALL_TARGET= compile |
26 |
|
31 |
|
27 |
LICENSE= GPLv2 |
32 |
PFSDIR= ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME} |
28 |
LICENSE_FILE= ${WRKSRC}/COPYING |
|
|
29 |
|
33 |
|
30 |
pre-everything:: |
34 |
pre-everything:: |
31 |
@${ECHO_MSG} "To run ${PORTNAME}, you must have sqlite3 installed with extensions enabled." |
35 |
@${ECHO_MSG} "To run ${PORTNAME}, you must have sqlite3 installed with extensions enabled." |
32 |
|
36 |
|
33 |
ALL_TARGET= compile |
|
|
34 |
|
35 |
post-patch: |
37 |
post-patch: |
36 |
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/Makefile.rules |
38 |
@${REINPLACE_CMD} -e \ |
37 |
@${REINPLACE_CMD} -e 's|^appdir.*|appdir = ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' ${WRKSRC}/Makefile.rules |
39 |
's|make -C|$$(MAKE) -C|g' ${WRKSRC}/Makefile |
38 |
@${REINPLACE_CMD} -e 's|prefix=.*||' \ |
40 |
@${REINPLACE_CMD} -e \ |
39 |
-e 's|export.*|export PFSDIR=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' \ |
41 |
'/^prefix/s|=.*|= ${PREFIX}|g ; \ |
40 |
-e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/build/${PORTNAME} |
42 |
/^appdir/s|=.*|= ${PFSDIR}|g' ${WRKSRC}/Makefile.rules |
41 |
@${REINPLACE_CMD} -e 's|prefix=.*||' \ |
43 |
@${REINPLACE_CMD} -e \ |
42 |
-e 's|export.*|export PFSDIR=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' \ |
44 |
'/^prefix/d ; \ |
43 |
-e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/build/${PORTNAME}-cli |
45 |
/^export/s|=.*|=${PFSDIR}|g ; \ |
44 |
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/build/${PORTNAME}.desktop |
46 |
s|/usr/bin/python|${PYTHON_CMD}|g' ${WRKSRC}/build/${PORTNAME} |
|
|
47 |
@${REINPLACE_CMD} -e \ |
48 |
'/^prefix/d ; \ |
49 |
/^export/s|=.*|=${PFSDIR}|g ; \ |
50 |
s|/usr/bin/python|${PYTHON_CMD}|g' ${WRKSRC}/build/${PORTNAME}-cli |
51 |
@${REINPLACE_CMD} -e \ |
52 |
'/^Version/s|=.*|=${PORTVERION}|g ; \ |
53 |
s|/usr/share/pixmaps/||g ; \ |
54 |
/^Categories/s|=.*|=Application;AudioVideo;AudioVideoEditing|g ; \ |
55 |
/^OnlyShowIn/d' ${WRKSRC}/build/${PORTNAME}.desktop |
56 |
|
57 |
do-install: |
58 |
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME} ${PREFIX}/bin |
59 |
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME}-cli ${PREFIX}/bin |
60 |
@${MKDIR} ${PFSDIR} |
61 |
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}-cli.py ${PFSDIR} |
62 |
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}-gui.py ${PFSDIR} |
63 |
.for dir in cli core gui lib res |
64 |
@(cd ${WRKSRC}/src && \ |
65 |
${FIND} ${dir} ! \( -name '*.bak' -o -name '*.orig' \) | \ |
66 |
${CPIO} -pdm -R ${SHAREOWN}:${SHAREGRP} ${PFSDIR}) |
67 |
.endfor |
68 |
@${MKDIR} ${PFSDIR}/doc |
69 |
${INSTALL_DATA} ${WRKSRC}/doc/photofilmstrip/* ${PFSDIR}/doc |
70 |
@${FIND} ${PFSDIR} -type d | ${XARGS} ${CHMOD} a+rx |
71 |
@${FIND} ${PFSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} |
72 |
@${MKDIR} ${PREFIX}/share/applications |
73 |
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.desktop ${PREFIX}/share/applications |
74 |
.for lang in cs de en fr it ko pt |
75 |
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES |
76 |
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \ |
77 |
${PREFIX}/share/locale/${lang}/LC_MESSAGES/PhotoFilmStrip.mo |
78 |
.endfor |
79 |
@${MKDIR} ${PREFIX}/share/pixmaps |
80 |
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.xpm ${PREFIX}/share/pixmaps |
45 |
|
81 |
|
46 |
.include <bsd.port.mk> |
82 |
.include <bsd.port.mk> |