1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Update to 0.10.4

Fix build on amd64

PR:		96815
Submitted by:	Jose Alonso Cardenas Marquez
This commit is contained in:
Tilman Keskinoz 2006-05-07 18:49:33 +00:00
parent ac4a53c7df
commit b6dc9f6ee5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161630
4 changed files with 65 additions and 14 deletions

View File

@ -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 @@ USE_GMAKE= yes
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 @@ post-install:
.endfor
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -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

View File

@ -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) -fPIC $(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) -fPIC $(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

View File

@ -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");