aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/freevo/Makefile
blob: 403e4f8142dca50b62e439714f430361388e4765 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# New ports collection makefile for:    freevo
# Date created:     April 10 2004
# Whom:         Lewis Thompson (purple@lewiz.net)
#
# $FreeBSD$
#

PORTNAME=   freevo
PORTVERSION=    1.9.0
PORTREVISION=   6
CATEGORIES= multimedia
MASTER_SITES=   SF/${PORTNAME}/Freevo%20releases/${PORTVERSION}

MAINTAINER= fbsd@opal.com
COMMENT=    Open source digital jukebox

RUN_DEPENDS=    mplayer:${PORTSDIR}/multimedia/mplayer \
        mencoder:${PORTSDIR}/multimedia/mencoder \
        aumix:${PORTSDIR}/audio/aumix \
        tv_cat:${PORTSDIR}/textproc/p5-xmltv \
        ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.3.0_1:${PORTSDIR}/devel/py-zope.interface \
        ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml \
        ${PYTHON_SITELIBDIR}/kaa/__init__.py:${PORTSDIR}/multimedia/py-kaa-base \
        ${PYTHON_SITELIBDIR}/kaa/imlib2/__init__.py:${PORTSDIR}/multimedia/py-kaa-imlib2 \
        ${PYTHON_SITELIBDIR}/kaa/metadata/__init__.py:${PORTSDIR}/multimedia/py-kaa-metadata \
        ${PYTHON_SITELIBDIR}/BeautifulSoup.py:${PORTSDIR}/www/py-beautifulsoup \
        ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
        ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
        ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted \
        ${PYTHON_SITELIBDIR}/Numeric/Numeric_headers/__init__.py:${PORTSDIR}/math/py-numeric

FREEVO_USER=    freevo
FREEVO_GROUP=   ${FREEVO_USER}
FREEVO_UID= 523
FREEVO_GID= ${FREEVO_UID}
FREEVO_HOME=    /var/db/${FREEVO_USER}

SUB_LIST+=  PYTHON_VERSION=${PYTHON_DEFAULT_VERSION} \
        PORTVERSION=${PORTVERSION} \
        FREEVO_USER=${FREEVO_USER} \
        FREEVO_GROUP=${FREEVO_GROUP} \
        FREEVO_UID=${FREEVO_UID} \
        FREEVO_GID=${FREEVO_GID} \
        FREEVO_HOME=${FREEVO_HOME}
SUB_FILES=  pkg-message pkg-install pkg-deinstall

USE_PYTHON= yes
USE_PYDISTUTILS=    yes

USE_RC_SUBR=    ${PORTNAME}
RC_SCRIPT=  ${PREFIX}/etc/rc.d/${PORTNAME}

CONFDIR=    ${PREFIX}/etc/${PORTNAME}
DATADIR=    ${PREFIX}/share/${PORTNAME}
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}

.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.endif

post-patch:
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -e 's| freevo_locale| # freevo_locale|' ${WRKSRC}/${PORTNAME}
    @${MV} ${WRKSRC}/i18n ${WRKSRC}/i18n-nls-disabled
.endif
    @${REINPLACE_CMD} -e 's|/etc/freevo|${PREFIX}/etc/freevo|' ${WRKSRC}/freevo_config.py
    @${REINPLACE_CMD} -e 's|/etc/freevo|${PREFIX}/etc/freevo|' ${WRKSRC}/local_conf.py.example
    @${MV} ${WRKSRC}/src/www/htdocs/favorites.rpy.orig ${WRKDIR}
    @${MV} ${WRKSRC}/src/www/htdocs/search.rpy.orig ${WRKDIR}
    @${RM} ${WRKSRC}/src/www/htdocs/fileinfo.rpy.orig ${WRKSRC}/src/www/htdocs/guide.rpy.orig \
        ${WRKSRC}/src/www/htdocs/guidechannel.rpy.orig ${WRKSRC}/src/www/htdocs/proginfo.rpy.orig \
        ${WRKSRC}/src/www/htdocs/vlcwin.rpy.orig

post-install:
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
    ${MKDIR} ${CONFDIR}
    ${CHMOD} a+rx ${CONFDIR}
    ${INSTALL_DATA} ${WRKSRC}/local_conf.py.example ${CONFDIR}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>