aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/xtheater
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-07-14 02:12:12 +0800
committerijliao <ijliao@FreeBSD.org>2002-07-14 02:12:12 +0800
commit3be700e9bd14003447dbdc7e9511a4eaa9b3897e (patch)
treec9bfb38bd14e67a66311fe020970b340a578be76 /multimedia/xtheater
parent5e28f754ccfb4a772e060f83b4be566b96d71350 (diff)
downloadfreebsd-ports-graphics-3be700e9bd14003447dbdc7e9511a4eaa9b3897e.tar.gz
freebsd-ports-graphics-3be700e9bd14003447dbdc7e9511a4eaa9b3897e.tar.zst
freebsd-ports-graphics-3be700e9bd14003447dbdc7e9511a4eaa9b3897e.zip
- Fix PORTVERSION
- Fix LIB_DEPENDS - GNU_CONFIGURE -> USE_LIBTOOL PR: 40501 Submitted by: Ports Fury
Diffstat (limited to 'multimedia/xtheater')
-rw-r--r--multimedia/xtheater/Makefile36
-rw-r--r--multimedia/xtheater/files/patch-smpeg::Makefile.in11
-rw-r--r--multimedia/xtheater/pkg-plist18
3 files changed, 31 insertions, 34 deletions
diff --git a/multimedia/xtheater/Makefile b/multimedia/xtheater/Makefile
index c0b16148e34..272b09e4de5 100644
--- a/multimedia/xtheater/Makefile
+++ b/multimedia/xtheater/Makefile
@@ -7,27 +7,41 @@
#
PORTNAME= xtheater
-PORTVERSION= 1.0.0p1
+PORTVERSION= 1.0.0.p1
+PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= Xtheater-${PORTVERSION:S/p/-pre/}
+DISTNAME= Xtheater-${PORTVERSION:S/.p/-pre/}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= SDL-1.1:${PORTSDIR}/devel/sdl12 \
- smpeg:${PORTSDIR}/graphics/smpeg \
- aviplay-0.7:${PORTSDIR}/graphics/avifile
+LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/deve/sdl12 \
+ smpeg.1:${PORTSDIR}/graphics/smpeg
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
USE_BZIP2= yes
-USE_XLIB= yes
USE_GTK= yes
USE_MESA= yes
-SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
- CPPFLAGS="${CXXFLAGS} -I${LOCALBASE} ${PTHREAD_CFLAGS}" \
- LDFLAGS="-L${LOCALBASE} ${PTHREAD_LIBS}"
+USE_REINPLACE= yes
USE_GMAKE= yes
+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
.include <bsd.port.mk>
diff --git a/multimedia/xtheater/files/patch-smpeg::Makefile.in b/multimedia/xtheater/files/patch-smpeg::Makefile.in
deleted file mode 100644
index 18c27a29bce..00000000000
--- a/multimedia/xtheater/files/patch-smpeg::Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- plugins/player/smpeg/Makefile.in.orig Sat Jun 8 02:47:41 2002
-+++ plugins/player/smpeg/Makefile.in Sat Jun 8 02:47:57 2002
-@@ -94,7 +94,7 @@
- @USE_GL_TRUE@GL_LIBS = -lGL -lGLU
- @USE_GL_FALSE@GL_LIBS =
- LIBS = $(SMPEG_LIBS) $(GL_LIBS)
--INCLUDES = -I.. $(SMPEG_CFLAGS) $(GLIB_CFLAGS)
-+INCLUDES = -I.. $(SMPEG_CFLAGS) $(GLIB_CFLAGS) -I${X11BASE}/include
- mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
- CONFIG_HEADER = ../../../config.h
- CONFIG_CLEAN_FILES =
diff --git a/multimedia/xtheater/pkg-plist b/multimedia/xtheater/pkg-plist
index 537163bc416..6dbd34c9900 100644
--- a/multimedia/xtheater/pkg-plist
+++ b/multimedia/xtheater/pkg-plist
@@ -1,13 +1,7 @@
bin/xtheater
-Xtheater/player/libsmpeg-1.0.0-pre1.so
-Xtheater/player/libsmpeg.a
-Xtheater/player/libsmpeg.la
-Xtheater/player/libsmpeg.so
-Xtheater/ui/libgtkui-1.0.0-pre1.so
-Xtheater/ui/libgtkui.a
-Xtheater/ui/libgtkui.la
-Xtheater/ui/libgtkui.so
-Xtheater/config
-@dirrm Xtheater/player
-@dirrm Xtheater/ui
-@dirrm Xtheater
+lib/Xtheater/config
+lib/Xtheater/player/libsmpeg.so
+lib/Xtheater/ui/libgtkui.so
+@dirrm lib/Xtheater/ui
+@dirrm lib/Xtheater/player
+@dirrm lib/Xtheater