Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 12:24:51 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/40501: Update port: graphics/xtheater
Message-ID:  <200207121924.g6CJOp8e006295@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         40501
>Category:       ports
>Synopsis:       Update port: graphics/xtheater
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 12 12:30:06 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.6-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix PORTVERSION
- Fix LIB_DEPENDS
- GNU_CONFIGURE -> USE_LIBTOOL

Remove file:
files/patch-smpeg::Makefile.in

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/xtheater/Makefile graphics/xtheater/Makefile
--- /usr/ports/graphics/xtheater/Makefile	Wed Jun 26 22:08:40 2002
+++ graphics/xtheater/Makefile	Fri Jul 12 20:35:33 2002
@@ -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 -urN /usr/ports/graphics/xtheater/files/patch-smpeg::Makefile.in graphics/xtheater/files/patch-smpeg::Makefile.in
--- /usr/ports/graphics/xtheater/files/patch-smpeg::Makefile.in	Sat Jun  8 23:31:36 2002
+++ graphics/xtheater/files/patch-smpeg::Makefile.in	Thu Jan  1 09:00:00 1970
@@ -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 -urN /usr/ports/graphics/xtheater/pkg-plist graphics/xtheater/pkg-plist
--- /usr/ports/graphics/xtheater/pkg-plist	Sat Jun  8 23:31:35 2002
+++ graphics/xtheater/pkg-plist	Fri Jul 12 06:12:29 2002
@@ -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

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207121924.g6CJOp8e006295>