aboutsummaryrefslogtreecommitdiff
path: root/multimedia/pymp/Makefile
blob: d6fe4b9b23d9e3adffd5deed40de77ca39aa9b02 (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

PORTNAME=	pymp
PORTVERSION=	1.1
PORTREVISION=	3
CATEGORIES=	multimedia python
DIST_SUBDIR=	python

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Lean, flexible frontend to MPlayer written in Python

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	mplayer:${PORTSDIR}/multimedia/mplayer

USE_GITHUB=	yes
GH_ACCOUNT=	jdolan
GH_TAGNAME=	bea99d9

USES=		shebangfix python tar:bzip2
SHEBANG_FILES=	*.py
USE_GNOME=	pygtk2
NO_ARCH=	yes

PORTDOCS=	CHANGELOG README.md

DESKTOP_ENTRIES="Pymp" "" "${PORTNAME}" \
		"${PORTNAME}" "AudioVideo;Player;" ""

OPTIONS_DEFINE=	DOCS

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/

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>