2002-06-08 16:31:36 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: xtheater
|
|
|
|
# Date created: Jun 7, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xtheater
|
2002-07-13 20:12:12 +02:00
|
|
|
PORTVERSION= 1.0.0.p1
|
|
|
|
PORTEPOCH= 1
|
2003-04-04 03:38:40 +02:00
|
|
|
CATEGORIES= multimedia
|
2002-06-08 16:31:36 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2002-07-13 20:12:12 +02:00
|
|
|
DISTNAME= Xtheater-${PORTVERSION:S/.p/-pre/}
|
2002-06-08 16:31:36 +02:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= MPEG-1 player in GTK+ capable of playing MPEG-1 format streams
|
2002-06-08 16:31:36 +02:00
|
|
|
|
2003-01-02 16:06:10 +01:00
|
|
|
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
|
2003-04-04 03:38:40 +02:00
|
|
|
smpeg.1:${PORTSDIR}/multimedia/smpeg
|
2002-07-13 20:12:12 +02:00
|
|
|
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
2002-06-08 16:31:36 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2002-09-03 04:46:49 +02:00
|
|
|
USE_GNOME= gtk12
|
2002-06-08 16:31:36 +02:00
|
|
|
USE_MESA= yes
|
2002-07-13 20:12:12 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-06-08 16:31:36 +02:00
|
|
|
USE_GMAKE= yes
|
2002-07-13 20:12:12 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
CONFIGURE_ARGS= --enable-gl
|
|
|
|
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${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
|
2002-06-08 16:31:36 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|