aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/photofilmstrip/Makefile
blob: 881ee025151fd4225859abd29f8b27896536efc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ex:ts=8
# Ports collection makefile for:    photofilmstrip
# Date created:     2011-02-04
# Whom:         Charlie Kester <corky1951@comcast.net>
#
# $FreeBSD$
#

PORTNAME=   photofilmstrip
PORTVERSION=    1.4.0
CATEGORIES= multimedia python
MASTER_SITES=   SF/photostoryx/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= corky1951@comcast.net
COMMENT=    PhotoFilmStrip creates movies out of your pictures

RUN_DEPENDS=    mplayer:${PORTSDIR}/multimedia/mplayer \
        ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3

USE_PYTHON= yes
USE_WX=     2.8+
WX_COMPS=   python:lib
USE_GETTEXT=    yes

LICENSE=    GPLv2

pre-everything::
    @${ECHO_MSG} "To run ${PORTNAME}, you must have the Unicode version of py-wxPython28 installed."
    @${ECHO_MSG} "You must also have sqlite3 installed with extensions enabled."

ALL_TARGET= compile

post-patch:
    @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/Makefile.rules
    @${REINPLACE_CMD} -e 's|^appdir.*|appdir = ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' ${WRKSRC}/Makefile.rules
    @${REINPLACE_CMD} -e 's|prefix=.*||' \
        -e 's|export.*|export PFSDIR=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' \
        -e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/build/${PORTNAME}
    @${REINPLACE_CMD} -e 's|prefix=.*||' \
        -e 's|export.*|export PFSDIR=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}|' \
        -e 's|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/build/${PORTNAME}-cli
    @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/build/${PORTNAME}.desktop

.include <bsd.port.mk>