1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/multimedia/pyjama/Makefile
Antoine Brodin 38308bbce8 - Add explicit FLAVOR to a few dependencies
- Remove FLAVOR from py-docutils dependency in comms/uhd, in this case
  it needs the rst2html command, not the docutils module
- Mark some ports as not compatible with python3
2017-12-03 08:25:31 +00:00

63 lines
2.1 KiB
Makefile

# Created by: Kjell Tore Ullavik <ktullavik@gmail.com>
# $FreeBSD$
PORTNAME= pyjama
PORTVERSION= 0.3.0.1
PORTREVISION= 7
CATEGORIES= multimedia python
MASTER_SITES= http://launchpadlibrarian.net/26637583/
DISTNAME= pyjama-0.3.0.1_all
MAINTAINER= ports@FreeBSD.org
COMMENT= Frontend to the Jamendo music network
LICENSE= GPLv2 CC-BY-NC-SA-3.0 PD
LICENSE_COMB= multi
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}lxml>=2.2:devel/py-lxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:devel/py-simplejson@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gstreamer>=0.10:multimedia/py-gstreamer@${PY_FLAVOR}
USES= gettext python:2.7 shebangfix
SHEBANG_FILES= src/pyjama.py
USE_GSTREAMER= core good bad gnomevfs
USE_GNOME= pygtk2
NO_BUILD= yes
NO_ARCH= yes
LOCALES= bg ca da de en_GB es fr it pl
INSTDIR= ${PYTHON_SITELIBDIR}/${PORTNAME}
INSTSUBDIRS= clLayouts extended_modules images modules plugins themes
INSTFILES= about.glade preferences.glade pyjama.cfg pyjama_test.glade \
pyjama.doxygen.py pyjama.py pyjama_test.glade
post-patch:
${REINPLACE_CMD} -i '' 's|path = "locale"|path = "${PREFIX}/share/locale"|' \
${WRKSRC}/src/modules/functions.py
${REINPLACE_CMD} -i '' 's|INSTALL_DIR_POSIX = "/usr/share/apps/pyjama"|INSTALL_DIR_POSIX = "${INSTDIR}"|' \
${WRKSRC}/src/modules/constants.py
${FIND} ${WRKSRC} -name "*~" -delete
do-install:
@${MKDIR} ${STAGEDIR}${INSTDIR}
.for f in ${INSTFILES}
${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${INSTDIR}
.endfor
.for dir in ${INSTSUBDIRS}
cd ${WRKSRC}/src && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${INSTDIR}
.endfor
.for loc in ${LOCALES}
${INSTALL_DATA} ${WRKSRC}/src/locale/${loc}/LC_MESSAGES/pyjama.mo ${STAGEDIR}${PREFIX}/share/locale/${loc}/LC_MESSAGES/
.endfor
${LN} -fs ${INSTDIR}/pyjama.py ${STAGEDIR}${PREFIX}/bin/pyjama
${CHMOD} a+x ${STAGEDIR}${INSTDIR}/pyjama.py
${INSTALL_DATA} ${WRKSRC}/src/pyjama.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/src/images/pyjama.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
.include <bsd.port.mk>