Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 21:17:04 +0100 (CET)
From:      "Sebastian Yepes F.ESN" <esn@x123.info>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/59379: [Port Update]:: graphics/blender-devel 2.28c -> 2.30 [Fix PR=59374]
Message-ID:  <20031117201704.826181707F@mail.x123.info>
Resent-Message-ID: <200311172020.hAHKKAGK024823@freefall.freebsd.org>

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

>Number:         59379
>Category:       ports
>Synopsis:       [Port Update]:: graphics/blender-devel 2.28c -> 2.30 [Fix PR=59374]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 17 12:20:09 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sebastian Yepes F. [ESN]
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD agosto 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Tue Jul 22 15:14:38 GMT 2003 root@agosto:/usr/obj/usr/src/sys/MYK_SRV i386


	
>Description:
	UpDate the port graphics/blender-devel 2.28c -> 2.30
	and added the Options
	WITH_OGG
	WITH_VORBIS
	
	Added CONFIGURE_TARGET to fix the build target...
>How-To-Repeat:
	
>Fix:


diff -ur blender-devel.old/Makefile blender-devel/Makefile
--- blender-devel.old/Makefile	Sun Oct 19 04:55:02 2003
+++ blender-devel/Makefile	Mon Nov 17 21:10:28 2003
@@ -5,7 +5,7 @@
 # $FreeBSD: ports/graphics/blender-devel/Makefile,v 1.6 2003/10/19 02:55:02 edwin Exp $
 
 PORTNAME=	blender
-PORTVERSION=	2.28c
+PORTVERSION=	2.30
 CATEGORIES=	graphics games
 MASTER_SITES=	http://download.blender.org/source/
 PKGNAMESUFFIX=	-devel
@@ -13,6 +13,7 @@
 MAINTAINER=	dyeske@yahoo.com
 COMMENT=	3D modeling/rendering/animation/gaming package
 
+BUILD_DEPENDS=	${LOCALBASE}/share/automake/install-sh:${PORTSDIR}/devel/automake
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
 		png.5:${PORTSDIR}/graphics/png
 
@@ -25,43 +26,52 @@
 USE_SDL=	yes
 USE_MESA=	yes
 
-CONFIGURE_ARGS=	--disable-oggtest --disable-vorbistest --disable-sdltest
+CONFIGURE_ARGS=	--disable-sdltest
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include"
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include -L/usr/X11R6/lib" \
+		LIBS="-L${X11BASE}/lib -lGLU -L${LOCALBASE}/lib -lpng"
 
 .if defined(WITH_OPTIMIZED_CFLAGS)
 CFLAGS+=	-O3 -ffast-math
 .endif
+.if defined(WITH_OGG)
+LIB_DEPENDS+=		ogg.4:${PORTSDIR}/audio/libogg
+CONFIGURE_ARGS+=	--with-ogg=${LOCALBASE}
+.endif
+.if defined(WITH_VORBIS)
+LIB_DEPENDS+=		vorbis.2:${PORTSDIR}/audio/libvorbis
+CONFIGURE_ARGS+=	--with-vorbis=${LOCALBASE}
+.endif
 
 pre-everything::
 .if !defined(WITH_OPTIMIZED_CFLAGS)
 	@${ECHO_MSG} "You can enable additional compilation optimizations"
-	@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
+	@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS=YES"
+	@${ECHO_MSG} ""
+.endif
+.if !defined(WITH_OGG)
+	@${ECHO_MSG} "Add Support for the OGG lib"
+	@${ECHO_MSG} "by defining WITH_OGG=YES"
+	@${ECHO_MSG} ""
+.endif
+.if !defined(WITH_VORBIS)
+	@${ECHO_MSG} "Add Support fir the Vorbis lib"
+	@${ECHO_MSG} "by defining WITH_VORBIS=YES"
+	@${ECHO_MSG} ""
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e \
-		's|<malloc.h>|<stdlib.h>|' \
-		${WRKSRC}/intern/SoundSystem/intern/SND_WaveCache.cpp
-
-	@${REINPLACE_CMD} -E -e \
-		's|^program_transform_name.+$$||; \
-		s| -DFreeBSD||; \
-		s|-lSDL|-lSDL-1.1 -L${X11BASE}/lib|' \
-		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-
-	@${REINPLACE_CMD} -e \
-		's|-Wall||' \
-		${WRKSRC}/source/blender/python/api2_2x/Makefile.in \
-		${WRKSRC}/source/blender/python/Makefile.in
+pre-configure:
+	${RM} ${WRKSRC}/config.[gs]*
+	${RM} ${WRKSRC}/compile
+	${LN} -s ${LOCALBASE}/share/automake/config.guess ${WRKSRC}/config.guess
+	${LN} -s ${LOCALBASE}/share/automake/config.sub ${WRKSRC}/config.sub
+	${LN} -s ${LOCALBASE}/share/automake/compile ${WRKSRC}/compile
+	
 
 post-configure:
 	@${FIND} ${WRKSRC} -name "Makefile" | \
 		${XARGS} ${REINPLACE_CMD} -e \
-		's|-lesd||; \
-		s|-lsmpeg||; \
-		s|-lvorbisfile||; \
-		s|-lvorbis||; \
-		s|-logg||'
+		's|-lesd||; s|-lsmpeg||'
 
 .include <bsd.port.mk>
diff -ur blender-devel.old/distinfo blender-devel/distinfo
--- blender-devel.old/distinfo	Sun Oct 19 04:55:02 2003
+++ blender-devel/distinfo	Mon Nov 17 13:10:30 2003
@@ -1 +1 @@
-MD5 (blender-2.28c.tar.bz2) = b1e00a4d8f63ca2a7598e20c89a0b7fd
+MD5 (blender-2.30.tar.bz2) = 6e413db3bdd6208ad47c35b66ce1fe58
>Release-Note:
>Audit-Trail:
>Unformatted:



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