aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/xtheater/Makefile
blob: f5ae8edc480d3b55209b24a7c4750236ec136eb3 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   xtheater
PORTVERSION=    1.0.0.p1
PORTREVISION=   10
PORTEPOCH=  1
CATEGORIES= multimedia
MASTER_SITES=   SF/${PORTNAME}/Xtheater/1.0.0-pre1
DISTNAME=   Xtheater-${PORTVERSION:S/.p/-pre/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    MPEG-1 player in GTK+ capable of playing MPEG-1 format streams

LIB_DEPENDS=    libsmpeg.so:${PORTSDIR}/multimedia/smpeg

USE_SDL=    sdl
USE_GNOME=  gtk12
USE_GL=     yes
USES=       gmake libtool tar:bzip2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-gl

CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}

post-patch:
    @${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
        ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|[(]prefix[)]/Xtheater|(libdir)/Xtheater|g ; \
         s|-release.*$$|-module -avoid-version|g'
    @${REINPLACE_CMD} -e 's|PREFIX/Xtheater|PREFIX/lib/Xtheater|g' \
        ${WRKSRC}/Xtheater.conf
.for file in plugins/player/smpeg/glscreen.c plugins/player/wm/glscreen.c
    @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/${file}
.endfor

.include <bsd.port.mk>