aboutsummaryrefslogtreecommitdiffstats
path: root/devel/c2lib
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2003-01-01 23:52:55 +0800
committeralane <alane@FreeBSD.org>2003-01-01 23:52:55 +0800
commit48d037ef78315bdadb9bb211896de87afa2a751e (patch)
tree0d8d77b909a1c63c33dff1af5debf65efaa07f6c /devel/c2lib
parent60198422907a814cf7fb6b8b68b5b23a04dc302d (diff)
downloadfreebsd-ports-gnome-48d037ef78315bdadb9bb211896de87afa2a751e.tar.gz
freebsd-ports-gnome-48d037ef78315bdadb9bb211896de87afa2a751e.tar.zst
freebsd-ports-gnome-48d037ef78315bdadb9bb211896de87afa2a751e.zip
updated to current version
Diffstat (limited to 'devel/c2lib')
-rw-r--r--devel/c2lib/Makefile38
-rw-r--r--devel/c2lib/distinfo2
-rw-r--r--devel/c2lib/files/man3171
-rw-r--r--devel/c2lib/files/patch-Makefile+18
-rw-r--r--devel/c2lib/files/patch-Makefile.in11
-rw-r--r--devel/c2lib/files/patch-pstring.c10
-rw-r--r--devel/c2lib/files/patch-pstring.h10
-rw-r--r--devel/c2lib/files/patch-test_pstring.c10
-rw-r--r--devel/c2lib/manpages.mk200
-rw-r--r--devel/c2lib/pkg-plist17
10 files changed, 252 insertions, 235 deletions
diff --git a/devel/c2lib/Makefile b/devel/c2lib/Makefile
index 9d4e0a77e979..d08779b4febf 100644
--- a/devel/c2lib/Makefile
+++ b/devel/c2lib/Makefile
@@ -1,31 +1,37 @@
-# ex:ts=8
+# ex:ts=8 -*-mode: makefile-*-
+#
# New ports collection makefile for: c2lib
-# Date created: Feb 16, 2001
-# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
+# Date created: 2002-12-22
+# Whom: Alan Eldridge <alane@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= c2lib
-PORTVERSION= 1.2.15
+PORTVERSION= 1.3.0
+PORTREVISION= 0
+PORTEPOCH= 0
CATEGORIES= devel
-MASTER_SITES= http://www.annexia.org/freeware/c2lib/
+MASTER_SITES= http://www.annexia.org/freeware/${PORTNAME}/
MAINTAINER= alane@FreeBSD.org
-USE_LIBTOOL= yes
-USE_GMAKE= yes
-INSTALLS_SHLIB= yes
-
-SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
- REALCURDIR="${.CURDIR}" \
- DISTNAME="${DISTNAME}"
-
-post-install:
- ${RM} ${PREFIX}/lib/libc2.la
+BUILD_REQUIRES+=cdoc:${.CURDIR}/../../devel/cdoc
+BUILD_REQUIRES+=make+:${.CURDIR}/../../devel/makeplus
+USE_GMAKE= yes
+PREFIX?= ${LOCALBASE}
+MAKE_ENV+= CC="${CC}"
.include <bsd.port.pre.mk>
-MAN3!= ${CAT} ${FILESDIR}/man3
+do-build:
+ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} make+
+
+do-install:
+ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV}\
+ make+ install prefix=${PREFIX} manprefix=${PREFIX}
+.include "${.CURDIR}/manpages.mk"
.include <bsd.port.post.mk>
+
+#EOF
diff --git a/devel/c2lib/distinfo b/devel/c2lib/distinfo
index 0a4ca2016b6f..36a85b1fdbbf 100644
--- a/devel/c2lib/distinfo
+++ b/devel/c2lib/distinfo
@@ -1 +1 @@
-MD5 (c2lib-1.2.15.tar.gz) = 3702b24b1efd63af176b60c6a40fc0d3
+MD5 (c2lib-1.3.0.tar.gz) = 7a1bc849168fd81c64685c7ad13bb708
diff --git a/devel/c2lib/files/man3 b/devel/c2lib/files/man3
deleted file mode 100644
index ce854a37f014..000000000000
--- a/devel/c2lib/files/man3
+++ /dev/null
@@ -1,171 +0,0 @@
-_hash_erase.3
-_hash_get.3
-_hash_get_ptr.3
-_hash_insert.3
-_hash_new.3
-_sash_get.3
-_shash_get.3
-_shash_get_ptr.3
-_shash_insert.3
-_vector_compare.3
-_vector_fill.3
-_vector_get.3
-_vector_get_ptr.3
-_vector_insert.3
-_vector_map.3
-_vector_map_pool.3
-_vector_new.3
-_vector_pop_back.3
-_vector_pop_front.3
-_vector_push_back.3
-_vector_push_front.3
-_vector_replace.3
-_vector_sort.3
-collision_moving_sphere_and_face.3
-copy_hash.3
-copy_sash.3
-copy_shash.3
-copy_vector.3
-delete_pool.3
-face_translate_along_normal.3
-global_pool.3
-hash_erase.3
-hash_exists.3
-hash_get.3
-hash_get_buckets_allocated.3
-hash_get_buckets_used.3
-hash_get_ptr.3
-hash_insert.3
-hash_keys.3
-hash_keys_in_pool.3
-hash_set_buckets_allocated.3
-hash_size.3
-hash_values.3
-hash_values_in_pool.3
-identity_matrix.3
-make_identity_matrix.3
-make_zero_vec.3
-new_hash.3
-new_identity_matrix.3
-new_matrix.3
-new_pool.3
-new_sash.3
-new_shash.3
-new_subpool.3
-new_subvector.3
-new_vec.3
-new_vector.3
-new_zero_vec.3
-pcalloc.3
-pchomp.3
-pchrs.3
-pconcat.3
-pdtoa.3
-pgetline.3
-pgetlinec.3
-pgetlinex.3
-pitoa.3
-pjoin.3
-plane_coefficients.3
-plane_translate_along_normal.3
-pmalloc.3
-pmatch.3
-pmatchx.3
-pmemdup.3
-point_distance_to_face.3
-point_distance_to_line.3
-point_distance_to_line_segment.3
-point_distance_to_plane.3
-point_face_angle_sum.3
-point_is_inside_plane.3
-point_lies_in_face.3
-pool_get_stats.3
-pool_register_cleanup_fn.3
-pool_register_fd.3
-pool_register_malloc.3
-pool_set_bad_malloc_handler.3
-prealloc.3
-psort.3
-psprintf.3
-pstrcat.3
-pstrcsplit.3
-pstrdup.3
-pstrlwr.3
-pstrncat.3
-pstrndup.3
-pstrresplit.3
-pstrs.3
-pstrsplit.3
-pstrupr.3
-psubst.3
-psubstr.3
-psubstx.3
-ptrim.3
-ptrimback.3
-ptrimfront.3
-pvdtostr.3
-pvector.3
-pvectora.3
-pvitostr.3
-pvsprintf.3
-pvxtostr.3
-pxtoa.3
-sash_erase.3
-sash_exists.3
-sash_get.3
-sash_get_buckets_allocated.3
-sash_get_buckets_used.3
-sash_insert.3
-sash_keys.3
-sash_keys_in_pool.3
-sash_set_buckets_allocated.3
-sash_size.3
-sash_values.3
-sash_values_in_pool.3
-shash_erase.3
-shash_exists.3
-shash_get.3
-shash_get_buckets_allocated.3
-shash_get_buckets_used.3
-shash_get_ptr.3
-shash_insert.3
-shash_keys.3
-shash_keys_in_pool.3
-shash_set_buckets_allocated.3
-shash_size.3
-shash_values.3
-shash_values_in_pool.3
-vec_angle_between.3
-vec_dot_product.3
-vec_magnitude.3
-vec_magnitude2d.3
-vec_magnitude_in_direction.3
-vec_normalize.3
-vec_normalize2d.3
-vector_allocated.3
-vector_clear.3
-vector_compare.3
-vector_element_size.3
-vector_erase.3
-vector_erase_range.3
-vector_fill.3
-vector_get.3
-vector_get_ptr.3
-vector_grep.3
-vector_grep_pool.3
-vector_insert.3
-vector_insert_array.3
-vector_map.3
-vector_map_pool.3
-vector_pop_back.3
-vector_pop_front.3
-vector_push_back.3
-vector_push_front.3
-vector_reallocate.3
-vector_replace.3
-vector_replace_array.3
-vector_reverse.3
-vector_size.3
-vector_sort.3
-vector_swap.3
-zero_vec.3
diff --git a/devel/c2lib/files/patch-Makefile+ b/devel/c2lib/files/patch-Makefile+
new file mode 100644
index 000000000000..ef7cd3827647
--- /dev/null
+++ b/devel/c2lib/files/patch-Makefile+
@@ -0,0 +1,18 @@
+--- Makefile+~ Sun Dec 8 12:45:43 2002
++++ Makefile+ Fri Dec 27 01:34:48 2002
+@@ -103,13 +103,13 @@
+
+ install:
+ install -d $(DESTDIR)$(libdir)
+- install -d $(DESTDIR)$(includedir)
++ install -d $(DESTDIR)$(pkgincludedir)
+ install -d $(DESTDIR)$(man3dir)
+ install -d $(DESTDIR)$(datadir)/rws/symtabs/
+
+ $(MP_INSTALL_STATIC_LIB) libc2.a
+ $(MP_INSTALL_DYNAMIC_LIB) libc2.so
+- install -m 0644 $(HEADERS) $(DESTDIR)$(includedir)
++ install -m 0644 $(HEADERS) $(DESTDIR)$(pkgincludedir)
+ install -m 0644 *.3 $(DESTDIR)$(man3dir)
+ install -m 0644 *.syms $(DESTDIR)$(datadir)/rws/symtabs/
+
diff --git a/devel/c2lib/files/patch-Makefile.in b/devel/c2lib/files/patch-Makefile.in
deleted file mode 100644
index 45894d0a5833..000000000000
--- a/devel/c2lib/files/patch-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.in.orig Fri Feb 16 18:51:26 2001
-+++ Makefile.in Fri Feb 16 18:51:06 2001
-@@ -141,7 +141,7 @@
- DEFS = @DEFS@ -I. -I$(srcdir) -I.
- CPPFLAGS = @CPPFLAGS@
- LDFLAGS = @LDFLAGS@
--LIBS = @LIBS@
-+LIBS = @LIBS@ -lm
- libc2_la_LIBADD =
- libc2_la_OBJECTS = hash.lo matvec.lo pool.lo pstring.lo vector.lo
- PROGRAMS = $(noinst_PROGRAMS)
diff --git a/devel/c2lib/files/patch-pstring.c b/devel/c2lib/files/patch-pstring.c
deleted file mode 100644
index 27fc632aec5e..000000000000
--- a/devel/c2lib/files/patch-pstring.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- pstring.c.orig Fri Feb 16 18:46:50 2001
-+++ pstring.c Fri Feb 16 18:48:10 2001
-@@ -32,6 +32,7 @@
- #endif
-
- #ifdef HAVE_REGEX_H
-+#include <sys/types.h>
- #include <regex.h>
- #endif
-
diff --git a/devel/c2lib/files/patch-pstring.h b/devel/c2lib/files/patch-pstring.h
deleted file mode 100644
index 92bd07fa9770..000000000000
--- a/devel/c2lib/files/patch-pstring.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- pstring.h.orig Fri Feb 16 18:46:13 2001
-+++ pstring.h Fri Feb 16 18:45:20 2001
-@@ -21,6 +21,7 @@
- #ifndef PSTRING_H
- #define PSTRING_H
-
-+#include <sys/types.h>
- #include <regex.h>
-
- #include <pool.h>
diff --git a/devel/c2lib/files/patch-test_pstring.c b/devel/c2lib/files/patch-test_pstring.c
deleted file mode 100644
index e362d04ee24d..000000000000
--- a/devel/c2lib/files/patch-test_pstring.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- test_pstring.c.orig Fri Feb 16 18:48:56 2001
-+++ test_pstring.c Fri Feb 16 18:49:18 2001
-@@ -22,6 +22,7 @@
- #include <stdlib.h>
- #include <string.h>
- #include <assert.h>
-+#include <sys/types.h>
- #include <regex.h>
-
- #include "pstring.h"
diff --git a/devel/c2lib/manpages.mk b/devel/c2lib/manpages.mk
new file mode 100644
index 000000000000..03b115d166cb
--- /dev/null
+++ b/devel/c2lib/manpages.mk
@@ -0,0 +1,200 @@
+MAN3+= _hash_erase.3
+MAN3+= _hash_get.3
+MAN3+= _hash_get_ptr.3
+MAN3+= _hash_insert.3
+MAN3+= _hash_new.3
+MAN3+= _sash_get.3
+MAN3+= _shash_get.3
+MAN3+= _shash_get_ptr.3
+MAN3+= _shash_insert.3
+MAN3+= _tree_get_data.3
+MAN3+= _tree_new.3
+MAN3+= _tree_set_data.3
+MAN3+= _vector_compare.3
+MAN3+= _vector_fill.3
+MAN3+= _vector_get.3
+MAN3+= _vector_get_ptr.3
+MAN3+= _vector_insert.3
+MAN3+= _vector_map.3
+MAN3+= _vector_map_pool.3
+MAN3+= copy_hash.3
+MAN3+= _vector_new.3
+MAN3+= _vector_pop_back.3
+MAN3+= _vector_pop_front.3
+MAN3+= _vector_push_back.3
+MAN3+= _vector_push_front.3
+MAN3+= _vector_replace.3
+MAN3+= _vector_sort.3
+MAN3+= collision_moving_sphere_and_face.3
+MAN3+= copy_sash.3
+MAN3+= copy_shash.3
+MAN3+= copy_tree.3
+MAN3+= copy_vector.3
+MAN3+= delete_pool.3
+MAN3+= face_translate_along_normal.3
+MAN3+= global_pool.3
+MAN3+= hash_erase.3
+MAN3+= hash_exists.3
+MAN3+= hash_get.3
+MAN3+= hash_get_buckets_used.3
+MAN3+= hash_get_buckets_allocated.3
+MAN3+= hash_get_ptr.3
+MAN3+= hash_insert.3
+MAN3+= hash_keys.3
+MAN3+= hash_keys_in_pool.3
+MAN3+= hash_set_buckets_allocated.3
+MAN3+= hash_size.3
+MAN3+= hash_values.3
+MAN3+= hash_values_in_pool.3
+MAN3+= identity_matrix.3
+MAN3+= make_identity_matrix.3
+MAN3+= make_zero_vec.3
+MAN3+= new_hash.3
+MAN3+= new_identity_matrix.3
+MAN3+= new_matrix.3
+MAN3+= new_pool.3
+MAN3+= new_sash.3
+MAN3+= new_shash.3
+MAN3+= new_subpool.3
+MAN3+= pchrs.3
+MAN3+= new_subvector.3
+MAN3+= new_tree.3
+MAN3+= new_vec.3
+MAN3+= new_vector.3
+MAN3+= new_zero_vec.3
+MAN3+= pcalloc.3
+MAN3+= pchomp.3
+MAN3+= pconcat.3
+MAN3+= pdtoa.3
+MAN3+= pgetline.3
+MAN3+= pgetlinec.3
+MAN3+= pgetlinex.3
+MAN3+= pgrep.3
+MAN3+= pitoa.3
+MAN3+= pjoin.3
+MAN3+= plane_coefficients.3
+MAN3+= plane_translate_along_normal.3
+MAN3+= pmalloc.3
+MAN3+= pmap.3
+MAN3+= pmemdup.3
+MAN3+= point_distance_to_face.3
+MAN3+= point_distance_to_line.3
+MAN3+= psort.3
+MAN3+= point_distance_to_line_segment.3
+MAN3+= point_distance_to_plane.3
+MAN3+= point_face_angle_sum.3
+MAN3+= point_is_inside_plane.3
+MAN3+= point_lies_in_face.3
+MAN3+= pool_get_stats.3
+MAN3+= pool_register_cleanup_fn.3
+MAN3+= pool_register_fd.3
+MAN3+= pool_register_malloc.3
+MAN3+= pool_set_bad_malloc_handler.3
+MAN3+= prealloc.3
+MAN3+= precomp.3
+MAN3+= prematch.3
+MAN3+= presubst.3
+MAN3+= psprintf.3
+MAN3+= pstrcat.3
+MAN3+= pstrcsplit.3
+MAN3+= pstrcsplit2.3
+MAN3+= pstrdup.3
+MAN3+= pstrlwr.3
+MAN3+= pstrncat.3
+MAN3+= pstrndup.3
+MAN3+= pstrresplit.3
+MAN3+= pstrresplit2.3
+MAN3+= pstrs.3
+MAN3+= pstrsplit.3
+MAN3+= pstrsplit2.3
+MAN3+= pstrupr.3
+MAN3+= psubstr.3
+MAN3+= ptrim.3
+MAN3+= ptrimback.3
+MAN3+= ptrimfront.3
+MAN3+= pvdtostr.3
+MAN3+= pvector.3
+MAN3+= pvectora.3
+MAN3+= pvitostr.3
+MAN3+= pvsprintf.3
+MAN3+= pvxtostr.3
+MAN3+= pxtoa.3
+MAN3+= sash_erase.3
+MAN3+= sash_exists.3
+MAN3+= sash_get.3
+MAN3+= sash_keys.3
+MAN3+= sash_get_buckets_allocated.3
+MAN3+= sash_get_buckets_used.3
+MAN3+= sash_insert.3
+MAN3+= sash_keys_in_pool.3
+MAN3+= sash_set_buckets_allocated.3
+MAN3+= sash_size.3
+MAN3+= sash_values.3
+MAN3+= sash_values_in_pool.3
+MAN3+= shash_erase.3
+MAN3+= shash_exists.3
+MAN3+= shash_get.3
+MAN3+= shash_get_buckets_allocated.3
+MAN3+= shash_get_buckets_used.3
+MAN3+= shash_get_ptr.3
+MAN3+= shash_insert.3
+MAN3+= shash_keys.3
+MAN3+= shash_keys_in_pool.3
+MAN3+= shash_size.3
+MAN3+= shash_set_buckets_allocated.3
+MAN3+= shash_values.3
+MAN3+= shash_values_in_pool.3
+MAN3+= tree_clear.3
+MAN3+= tree_erase.3
+MAN3+= tree_erase_range.3
+MAN3+= tree_get.3
+MAN3+= tree_get_data.3
+MAN3+= tree_get_subnode.3
+MAN3+= tree_insert.3
+MAN3+= tree_insert_array.3
+MAN3+= tree_nr_subnodes.3
+MAN3+= tree_pop_back.3
+MAN3+= tree_pop_front.3
+MAN3+= tree_push_back.3
+MAN3+= tree_push_front.3
+MAN3+= tree_replace.3
+MAN3+= tree_replace_array.3
+MAN3+= tree_set_data.3
+MAN3+= tree_size.3
+MAN3+= tree_swap.3
+MAN3+= vec_angle_between.3
+MAN3+= vec_dot_product.3
+MAN3+= vec_magnitude.3
+MAN3+= vec_magnitude2d.3
+MAN3+= vec_magnitude_in_direction.3
+MAN3+= vec_normalize.3
+MAN3+= vec_normalize2d.3
+MAN3+= vector_allocated.3
+MAN3+= vector_clear.3
+MAN3+= vector_compare.3
+MAN3+= vector_element_size.3
+MAN3+= vector_erase.3
+MAN3+= vector_erase_range.3
+MAN3+= vector_fill.3
+MAN3+= vector_get.3
+MAN3+= vector_get_ptr.3
+MAN3+= vector_grep.3
+MAN3+= vector_grep_pool.3
+MAN3+= vector_insert.3
+MAN3+= vector_insert_array.3
+MAN3+= vector_map.3
+MAN3+= vector_map_pool.3
+MAN3+= vector_pop_back.3
+MAN3+= vector_pop_front.3
+MAN3+= vector_push_back.3
+MAN3+= vector_push_back_vector.3
+MAN3+= vector_push_front.3
+MAN3+= vector_push_front_vector.3
+MAN3+= vector_reallocate.3
+MAN3+= vector_replace.3
+MAN3+= vector_replace_array.3
+MAN3+= vector_reverse.3
+MAN3+= vector_size.3
+MAN3+= vector_sort.3
+MAN3+= vector_swap.3
+MAN3+= zero_vec.3
diff --git a/devel/c2lib/pkg-plist b/devel/c2lib/pkg-plist
index b24c343b9e38..53d77643a549 100644
--- a/devel/c2lib/pkg-plist
+++ b/devel/c2lib/pkg-plist
@@ -1,9 +1,14 @@
-include/c2lib_version.h
-include/hash.h
-include/matvec.h
-include/pool.h
-include/pstring.h
-include/vector.h
+include/c2lib/hash.h
+include/c2lib/matvec.h
+include/c2lib/pool.h
+include/c2lib/pre.h
+include/c2lib/pstring.h
+include/c2lib/tree.h
+include/c2lib/vector.h
lib/libc2.a
lib/libc2.so
lib/libc2.so.1
+lib/libc2.so.1.3.0
+share/rws/symtabs/libc2.syms
+@unexec /bin/rmdir %D/share/rws/symtabs 2>/dev/null || true
+@unexec /bin/rmdir %D/share/rws 2>/dev/null || true