summaryrefslogtreecommitdiffstats
path: root/multimedia/pymp/Makefile
blob: 34d2f79c5fc934621f142aaa57fa68a0f1808db2 (plain)
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
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$

PORTNAME=	pymp
PORTVERSION=	1.1
PORTREVISION=	1
CATEGORIES=	multimedia python
MASTER_SITES=	SF/nemysisfreebsdp/${CATEGORIES}/
DIST_SUBDIR=	python

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

LICENSE=	GPLv2

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

USE_BZIP2=	yes
USES=		shebangfix
SHEBANG_FILES=	${PORTNAME}
USE_PYTHON=	yes
USE_GNOME=	pygtk2

PORTDOCS=	CHANGELOG README

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

post-patch:
	@${REINPLACE_CMD} -e '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 d in *.py *.pyc *.pyo
	${INSTALL_DATA} ${WRKSRC}/${d} ${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>
OpenPOWER on IntegriCloud