3af48c1f2c
- Add freevo GIDs: - Add freevo multimedia/freevo - Handle user/group creation via Makefile variables - Stagify - Add License - Bump PORTREVISION - Simplify install - remove pkg-install.in - handle private subdirs in /var via pkg-plist and Makefile - remove user/group handling in pkg-deinstall.in PR: ports/189995 Submitted by: "J.R. Oldroyd" <fbsd@opal.com> (maintainer) Approved by: thierry (mentor), maintainer
91 lines
2.9 KiB
Makefile
91 lines
2.9 KiB
Makefile
# Created by: Lewis Thompson (purple@lewiz.net)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= freevo
|
|
PORTVERSION= 1.9.0
|
|
PORTREVISION= 10
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/${PORTNAME}/Freevo%20releases/${PORTVERSION}
|
|
|
|
MAINTAINER= fbsd@opal.com
|
|
COMMENT= Open source digital jukebox
|
|
|
|
LICENSE= GPLv2
|
|
|
|
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-beautifulsoup32 \
|
|
${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
|
|
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
|
${PYTHON_SITELIBDIR}/Numeric/Numeric_headers/__init__.py:${PORTSDIR}/math/py-numeric
|
|
|
|
FREEVO_USER= freevo
|
|
FREEVO_GROUP= ${FREEVO_USER}
|
|
FREEVO_HOME= /var/db/${FREEVO_USER}
|
|
|
|
USERS= ${FREEVO_USER}
|
|
GROUPS= ${FREEVO_GROUP}
|
|
|
|
SUB_LIST+= PYTHON_VERSION=${PYTHON_DEFAULT_VERSION} \
|
|
PORTVERSION=${PORTVERSION} \
|
|
FREEVO_HOME=${FREEVO_HOME}
|
|
SUB_FILES= pkg-message pkg-deinstall
|
|
|
|
USES= twisted:web
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_INSTALLNOSINGLE= yes
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
PYDISTUTILS_SETUP= ${PYSETUP}
|
|
|
|
PLIST_SUB= PYDISTUTILS_EGGINFO=${PYDISTUTILS_EGGINFO}
|
|
|
|
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}
|
|
|
|
OPTIONS_DEFINE= NLS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
@${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
|
|
|
|
do-configure:
|
|
@${DO_NADA}
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${CONFDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/local_conf.py.example ${STAGEDIR}${CONFDIR}
|
|
${MKDIR} ${STAGEDIR}/var/log/freevo
|
|
${MKDIR} ${STAGEDIR}/var/run/freevo
|
|
|
|
.include <bsd.port.mk>
|