diff options
Diffstat (limited to 'math')
30 files changed, 0 insertions, 694 deletions
diff --git a/math/Makefile b/math/Makefile index 266dc5f2ee0a..52f79a577f5c 100644 --- a/math/Makefile +++ b/math/Makefile @@ -108,7 +108,6 @@ SUBDIR += calcoo SUBDIR += calctool SUBDIR += cantor - SUBDIR += carve SUBDIR += cblas SUBDIR += ccmath SUBDIR += ceres-solver @@ -159,7 +158,6 @@ SUBDIR += fftw3-long SUBDIR += fftw3-quad SUBDIR += fityk - SUBDIR += foma SUBDIR += fpc-fftw SUBDIR += fpc-gmp SUBDIR += fpc-numlib @@ -251,7 +249,6 @@ SUBDIR += levmar SUBDIR += libRmath SUBDIR += libflame - SUBDIR += libjbigi SUBDIR += liblbfgs SUBDIR += libmissing SUBDIR += libocas diff --git a/math/carve/Makefile b/math/carve/Makefile deleted file mode 100644 index 1e336e0923cf..000000000000 --- a/math/carve/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# Created by: gahr -# $FreeBSD$ - -PORTNAME= carve -PORTVERSION= 1.4.0 -PORTREVISION= 8 -CATEGORIES= math -MASTER_SITES= GOOGLE_CODE - -MAINTAINER= ports@FreeBSD.org -COMMENT= Fast, robust constructive solid geometry library - -LICENSE= GPLv2 - -BROKEN= Unfetchable (google code has gone away) -DEPRECATED= Unfetchable for more than six months (google code has gone away) -EXPIRATION_DATE= 2017-04-30 - -LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs - -OPTIONS_DEFINE= DOCS GUI -OPTIONS_SUB= yes - -USES= cmake:outsource compiler:c++11-lib tar:tgz -USE_GL= glut -USE_LDCONFIG= yes - -PORTDOCS= * - -CFLAGS+= -I${LOCALBASE}/include -CXXFLAGS+= -std=c++11 -LDFLAGS+= -L${LOCALBASE}/lib - -GUI_LIB_DEPENDS= libglui.so:devel/glui -GUI_CONFIGURE_OFF= --with-gui=no -GUI_CMAKE_BOOL= CARVE_WITH_GUI - -post-patch: - ${FIND} ${WRKSRC} -name "*.cpp" -o -name "*.h" -o -name "*.hpp" | ${XARGS} \ - ${REINPLACE_CMD} -e 's|::tr1||g' - ${REINPLACE_CMD} -e '/gtest/s|^|#|; /tests/s|^|#|' ${WRKSRC}/CMakeLists.txt - ${REINPLACE_CMD} -e 's|__is_heap|is_heap|' ${WRKSRC}/lib/triangulator.cpp - -post-install: - ${LN} -sf libcarve.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcarve.so.${PORTVERSION:R:R} - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/carve.pdf ${STAGEDIR}${DOCSDIR} - -.include <bsd.port.mk> diff --git a/math/carve/distinfo b/math/carve/distinfo deleted file mode 100644 index 6474e04bab0a..000000000000 --- a/math/carve/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (carve-1.4.0.tgz) = e59d28fd8e1dccb7e069ea8d89566d0073b62ae0b7836c4d872450ded14689d6 -SIZE (carve-1.4.0.tgz) = 18730114 diff --git a/math/carve/files/patch-CMakeLists.txt b/math/carve/files/patch-CMakeLists.txt deleted file mode 100644 index c6b4903b9cae..000000000000 --- a/math/carve/files/patch-CMakeLists.txt +++ /dev/null @@ -1,31 +0,0 @@ ---- CMakeLists.txt.orig 2011-08-26 22:17:26.000000000 +0200 -+++ CMakeLists.txt 2012-02-17 18:00:25.000000000 +0100 -@@ -33,7 +33,7 @@ - set(HAVE_BOOST_UNORDERED_COLLECTIONS FALSE) - - if(CARVE_SYSTEM_BOOST) -- find_package(BOOST 1.40) -+ find_package(Boost 1.40) - if(Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS}) - message(STATUS "Using system boost") -@@ -94,8 +94,8 @@ - add_definitions(-DGLUI_USE_STATIC_LIB) - add_definitions(-DGLEW_STATIC) - endif(WIN32) -- add_subdirectory(external/GLEW) -- add_subdirectory(external/GLUI) -+ #add_subdirectory(external/GLEW) -+ #add_subdirectory(external/GLUI) - - endif(NOT OPENGL_FOUND) - -@@ -110,6 +110,8 @@ - ) - include_directories(${carve_BINARY_DIR}/include) - -+configure_file( ${CMAKE_SOURCE_DIR}/include/carve/cmake-config.h.in ${CMAKE_SOURCE_DIR}/include/carve/config.h) -+ - add_subdirectory(lib) - add_subdirectory(include) - add_subdirectory(common) diff --git a/math/carve/files/patch-common_read_ply.cpp b/math/carve/files/patch-common_read_ply.cpp deleted file mode 100644 index 81c291a6e1de..000000000000 --- a/math/carve/files/patch-common_read_ply.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- common/read_ply.cpp.orig 2013-02-22 09:51:55.000000000 +0100 -+++ common/read_ply.cpp 2013-02-22 09:52:16.000000000 +0100 -@@ -255,7 +255,7 @@ - carve::poly::Polyhedron *readFile(std::istream &in, const carve::math::Matrix &transform) { - carve::input::Input inputs; - if (!readFile<filetype_t>(in, inputs, transform)) { -- return false; -+ return NULL; - } - for (std::list<carve::input::Data *>::const_iterator i = inputs.input.begin(); i != inputs.input.end(); ++i) { - carve::poly::Polyhedron *poly = inputs.create<carve::poly::Polyhedron>(*i); diff --git a/math/carve/files/patch-common_scene.cpp b/math/carve/files/patch-common_scene.cpp deleted file mode 100644 index b90557ecb9a6..000000000000 --- a/math/carve/files/patch-common_scene.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- common/scene.cpp.orig 2011-08-26 22:17:26.000000000 +0200 -+++ common/scene.cpp 2014-02-13 15:16:11.000000000 +0100 -@@ -31,7 +31,7 @@ - static int lastbutton = 0; - - static Scene *g_scene = NULL; --static int g_mainWindow = NULL; -+static int g_mainWindow = 0; - static GLUI *g_rightPanel = NULL; - static double near_plane = 0.2; - static double far_plane = 200; -@@ -412,7 +412,7 @@ - GLUI_Master.set_glutKeyboardFunc(s_key); - GLUI_Master.set_glutSpecialFunc(NULL); - GLUI_Master.set_glutMouseFunc(s_click); -- GLUI_Master.set_glutMotionFunc(s_drag); -+ //GLUI_Master.set_glutMotionFunc(s_drag); - - g_rightPanel = GLUI_Master.create_glui_subwindow(g_mainWindow, GLUI_SUBWINDOW_RIGHT); - diff --git a/math/carve/files/patch-external_gtest-1.5.0_include_gtest_internal_gtest-port.h b/math/carve/files/patch-external_gtest-1.5.0_include_gtest_internal_gtest-port.h deleted file mode 100644 index 69cabda0c409..000000000000 --- a/math/carve/files/patch-external_gtest-1.5.0_include_gtest_internal_gtest-port.h +++ /dev/null @@ -1,10 +0,0 @@ ---- external/gtest-1.5.0/include/gtest/internal/gtest-port.h.orig 2011-08-26 20:16:23.000000000 +0000 -+++ external/gtest-1.5.0/include/gtest/internal/gtest-port.h -@@ -176,6 +176,7 @@ - #ifndef _WIN32_WCE - #include <sys/stat.h> - #endif // !_WIN32_WCE -+#include <unistd.h> - - #include <iostream> // NOLINT - #include <sstream> // NOLINT diff --git a/math/carve/files/patch-glu_triangulator.cpp b/math/carve/files/patch-glu_triangulator.cpp deleted file mode 100644 index 4eccd17262ba..000000000000 --- a/math/carve/files/patch-glu_triangulator.cpp +++ /dev/null @@ -1,22 +0,0 @@ ---- src/glu_triangulator.cpp.orig 2011-11-16 11:53:05.000000000 +0100 -+++ src/glu_triangulator.cpp 2011-11-16 11:55:12.000000000 +0100 -@@ -111,7 +111,7 @@ - size_t f = 0; - while (f < faces.size()) { - carve::poly::Face<3> *face = faces[f]; -- if (face->vertices.size() == 3) { -+ if (face->nVertices() == 3) { - ++f; - continue; - } -@@ -123,8 +123,8 @@ - gluTessBeginPolygon(tess, (void *)this); - gluTessBeginContour(tess); - -- for (size_t i = 0; i < face->vertices.size(); ++i) { -- gluTessVertex(tess, (GLdouble *)face->vertices[i]->v.v, (GLvoid *)face->vertices[i]); -+ for (size_t i = 0; i < face->nVertices(); ++i) { -+ gluTessVertex(tess, (GLdouble *)face->vertex(i)->v.v, (GLvoid *)face->vertex(i)); - } - - gluTessEndContour(tess); diff --git a/math/carve/files/patch-include-carve_kd_node.hpp b/math/carve/files/patch-include-carve_kd_node.hpp deleted file mode 100644 index 4641ceab8410..000000000000 --- a/math/carve/files/patch-include-carve_kd_node.hpp +++ /dev/null @@ -1,20 +0,0 @@ ---- include/carve/kd_node.hpp.orig 2013-02-22 09:47:07.000000000 +0100 -+++ include/carve/kd_node.hpp 2013-02-22 09:50:00.000000000 +0100 -@@ -238,7 +238,7 @@ - // q_t - the priority queue value type. - // q_t.first: distance from object to query point. - // q_t.second: pointer to object -- typedef std::pair<double, const typename kd_node::data_t *> q_t; -+ typedef std::pair<double, const data_t *> q_t; - - // the queue priority should sort from smallest distance to largest, and on equal distance, by object pointer. - struct pcmp { -@@ -266,7 +266,7 @@ - } - } - -- const typename kd_node::data_t *next() { -+ const data_t *next() { - while (1) { - if (pq.size()) { - q_t t = pq.top(); diff --git a/math/carve/files/patch-include-carve_polyhedron_impl.hpp b/math/carve/files/patch-include-carve_polyhedron_impl.hpp deleted file mode 100644 index ecede7fdc8a2..000000000000 --- a/math/carve/files/patch-include-carve_polyhedron_impl.hpp +++ /dev/null @@ -1,42 +0,0 @@ ---- include/carve/polyhedron_impl.hpp.orig 2013-02-22 09:41:13.000000000 +0100 -+++ include/carve/polyhedron_impl.hpp 2013-02-22 09:46:30.000000000 +0100 -@@ -88,9 +88,9 @@ - *(*result)++ = f; - - int r = 1; -- for (size_t i = 0; i < f->edges.size(); ++i) { -- const std::vector<const face_t *> &edge_faces = connectivity.edge_to_face[edgeToIndex_fast(f->edges[i])]; -- const face_t *f2 = connectedFace(f, f->edges[i]); -+ for (size_t i = 0; i < f->nEdges(); ++i) { -+ const std::vector<const face_t *> &edge_faces = connectivity.edge_to_face[edgeToIndex_fast(f->edge(i))]; -+ const face_t *f2 = connectedFace(f, f->edge(i)); - if (f2) { - r += _faceNeighbourhood(f2, depth - 1, (*result)); - } -@@ -116,7 +116,7 @@ - int r = 0; - const std::vector<const face_t *> &edge_faces = connectivity.edge_to_face[edgeToIndex_fast(e)]; - for (size_t i = 0; i < edge_faces.size(); ++i) { -- face_t *f = edge_faces[i]; -+ const face_t *f = edge_faces[i]; - if (f && f->manifold_id == m_id) { r += _faceNeighbourhood(f, depth, &result); } - } - return r; -@@ -131,7 +131,7 @@ - int r = 0; - const std::vector<const face_t *> &vertex_faces = connectivity.vertex_to_face[vertexToIndex_fast(v)]; - for (size_t i = 0; i < vertex_faces.size(); ++i) { -- face_t *f = vertex_faces[i]; -+ const face_t *f = vertex_faces[i]; - if (f && f->manifold_id == m_id) { r += _faceNeighbourhood(f, depth, &result); } - } - return r; -@@ -142,7 +142,7 @@ - // accessing connectivity information. - template<typename T> - int Geometry<3>::vertexToEdges(const vertex_t *v, T result) const { -- std::vector<const edge_t *> &e = connectivity.vertex_to_edge[vertexToIndex_fast(v)]; -+ const std::vector<const edge_t *> &e = connectivity.vertex_to_edge[vertexToIndex_fast(v)]; - std::copy(e.begin(), e.end(), result); - return e.size(); - } diff --git a/math/carve/files/patch-include_CMakeLists.txt b/math/carve/files/patch-include_CMakeLists.txt deleted file mode 100644 index 97ced68c0727..000000000000 --- a/math/carve/files/patch-include_CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ ---- include/CMakeLists.txt.orig 2012-02-17 18:09:09.000000000 +0100 -+++ include/CMakeLists.txt 2012-02-17 18:09:18.000000000 +0100 -@@ -3,6 +3,7 @@ - DESTINATION "${CMAKE_INSTALL_PREFIX}/include" - FILES_MATCHING - PATTERN "*.hpp" -+ PATTERN "*.h" - PATTERN "internal" EXCLUDE - REGEX "external/boost" EXCLUDE - ) -@@ -11,6 +12,7 @@ - DESTINATION "${CMAKE_INSTALL_PREFIX}/include" - FILES_MATCHING - PATTERN "*.hpp" -+ PATTERN "*.h" - PATTERN "internal" EXCLUDE - ) - endif(CARVE_SYSTEM_BOOST) diff --git a/math/carve/files/patch-lib_intersect_classify_common_impl.hpp b/math/carve/files/patch-lib_intersect_classify_common_impl.hpp deleted file mode 100644 index 0a54405bf2ea..000000000000 --- a/math/carve/files/patch-lib_intersect_classify_common_impl.hpp +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/intersect_classify_common_impl.hpp.orig 2011-12-06 12:41:50.000000000 +0100 -+++ lib/intersect_classify_common_impl.hpp 2011-12-06 12:41:59.000000000 +0100 -@@ -250,6 +250,7 @@ - std::cerr << "d = " << d << std::endl; - #endif - fc = d < 0 ? FACE_IN : FACE_OUT; -+ break; - } - default: - CARVE_FAIL("unhandled switch case -- should not happen"); diff --git a/math/carve/files/patch-src_CMakeLists.txt b/math/carve/files/patch-src_CMakeLists.txt deleted file mode 100644 index 3cd8c7363f5d..000000000000 --- a/math/carve/files/patch-src_CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ ---- src/CMakeLists.txt.orig 2011-08-26 22:17:26.000000000 +0200 -+++ src/CMakeLists.txt 2012-02-17 11:06:58.000000000 +0100 -@@ -1,7 +1,7 @@ - include_directories("${carve_SOURCE_DIR}/include") - include_directories("${carve_SOURCE_DIR}/external/GLOOP/include") --include_directories("${carve_SOURCE_DIR}/external/GLEW/include") --include_directories("${carve_SOURCE_DIR}/external/GLUI/include") -+#include_directories("${carve_SOURCE_DIR}/external/GLEW/include") -+#include_directories("${carve_SOURCE_DIR}/external/GLUI/include") - include_directories("${carve_SOURCE_DIR}/common") - include_directories(${OPENGL_INCLUDE_DIR}) - -@@ -20,7 +20,7 @@ - if(CARVE_WITH_GUI) - add_executable (view view.cpp) - target_link_libraries(view carve_fileformats carve_misc carve_ui carve gloop_model glui ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES}) -- install(TARGETS view RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ install(TARGETS view RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin/carve") - endif(CARVE_WITH_GUI) - - add_executable (triangulate triangulate.cpp) -@@ -43,5 +43,5 @@ - - foreach(tgt intersect triangulate convert) - install(TARGETS ${tgt} -- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin/carve") - endforeach(tgt) diff --git a/math/carve/files/patch-src_extrude.cpp b/math/carve/files/patch-src_extrude.cpp deleted file mode 100644 index 8618cb8fe5c5..000000000000 --- a/math/carve/files/patch-src_extrude.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- src/extrude.cpp.orig 2011-12-01 11:57:16.000000000 +0100 -+++ src/extrude.cpp 2011-12-01 11:59:06.000000000 +0100 -@@ -31,6 +31,7 @@ - #include "write_ply.hpp" - - #include <iostream> -+#include <stdexcept> - - template<unsigned ndim> - carve::geom::vector<ndim> lerp( diff --git a/math/carve/pkg-descr b/math/carve/pkg-descr deleted file mode 100644 index abd5a8248a27..000000000000 --- a/math/carve/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -Carve is a C++ library designed to perform boolean operations between two -arbitrary polygonal meshes. The standard union and intersection operations are -supported, as are symmetric and asymmetric difference. It is also possible to -implement custom operations using Carve, allowing results to be formed from any -combination of inputs. - -Carve supports a variety of inputs, including both closed and open surfaces, -faces with arbitrary edge counts and datasets with multiple disjoint, -embedded or touching surfaces. Carve can also interpolate arbitrary -values across faces, meaning that CSG operations need not discard colour, -texture coordinates or other data. - -WWW: http://code.google.com/p/carve/ diff --git a/math/carve/pkg-plist b/math/carve/pkg-plist deleted file mode 100644 index 72fd1bf9e5ea..000000000000 --- a/math/carve/pkg-plist +++ /dev/null @@ -1,77 +0,0 @@ -%%GUI%%bin/carve/view -bin/carve/intersect -bin/carve/triangulate -bin/carve/convert -lib/libcarve.so.1.4.0 -lib/libcarve.so.1.4 -lib/libcarve.so.1 -lib/libcarve.so -include/carve/aabb.hpp -include/carve/carve.hpp -include/carve/cbrt.h -include/carve/classification.hpp -include/carve/collection.hpp -include/carve/collection/unordered.hpp -include/carve/collection/unordered/boost_impl.hpp -include/carve/collection/unordered/fallback_impl.hpp -include/carve/collection/unordered/libstdcpp_impl.hpp -include/carve/collection/unordered/std_impl.hpp -include/carve/collection/unordered/tr1_impl.hpp -include/carve/collection/unordered/vcpp_impl.hpp -include/carve/collection_types.hpp -include/carve/colour.hpp -include/carve/config.h -include/carve/convex_hull.hpp -include/carve/csg.hpp -include/carve/csg_triangulator.hpp -include/carve/debug_hooks.hpp -include/carve/djset.hpp -include/carve/edge_decl.hpp -include/carve/edge_impl.hpp -include/carve/face_decl.hpp -include/carve/face_impl.hpp -include/carve/faceloop.hpp -include/carve/geom.hpp -include/carve/geom2d.hpp -include/carve/geom3d.hpp -include/carve/gnu_cxx.h -include/carve/heap.hpp -include/carve/input.hpp -include/carve/interpolator.hpp -include/carve/intersection.hpp -include/carve/iobj.hpp -include/carve/kd_node.hpp -include/carve/math.hpp -include/carve/math_constants.hpp -include/carve/matrix.hpp -include/carve/octree_decl.hpp -include/carve/octree_impl.hpp -include/carve/pointset.hpp -include/carve/pointset_decl.hpp -include/carve/pointset_impl.hpp -include/carve/pointset_iter.hpp -include/carve/poly.hpp -include/carve/poly_decl.hpp -include/carve/poly_impl.hpp -include/carve/polyhedron_base.hpp -include/carve/polyhedron_decl.hpp -include/carve/polyhedron_impl.hpp -include/carve/polyline.hpp -include/carve/polyline_decl.hpp -include/carve/polyline_impl.hpp -include/carve/polyline_iter.hpp -include/carve/rescale.hpp -include/carve/spacetree.hpp -include/carve/tag.hpp -include/carve/timing.hpp -include/carve/tree.hpp -include/carve/triangulator.hpp -include/carve/triangulator_impl.hpp -include/carve/util.hpp -include/carve/vcpp_config.h -include/carve/vector.hpp -include/carve/vertex_decl.hpp -include/carve/vertex_impl.hpp -include/carve/win32.h -include/carve/xcode_config.h -@dir include/carve/external diff --git a/math/foma/Makefile b/math/foma/Makefile deleted file mode 100644 index 006ae895efac..000000000000 --- a/math/foma/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# Created by: Dmitry Sivachenko <mitya@yandex-team.ru> -# $FreeBSD$ - -PORTNAME= foma -PORTVERSION= 0.9.17 -PORTREVISION= 1 -CATEGORIES= math -MASTER_SITES= GOOGLE_CODE - -MAINTAINER= demon@FreeBSD.org -COMMENT= Toolkit for constructing finite-state automata and transducers - -LICENSE= GPLv2 - -BROKEN= Unfetchable (google code has gone away) -DEPRECATED= Unfetchable for more than six months (google code has gone away) -EXPIRATION_DATE= 2017-04-30 - -USES= bison gmake readline -USE_LDCONFIG= yes - -do-install: - (cd ${WRKSRC} && ${INSTALL_DATA} fomalib.h fomalibconf.h ${STAGEDIR}${PREFIX}/include/) - (cd ${WRKSRC} && ${INSTALL_PROGRAM} foma flookup cgflookup ${STAGEDIR}${PREFIX}/bin/) - ${INSTALL_DATA} ${WRKSRC}/libfoma.a ${STAGEDIR}${PREFIX}/lib/ - ${INSTALL_LIB} ${WRKSRC}/libfoma.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libfoma.so.0 - (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libfoma.so.0 libfoma.so) - -.include <bsd.port.mk> diff --git a/math/foma/distinfo b/math/foma/distinfo deleted file mode 100644 index 9546f68e9858..000000000000 --- a/math/foma/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (foma-0.9.17.tar.gz) = 71761499b83af79cdc81b8b73ad2a2a1dd90c7466653ee89ba7dc9863fdf74f0 -SIZE (foma-0.9.17.tar.gz) = 333693 diff --git a/math/foma/files/patch-Makefile b/math/foma/files/patch-Makefile deleted file mode 100644 index b2f9e6c6ae92..000000000000 --- a/math/foma/files/patch-Makefile +++ /dev/null @@ -1,23 +0,0 @@ ---- Makefile.orig 2012-11-17 07:21:50.000000000 -0500 -+++ Makefile 2014-08-09 14:30:08.000000000 -0400 -@@ -5,7 +5,7 @@ - includedir = $(prefix)/include - - VERSION = 0.9.17 --CC = gcc -+CC ?= gcc - RANLIB = ranlib - YACC = bison -d -t -v - LEX = flex -8 -@@ -13,9 +13,9 @@ - LEXIFACE = flex -8 --prefix=interface - LEXCMATRIX = flex -8 --prefix=cmatrix - RM = /bin/rm -f --LDFLAGS = -lreadline -lz -ltermcap -+LDFLAGS += -lreadline -lz - FLOOKUPLDFLAGS = libfoma.a -lz --CFLAGS = -O3 -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -+CFLAGS += -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC ${CPPFLAGS} - FOMAOBJS = foma.o stack.o iface.o lex.interface.o - LIBOBJS = int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.tab.o - diff --git a/math/foma/files/patch-flookup.c b/math/foma/files/patch-flookup.c deleted file mode 100644 index d29f7a06711c..000000000000 --- a/math/foma/files/patch-flookup.c +++ /dev/null @@ -1,10 +0,0 @@ ---- flookup.c.orig 2014-05-07 17:56:43.000000000 +0400 -+++ flookup.c 2014-05-07 17:57:05.000000000 +0400 -@@ -23,6 +23,7 @@ - #include <unistd.h> - #include <sys/types.h> - #include <sys/socket.h> -+#include <netinet/in.h> - #include <arpa/inet.h> - #include "fomalib.h" - diff --git a/math/foma/files/patch-fomalib.h b/math/foma/files/patch-fomalib.h deleted file mode 100644 index f250acb87beb..000000000000 --- a/math/foma/files/patch-fomalib.h +++ /dev/null @@ -1,11 +0,0 @@ ---- fomalib.h.orig 2012-11-17 13:46:43.000000000 +0400 -+++ fomalib.h 2014-05-07 18:16:20.000000000 +0400 -@@ -298,7 +298,7 @@ - FEXPORT int save_defined(); - FEXPORT int save_stack_att(); - FEXPORT int write_prolog(struct fsm *net, char *filename); --FEXPORT int foma_net_print(struct fsm *net, gzFile *outfile); -+FEXPORT int foma_net_print(struct fsm *net, gzFile outfile); - - /* Lookups */ - diff --git a/math/foma/files/patch-iface.c b/math/foma/files/patch-iface.c deleted file mode 100644 index ae3e2fb4a923..000000000000 --- a/math/foma/files/patch-iface.c +++ /dev/null @@ -1,20 +0,0 @@ ---- iface.c.orig 2012-08-10 19:40:14.000000000 +0400 -+++ iface.c 2014-05-07 18:17:01.000000000 +0400 -@@ -47,7 +46,7 @@ - extern int g_med_cutoff ; - extern char *g_att_epsilon; - --extern int foma_net_print(struct fsm *net, gzFile *outfile); -+extern int foma_net_print(struct fsm *net, gzFile outfile); - - static char *sigptr(struct sigma *sigma, int number); - static int print_dot(struct fsm *net, char *filename); -@@ -999,7 +998,7 @@ - } - - void iface_save_stack(char *filename) { -- gzFile *outfile; -+ gzFile outfile; - struct stack_entry *stack_ptr; - - if (iface_stack_check(1)) { diff --git a/math/foma/files/patch-io.c b/math/foma/files/patch-io.c deleted file mode 100644 index 5891ce618807..000000000000 --- a/math/foma/files/patch-io.c +++ /dev/null @@ -1,56 +0,0 @@ ---- io.c.orig 2011-12-09 18:04:38.000000000 +0400 -+++ io.c 2014-05-07 18:15:26.000000000 +0400 -@@ -56,7 +56,7 @@ static size_t io_get_gz_file_size(char * - static size_t io_get_file_size(char *filename); - static size_t io_get_regular_file_size(char *filename); - size_t io_gz_file_to_mem (struct io_buf_handle *iobh, char *filename); --int foma_net_print(struct fsm *net, gzFile *outfile); -+int foma_net_print(struct fsm *net, gzFile outfile); - struct fsm *io_net_read(struct io_buf_handle *iobh, char **net_name); - static inline int explode_line (char *buf, int *values); - -@@ -507,7 +507,7 @@ struct fsm *fsm_read_text_file(char *fil - } - - int fsm_write_binary_file(struct fsm *net, char *filename) { -- gzFile *outfile; -+ gzFile outfile; - if ((outfile = gzopen(filename,"wb")) == NULL) { - return(1); - } -@@ -560,7 +560,7 @@ struct fsm *fsm_read_binary_file(char *f - } - - int save_defined(char *filename) { -- gzFile *outfile; -+ gzFile outfile; - struct defined *def; - def = get_defines(); - if (def == NULL) { -@@ -829,7 +829,7 @@ static int io_gets(struct io_buf_handle - return(i); - } - --int foma_net_print(struct fsm *net, gzFile *outfile) { -+int foma_net_print(struct fsm *net, gzFile outfile) { - struct sigma *sigma; - struct fsm_state *fsm; - int i, maxsigma, laststate, *cm, extras; -@@ -949,7 +949,7 @@ static size_t io_get_regular_file_size(c - - - static size_t io_get_file_size(char *filename) { -- gzFile *FILE; -+ gzFile FILE; - size_t size; - FILE = gzopen(filename, "r"); - if (FILE == NULL) { -@@ -968,7 +968,7 @@ static size_t io_get_file_size(char *fil - size_t io_gz_file_to_mem(struct io_buf_handle *iobh, char *filename) { - - size_t size; -- gzFile *FILE; -+ gzFile FILE; - - size = io_get_file_size(filename); - if (size == 0) { diff --git a/math/foma/pkg-descr b/math/foma/pkg-descr deleted file mode 100644 index 6027d74152b6..000000000000 --- a/math/foma/pkg-descr +++ /dev/null @@ -1,17 +0,0 @@ -Foma is a compiler, programming language, and C library for constructing -finite-state automata and transducers for various uses. It has specific -support for many natural language processing applications such as producing -morphological analyzers. Although NLP applications are probably the main use -of foma, it is sufficiently generic to use for a large number of purposes. - -The foma interface is similar to the Xerox xfst interface, and supports -most of the commands and the regular expression syntax in xfst. -Many grammars written for xfst compile out-of-the-box with foma. - -The library contains efficient implementations of all classical -automata/transducer algorithms: determinization, minimization, epsilon-removal, -composition, boolean operations. Also, more advanced construction methods -are available: context restriction, quotients, first-order regular logic, -transducers from replacement rules, etc. - -WWW: https://code.google.com/p/foma/ diff --git a/math/foma/pkg-plist b/math/foma/pkg-plist deleted file mode 100644 index fc70b94b16b3..000000000000 --- a/math/foma/pkg-plist +++ /dev/null @@ -1,8 +0,0 @@ -bin/cgflookup -bin/flookup -bin/foma -include/fomalib.h -include/fomalibconf.h -lib/libfoma.a -lib/libfoma.so -lib/libfoma.so.0 diff --git a/math/libjbigi/Makefile b/math/libjbigi/Makefile deleted file mode 100644 index a89d108936f1..000000000000 --- a/math/libjbigi/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= libjbigi -PORTVERSION= 0.8.7 -CATEGORIES= math java -MASTER_SITES= http://mirror.i2p2.de/ \ - GOOGLE_CODE -DISTNAME= i2psource_${PORTVERSION} - -MAINTAINER= ports@FreeBSD.org -COMMENT= i2p JNI to GNU MP Bignum library (libgmp) - -BROKEN= Unfetchable (google code has gone away) -DEPRECATED= Unfetchable for more than six months (google code has gone away) -EXPIRATION_DATE= 2017-04-30 - -LIB_DEPENDS= libgmp.so:math/gmp - -USES= tar:bzip2 -USE_JAVA= yes -JAVA_BUILD= jdk -JAVA_VERSION= 1.6+ -JAVA_OS= native -PROJECTHOST= i2p - -WRKSRC= ${WRKDIR}/i2p-${PORTVERSION}/core/c - -PLIST_FILES= %%JAVAJARDIR%%/jbigi.jar - -JBIGI_BUILD_ENV= \ - CC="${CC}" \ - CFLAGS="${CFLAGS} -fPIC -DPIC" \ - LDFLAGS="${LDFLAGS}" \ - JAVA_HOME="${JAVA_HOME}" \ - LOCALBASE="${LOCALBASE}" -JBIGI_LIBS= \ - libjbigi-freebsd-none.so - -do-install: - @${INSTALL_DATA} ${WRKSRC}/jbigi.jar \ - ${STAGEDIR}${JAVAJARDIR} - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "i386" -JBIGI_BUILD_JCPUID= yes -.endif - -.if ${ARCH} == "i386" || ${ARCH} == "amd64" -JBIGI_LIBS+= libjbigi-freebsd-x86.so -.endif - -do-build: -## build JNI -.ifdef(JBIGI_BUILD_JCPUID) -# jcpuid - cd ${BUILD_WRKSRC}/jcpuid && \ - ${SETENV} ${JBIGI_BUILD_ENV} \ - ${SH} ./build.sh -.endif -# jbigi - cd ${BUILD_WRKSRC}/jbigi && \ - ${SETENV} ${JBIGI_BUILD_ENV} \ - ${SH} ./build_jbigi.sh dynamic -## prepare jar -.ifdef(JBIGI_BUILD_JCPUID) -# jcpuid - @${MKDIR} ${WRKSRC}/t/freenet/support/CPUInformation/ - @${CP} ${WRKSRC}/jcpuid/lib/freenet/support/CPUInformation/*jcpuid* \ - ${WRKSRC}/t/freenet/support/CPUInformation/ -.endif -# jbigi - @${MKDIR} ${WRKSRC}/t/net/i2p/util -.for lib in ${JBIGI_LIBS} - @${CP} ${WRKSRC}/jbigi/libjbigi.so \ - ${WRKSRC}/t/net/i2p/util/${lib} -.endfor - @cd ${WRKSRC}/t && ${JAR} cf ../jbigi.jar . - -.include <bsd.port.post.mk> diff --git a/math/libjbigi/distinfo b/math/libjbigi/distinfo deleted file mode 100644 index 6b807a82a536..000000000000 --- a/math/libjbigi/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (i2psource_0.8.7.tar.bz2) = 31acef3fcd1a5839edc3b931f108944222c833d218bd427fe89a57b4acd92ece -SIZE (i2psource_0.8.7.tar.bz2) = 18473515 diff --git a/math/libjbigi/files/patch-jbigi__build_jbigi.sh b/math/libjbigi/files/patch-jbigi__build_jbigi.sh deleted file mode 100644 index c2868ac0dc6f..000000000000 --- a/math/libjbigi/files/patch-jbigi__build_jbigi.sh +++ /dev/null @@ -1,40 +0,0 @@ ---- jbigi/build_jbigi.sh.orig Fri Jan 21 18:52:41 2005 -+++ jbigi/build_jbigi.sh Fri Dec 23 11:13:55 2005 -@@ -2,7 +2,6 @@ - # When executed in Mingw: Produces an jbigi.dll - # When executed in Linux: Produces an libjbigi.so - --CC="gcc" - - case `uname -sr` in - MINGW*) -@@ -24,9 +23,9 @@ - LINKFLAGS="-dynamiclib -framework JavaVM" - LIBFILE="libjbigi.jnilib";; - *) -- COMPILEFLAGS="-fPIC -Wall" -- INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/linux" -- LINKFLAGS="-shared -Wl,-soname,libjbigi.so" -+ COMPILEFLAGS="-Wall ${CFLAGS}" -+ INCLUDES="-I. -I${LOCALBASE}/include -Ijbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/freebsd" -+ LINKFLAGS="-shared -Wl,-soname,libjbigi.so ${LDFLAGS} -fPIC" - LIBFILE="libjbigi.so";; - esac - -@@ -36,13 +35,13 @@ - then - echo "Building jbigi lib that is dynamically linked to GMP" - LIBPATH="-L.libs" -- INCLUDELIBS="-lgmp" -+ INCLUDELIBS="-L${LOCALBASE}/lib -lgmp" - else - echo "Building jbigi lib that is statically linked to GMP" -- STATICLIBS=".libs/libgmp.a" -+ STATICLIBS="${LOCALBASE}/lib/libgmp.a" - fi - - echo "Compiling C code..." - rm -f jbigi.o $LIBFILE --$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c -+$CC -c $COMPILEFLAGS $INCLUDES jbigi/src/jbigi.c - $CC $LINKFLAGS $INCLUDES $INCLUDELIBS -o $LIBFILE jbigi.o $STATICLIBS diff --git a/math/libjbigi/files/patch-jcpuid__build.sh b/math/libjbigi/files/patch-jcpuid__build.sh deleted file mode 100644 index 307b9b198920..000000000000 --- a/math/libjbigi/files/patch-jcpuid__build.sh +++ /dev/null @@ -1,22 +0,0 @@ ---- jcpuid/build.sh.orig Fri Dec 23 09:42:02 2005 -+++ jcpuid/build.sh Fri Dec 23 09:43:45 2005 -@@ -20,7 +20,6 @@ - mkdir lib/freenet/support - mkdir lib/freenet/support/CPUInformation - --CC="gcc" - - case `uname -sr` in - MINGW*) -@@ -30,9 +29,9 @@ - LINKFLAGS="-shared -static -static-libgcc -Wl,--kill-at" - LIBFILE="lib/freenet/support/CPUInformation/jcpuid-x86-windows.dll";; - FreeBSD*) -- COMPILEFLAGS="-Wall" -+ COMPILEFLAGS="-Wall ${CFLAGS}" - INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/ -I$JAVA_HOME/include/freebsd/" -- LINKFLAGS="-shared -static -Wl,-soname,libjcpuid-x86-freebsd.so" -+ LINKFLAGS="-shared -Wl,-soname,libjcpuid-x86-freebsd.so ${LDFLAGS}" - LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-freebsd.so";; - Linux*) - COMPILEFLAGS="-fPIC -Wall" diff --git a/math/libjbigi/pkg-descr b/math/libjbigi/pkg-descr deleted file mode 100644 index babe3e486561..000000000000 --- a/math/libjbigi/pkg-descr +++ /dev/null @@ -1,7 +0,0 @@ -[ excerpt from developer's web site ] - -Using JNI (Java Native Interface), a bit of C code (thanks ugha!), -a little manual work and a piece of chewinggum: it is possible to -make the public key cryptography quite a bit faster. - -WWW: http://www.i2p.net/jbigi |
