aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2006-05-18 03:08:23 +0800
committerarved <arved@FreeBSD.org>2006-05-18 03:08:23 +0800
commitd1b3b04cbd5e1b26e056e1ff025f05a6d6f862dc (patch)
tree9c92e5993a8f8c367bf6156aa79af9fa7e48cad6
parent38a5698be754ef2ac6ded43078706885038bca8e (diff)
downloadfreebsd-ports-gnome-d1b3b04cbd5e1b26e056e1ff025f05a6d6f862dc.tar.gz
freebsd-ports-gnome-d1b3b04cbd5e1b26e056e1ff025f05a6d6f862dc.tar.zst
freebsd-ports-gnome-d1b3b04cbd5e1b26e056e1ff025f05a6d6f862dc.zip
Unbreak on i386
Reported by: pointyhat Pointyhat to: arved
-rw-r--r--graphics/py-soya3d/Makefile8
-rw-r--r--graphics/py-soya3d/files/patch-ode-0.5_Makefile4
2 files changed, 9 insertions, 3 deletions
diff --git a/graphics/py-soya3d/Makefile b/graphics/py-soya3d/Makefile
index 9262b24e2ce2..c52217a9d971 100644
--- a/graphics/py-soya3d/Makefile
+++ b/graphics/py-soya3d/Makefile
@@ -42,6 +42,12 @@ SOYATUTVER= 0.10.2
DISTFILES+= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
.endif
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS += -fPIC
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
-e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/setup.py
@@ -76,4 +82,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/py-soya3d/files/patch-ode-0.5_Makefile b/graphics/py-soya3d/files/patch-ode-0.5_Makefile
index 94f8b540c287..c86bc9521c70 100644
--- a/graphics/py-soya3d/files/patch-ode-0.5_Makefile
+++ b/graphics/py-soya3d/files/patch-ode-0.5_Makefile
@@ -5,11 +5,11 @@
%$(OBJ): %.c
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
-+ $(CC) $(C_INC)$(INCPATH) $(C_FLAGS) -fPIC $(DEFINES) $(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) -fPIC $(INC_OPCODE) $(DEFINES) $(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)