Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

5
devel/ode/DESCR Normal file
View File

@@ -0,0 +1,5 @@
ODE is a free, industrial quality library for simulating articulated
rigid body dynamics - for example ground vehicles, legged creatures,
and moving objects in VR environments. It is fast, flexible, robust
and platform independent, with advanced joints, contact with friction,
and built-in collision detection.

29
devel/ode/Makefile Normal file
View File

@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.16 2012/10/31 11:17:33 asau Exp $
DISTNAME= ode-0.5
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opende/}
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ode.org/
COMMENT= Library for the simulation of Rigid Body Dynamics
USE_LANGUAGES= c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
BUILD_TARGET= ode-lib
INSTALLATION_DIRS= include/ode lib
do-configure:
cd ${WRKSRC} && ${MAKE_PROGRAM} configure
do-install:
${INSTALL_DATA} ${WRKSRC}/include/ode/*.h \
${DESTDIR}${PREFIX}/include/ode
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/libode.la \
${DESTDIR}${PREFIX}/lib
.include "../../mk/bsd.pkg.mk"

23
devel/ode/PLIST Normal file
View File

@@ -0,0 +1,23 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:49:01 joerg Exp $
include/ode/collision.h
include/ode/collision_space.h
include/ode/collision_trimesh.h
include/ode/common.h
include/ode/compatibility.h
include/ode/config.h
include/ode/contact.h
include/ode/error.h
include/ode/export-dif.h
include/ode/mass.h
include/ode/matrix.h
include/ode/memory.h
include/ode/misc.h
include/ode/objects.h
include/ode/ode.h
include/ode/odecpp.h
include/ode/odecpp_collision.h
include/ode/odecpp_old.h
include/ode/odemath.h
include/ode/rotation.h
include/ode/timer.h
lib/libode.la

13
devel/ode/buildlink3.mk Normal file
View File

@@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.9 2012/05/07 01:53:26 dholland Exp $
BUILDLINK_TREE+= ode
.if !defined(ODE_BUILDLINK3_MK)
ODE_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ode+= ode>=0.5nb2
BUILDLINK_ABI_DEPENDS.ode+= ode>=0.5nb2
BUILDLINK_PKGSRCDIR.ode?= ../../devel/ode
.endif # ODE_BUILDLINK3_MK
BUILDLINK_TREE+= -ode

8
devel/ode/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.7 2009/11/25 23:41:42 joerg Exp $
SHA1 (ode-0.5.tgz) = f13756f1192d24101b6d1a3c14feb43efbf0b281
RMD160 (ode-0.5.tgz) = 3410a842731c1bb24f306f4d23509533664321aa
Size (ode-0.5.tgz) = 1710720 bytes
SHA1 (patch-aa) = 1e3efc6076b03bbdb0d9f14487d2a951267c974c
SHA1 (patch-ab) = 87b7914946fca9362ab7334525b6c982b9981cad
SHA1 (patch-ac) = 858cfe364bbfe5b637d63b564a54e4615fcf2f85

View File

@@ -0,0 +1,27 @@
$NetBSD: patch-aa,v 1.2 2009/11/25 23:41:42 joerg Exp $
--- Makefile.orig 2004-05-18 20:07:45.000000000 +0200
+++ Makefile
@@ -291,7 +291,8 @@ ifeq ($(WINDOWS16),1)
else
# if we have no command-line-length limitation, directly specify all
# object files to be linked.
- $(ODE_LIB_AR_RULE) $(ODE_OBJECTS)
+ ${LIBTOOL} --mode=link --tag=CXX ${CC} -o ${ODE_LIB:.a=.la} \
+ ${ODE_OBJECTS:.o=.lo} -rpath ${PREFIX}/lib -version-info 0:5
endif
ifdef RANLIB
@@ -329,10 +330,10 @@ clean:
-$(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)$@ $<
+ ${LIBTOOL} --mode=compile --tag=CC $(CC) $(C_FLAGS) $(CFLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
%$(OBJ): %.cpp
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(INC_OPCODE) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
+ ${LIBTOOL} --mode=compile --tag=CXX $(CC) $(C_FLAGS) $(CFLAGS) $(C_INC)$(INCPATH) $(INC_OPCODE) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
%.exe: %$(OBJ)
$(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH)

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ab,v 1.1 2006/03/19 15:05:39 joerg Exp $
--- ode/src/timer.cpp.orig 2006-03-19 14:41:45.000000000 +0000
+++ ode/src/timer.cpp
@@ -118,8 +118,10 @@ static inline void serialize()
{
asm volatile (
"mov $0,%%eax\n"
+ "pushl %%ebx\n"
"cpuid\n"
- : : : "%eax","%ebx","%ecx","%edx","cc","memory");
+ "popl %%ebx\n"
+ : : : "%eax","%ecx","%edx","cc","memory");
}

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-ac,v 1.1 2008/10/02 17:53:37 joerg Exp $
Avoid Pentium specific assembly for binary packages. Also breaks AMD64.
--- configurator.c.orig 2008-10-02 19:50:59.000000000 +0200
+++ configurator.c
@@ -219,23 +219,7 @@ void run (char *filename)
void check_if_this_is_a_pentium (FILE *file)
{
- 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"
- " return 0;\n"
- "}\n");
- delete_file ("ctest.exe");
- compile ("ctest.exe","ctest.cpp");
- if (file_exists ("ctest.exe")) {
- fprintf (file,"#define PENTIUM 1\n\n");
- }
- else {
fprintf (file,"/* #define PENTIUM 1 -- not a pentium */\n\n");
- }
-
- delete_file ("ctest.cpp");
- delete_file ("ctest.exe");
}
/****************************************************************************/