Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2006 12:49:21 -0500
From:      Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
To:        Tilman Linneweh <arved@FreeBSD.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/96815: [MAINTAINER] graphics/py-soya3d: update to 0.10.4
Message-ID:  <20060507124921.9e8a78c0.acardenas@bsd.org.pe>
In-Reply-To: <200605071425.k47EPih4065257@freefall.freebsd.org>
References:  <200605071425.k47EPih4065257@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 May 2006 14:25:44 GMT
Tilman Linneweh <arved@FreeBSD.org> wrote:

> Synopsis: [MAINTAINER] graphics/py-soya3d: update to 0.10.4
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: arved
> State-Changed-When: Sun May 7 14:22:13 UTC 2006
> State-Changed-Why: 
> This version does not build on amd64:
> 
> g++ -c -Wall -fno-rtti -fno-exceptions -Wall -g -Iinclude -IOPCODE  -DdTRIMESH_ENABLED -O0 -o ode/src/timer.o ode/src/timer.cpp
> /var/tmp//ccCjW8VG.s: Assembler messages:
> /var/tmp//ccCjW8VG.s:127: Error: `(%esi)' is not a valid 64 bit base/index expression
> /var/tmp//ccCjW8VG.s:128: Error: `4(%esi)' is not a valid 64 bit base/index expression
> 
> Please review if it is possible to make this port work on !i386 or add
> an ONLY_FOR_ARCH line to the ports Makefile.
> 



Please, Could you test this new shar file?

- Removed amd64 broken state.
- ode-0.5 respect LDFLAGS and CFLAGS

--- py24-soya3d-0.10.4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/py-soya3d/Makefile /usr/ports/graphics/py-soya3d-new/Makefile
--- /usr/ports/graphics/py-soya3d/Makefile	Sun Apr 16 12:22:03 2006
+++ /usr/ports/graphics/py-soya3d-new/Makefile	Sun May  7 12:43:41 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	soya3d
-PORTVERSION=	0.10.2
+PORTVERSION=	0.10.4
 CATEGORIES=	graphics
 MASTER_SITES=	http://download.gna.org/soya/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -36,27 +36,39 @@
 MANDIR=	${WRKDIR}/${DISTNAME}/manpage/man1
 MAN1=	soya_editor.1
 INSTALL_DIR=	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+SOYATUTVER=	0.10.2
 
 .if !defined(NOPORTDOCS)
-DISTFILES+=	SoyaTutorial-${PORTVERSION}${EXTRACT_SUFX}
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64"
-BROKEN=	Does not compile in ${ARCH}
+DISTFILES+=	SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
 .endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 		-e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e \
+		's|malloc.h|stdlib.h|g' \
+		${WRKSRC}/ode-0.5/configurator.c
+	@${REINPLACE_CMD} -e \
+		's|g++|${CXX}|; \
+		s|-Wall||g; \
+		s|-L/usr/X11/lib|-lXext|; \
+		s|-L/usr/lib/X11R6||; \
+		s|-L/usr/lib/X11||; \
+		s|-L/usr/X11R6/lib|-L${X11BASE}/lib|; \
+		s|-fno-rtti||; \
+		s|-ffast-math|${CXXFLAGS} -I${X11BASE}/include|' \
+		${WRKSRC}/ode-0.5/config/makefile.unix-gcc
+	@${REINPLACE_CMD} -e \
+		's|^BUILD=debug|#BUILD=debug|; \
+		s|^#BUILD=release|BUILD=release|' \
+		${WRKSRC}/ode-0.5/config/user-settings
 
 post-install:
 	@${INSTALL_DIR} ${EXAMPLESDIR}
