freebsd-ports/multimedia/pymp/Makefile
Rusmir Dusko ef7179c71f - Change Makefile header, use my name and @FreeBSD.org email
- Bump PORTREVISION for MAINTAINER change
- Reset maintainer to ports@
- Remove master sites, use GitHub=yes
- USES tar:bzip2 instead of USE_BZIP2=yes
- Fix the usage of 'python' to get rid of the implicit lang/python dependency
- Change DOCS and add Option
- Change desktop entry
- Change REINPLACE, use /bin/sh instead of /bin/bash
- Mute RM
- Change pkg-descr, remove not needed whitespace and change WWW
2014-04-27 09:23:32 +00:00

59 lines
1.3 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= pymp
PORTVERSION= 1.1
PORTREVISION= 2
CATEGORIES= multimedia python
DIST_SUBDIR= python
MAINTAINER= ports@FreeBSD.org
COMMENT= Lean, flexible frontend to MPlayer written in Python
LICENSE= GPLv2
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
USE_GITHUB= yes
GH_ACCOUNT= jdolan
GH_PROJECT= pymp
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= bea99d9
USES= shebangfix tar:bzip2
SHEBANG_FILES= *.py
python_OLD_CMD?= /usr/bin/env python
python_CMD?= ${PYTHON_CMD}
USE_PYTHON= yes
USE_GNOME= pygtk2
PORTDOCS= CHANGELOG README.md
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Pymp" "" "${PORTNAME}" \
"${PORTNAME}" "AudioVideo;Player;" ""
post-patch:
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|; \
s|PREFIX/lib/pymp|${DATADIR}|' ${WRKSRC}/${PORTNAME}
@${RM} -f ${WRKSRC}/build.py
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${DATADIR}
.for f in *.py *.pyc *.pyo
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>