aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mmpython/Makefile
blob: 09a2882cea433cbe1f8a97f9bd403deff81c338a (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
# Created by: larse@isi.edu
# $FreeBSD$

PORTNAME=   mmpython
PORTVERSION=    0.4.10
PORTREVISION=   9
CATEGORIES= multimedia python
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Retrieves metadata from mp3, ogg, avi, jpg, and other formats

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libdvdread.so:multimedia/libdvdread
RUN_DEPENDS=    lsdvd:multimedia/lsdvd

USES=       python
USE_PYTHON= distutils autoplist

post-patch:
    @${REINPLACE_CMD} \
        -e 's,/usr/local/,${LOCALBASE}/,g' \
        -e 's|gcc -ldvdread|gcc -L${LOCALBASE}/lib -ldvdread|' \
        ${WRKSRC}/setup.py

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mmpython/disc/*.so

.include <bsd.port.mk>