-	@${CP} -R ${WRKDIR}/SoyaTutorial-${PORTVERSION}/tutorial/* ${EXAMPLESDIR}
+	@${CP} -R ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/tutorial/* ${EXAMPLESDIR}
 .if !defined(NOPORTDOCS)
 	@${INSTALL_DIR} ${DOCSDIR}
-	@${CP} -R ${WRKDIR}/SoyaTutorial-${PORTVERSION}/doc/* ${DOCSDIR}
+	@${CP} -R ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/doc/* ${DOCSDIR}
 	@${FIND} ${EXAMPLESDIR}/* -type f -print0 | \
 		${XARGS} -0 ${CHMOD} ${SHAREMODE}
 .for f in ${MAN1}
@@ -64,4 +76,4 @@
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/graphics/py-soya3d/distinfo /usr/ports/graphics/py-soya3d-new/distinfo
--- /usr/ports/graphics/py-soya3d/distinfo	Sun Apr 16 12:22:03 2006
+++ /usr/ports/graphics/py-soya3d-new/distinfo	Thu May  4 13:18:57 2006
@@ -1,6 +1,6 @@
-MD5 (python/Soya-0.10.2.tar.bz2) = d92cb987c73a1356ab8fd273b3465668
-SHA256 (python/Soya-0.10.2.tar.bz2) = 6a3be34393e81481912abb2912717bb2435c6f156f388072a626996d416bc507
-SIZE (python/Soya-0.10.2.tar.bz2) = 2167772
+MD5 (python/Soya-0.10.4.tar.bz2) = 1c2dc2bd62724201f7ef1b85bed3890f
+SHA256 (python/Soya-0.10.4.tar.bz2) = bf1f8dd13ac8f66db9a61ef57747025c19401ea0ad8651a86160f06f8415aa7d
+SIZE (python/Soya-0.10.4.tar.bz2) = 2164015
 MD5 (python/SoyaTutorial-0.10.2.tar.bz2) = 6f03171bb18ec3baf6aee582f5edc845
 SHA256 (python/SoyaTutorial-0.10.2.tar.bz2) = 26793a43fe0a14813ffd0613b2a8087e2e1d8a8b4a4af539536825e440705a8a
 SIZE (python/SoyaTutorial-0.10.2.tar.bz2) = 3970014
diff -ruN --exclude=CVS /usr/ports/graphics/py-soya3d/files/patch-ode-0.5_Makefile /usr/ports/graphics/py-soya3d-new/files/patch-ode-0.5_Makefile
--- /usr/ports/graphics/py-soya3d/files/patch-ode-0.5_Makefile	Wed Dec 31 19:00:00 1969
+++ /usr/ports/graphics/py-soya3d-new/files/patch-ode-0.5_Makefile	Sun May  7 12:28:40 2006
@@ -0,0 +1,28 @@
+--- ode-0.5/Makefile	Sun May  7 12:12:01 2006
++++ ode-0.5/Makefile	Sun May  7 12:12:01 2006
+@@ -329,13 +329,13 @@
+ 	-$(DEL_CMD) OPCODE/*.obj OPCODE/*.o OPCODE/Ice/*.obj OPCODE/Ice/*.o
+ 
+ %$(OBJ): %.c
+-	$(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
++	$(CC) $(C_INC)$(INCPATH) $(C_FLAGS) $(DEFINES) $(C_OUT)$@ $<
+ 
+ %$(OBJ): %.cpp
+-	$(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(INC_OPCODE) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
++	$(CC) $(C_INC)$(INCPATH) $(C_FLAGS) $(INC_OPCODE) $(DEFINES) $(C_OUT)$@ $<
+ 
+ %.exe: %$(OBJ)
+-	$(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH)
++	$(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH) ${LDFLAGS}
+ 
+ 
+ # windows specific rules
+@@ -357,7 +357,7 @@
+ 
+ # unix-gcc specific dependency making
+ 
+-DEP_RULE=gcc -M $(C_INC)$(INCPATH) $(DEFINES)
++DEP_RULE=${CC} -M $(C_INC)$(INCPATH) $(DEFINES)
+ depend:
+ 	$(DEP_RULE) $(ODE_SRC) $(ODE_PREGEN_SRC) | tools/process_deps ode/src/ > Makefile.deps
+ 	$(DEP_RULE) $(DRAWSTUFF_SRC) | tools/process_deps drawstuff/src/ >> Makefile.deps
diff -ruN --exclude=CVS /usr/ports/graphics/py-soya3d/files/patch-ode-0.5_configurator.c /usr/ports/graphics/py-soya3d-new/files/patch-ode-0.5_configurator.c
--- /usr/ports/graphics/py-soya3d/files/patch-ode-0.5_configurator.c	Wed Dec 31 19:00:00 1969
+++ /usr/ports/graphics/py-soya3d-new/files/patch-ode-0.5_configurator.c	Sun May  7 12:13:57 2006
@@ -0,0 +1,11 @@
+--- ode-0.5/configurator.c	Sun May  7 12:12:01 2006
++++ ode-0.5/configurator.c	Sun May  7 12:12:52 2006
+@@ -222,7 +222,7 @@
+   write_header_comment (file,"is this a pentium on a gcc-based platform?");
+   write_to_file ("ctest.cpp",
+ 		 "int main() {\n"
+-		 "  asm (\"mov $0,%%eax\\n cpuid\\n\" : : : \"%eax\");\n"
++		 "  asm (\"mov $0,%%eax\\n mov %%eax,(%%esi)\\n cpuid\\n\" : : : \"%eax\");\n"
+ 		 "  return 0;\n"
+ 		 "}\n");
+   delete_file ("ctest.exe");
--- py24-soya3d-0.10.4.patch ends here ---

Greetings
ACM
-- 
Grupo de Usuarios *BSD Peru - BSDPeru
http://www.bsd.org.pe



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