View | Details | Raw Unified | Return to bug 231049
Collapse All | Expand All

(-)./Makefile (+4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	tetgen
4
PORTNAME=	tetgen
5
PORTVERSION=	1.5.0.20131104
5
PORTVERSION=	1.5.0.20131104
6
PORTREVISION=	1
6
CATEGORIES=	math
7
CATEGORIES=	math
7
MASTER_SITES=	http://wias-berlin.de/software/tetgen/1.5/src/
8
MASTER_SITES=	http://wias-berlin.de/software/tetgen/1.5/src/
8
DISTNAME=	${PORTNAME}${PORTVERSION:R}
9
DISTNAME=	${PORTNAME}${PORTVERSION:R}
Lines 22-27 PLIST_FILES= bin/tetgen include/tetgen.h Link Here
22
23
23
OPTIONS_DEFINE=	EXAMPLES
24
OPTIONS_DEFINE=	EXAMPLES
24
25
26
pre-patch:
27
	${REINPLACE_CMD} 's|x%lx|x%x|' ${WRKSRC}/tetgen.cxx
28
25
do-install:
29
do-install:
26
	${INSTALL_PROGRAM} ${WRKSRC}/tetgen ${STAGEDIR}${PREFIX}/bin
30
	${INSTALL_PROGRAM} ${WRKSRC}/tetgen ${STAGEDIR}${PREFIX}/bin
27
	${INSTALL_DATA} ${WRKSRC}/tetgen.h ${STAGEDIR}${PREFIX}/include
31
	${INSTALL_DATA} ${WRKSRC}/tetgen.h ${STAGEDIR}${PREFIX}/include
(-)./files/patch-makefile (-4 / +22 lines)
Lines 1-5 Link Here
1
--- makefile.orig	2013-11-06 15:26:24.000000000 -0500
1
--- makefile.orig	2013-11-06 20:26:24 UTC
2
+++ makefile	2014-08-29 10:51:57.000000000 -0500
2
+++ makefile
3
@@ -11,7 +11,7 @@
3
@@ -11,7 +11,7 @@
4
 # CXX should be set to the name of your favorite C++ compiler.
4
 # CXX should be set to the name of your favorite C++ compiler.
5
 # ===========================================================
5
 # ===========================================================
Lines 9-15 Link Here
9
 #CXX = icpc
9
 #CXX = icpc
10
 #CXX = CC
10
 #CXX = CC
11
 
11
 
12
@@ -19,7 +19,7 @@
12
@@ -19,7 +19,7 @@ CXX = g++
13
 # -O2, -O3 ... to find the best optimization level.
13
 # -O2, -O3 ... to find the best optimization level.
14
 # ===================================================================
14
 # ===================================================================
15
 
15
 
Lines 18-24 Link Here
18
 
18
 
19
 # PREDCXXFLAGS is for compiling J. Shewchuk's predicates. 
19
 # PREDCXXFLAGS is for compiling J. Shewchuk's predicates. 
20
 
20
 
21
@@ -36,7 +36,7 @@
21
@@ -36,7 +36,7 @@ PREDCXXFLAGS = -O0
22
 #   down the speed of TetGen.  They can be skipped by define the -DNDEBUG
22
 #   down the speed of TetGen.  They can be skipped by define the -DNDEBUG
23
 #   switch.
23
 #   switch.
24
 
24
 
Lines 27-29 Link Here
27
 
27
 
28
 # RM should be set to the name of your favorite rm (file deletion program).
28
 # RM should be set to the name of your favorite rm (file deletion program).
29
 
29
 
30
@@ -45,14 +45,14 @@ RM = /bin/rm
31
 # The action starts here.
32
 
33
 tetgen:	tetgen.cxx predicates.o
34
-	$(CXX) $(CXXFLAGS) $(SWITCHES) -o tetgen tetgen.cxx predicates.o -lm
35
+	$(CXX) $(CXXFLAGS) $(SWITCHES) -o tetgen tetgen.cxx predicates.o -lm -fPIC
36
 
37
 tetlib: tetgen.cxx predicates.o
38
-	$(CXX) $(CXXFLAGS) $(SWITCHES) -DTETLIBRARY -c tetgen.cxx
39
+	$(CXX) $(CXXFLAGS) $(SWITCHES) -DTETLIBRARY -c tetgen.cxx -fPIC
40
 	ar r libtet.a tetgen.o predicates.o
41
 
42
 predicates.o: predicates.cxx
43
-	$(CXX) $(PREDCXXFLAGS) -c predicates.cxx
44
+	$(CXX) $(PREDCXXFLAGS) -c predicates.cxx -fPIC
45
 
46
 clean:
47
 	$(RM) *.o *.a tetgen *~

Return to bug 231049