summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoradam <adam>2006-02-10 20:35:28 +0000
committeradam <adam>2006-02-10 20:35:28 +0000
commitd189c2f53adb2d560be7a5fa72fe92223662acf9 (patch)
tree1a37b9ae72a6fad5d9a493e74ab929bf6ac8eb75 /devel
parentcb79aac9e3365602772b57843367a498bd2e938f (diff)
downloadpkgsrc-d189c2f53adb2d560be7a5fa72fe92223662acf9.tar.gz
Use LIBTOOL and build a dynamic library
Diffstat (limited to 'devel')
-rw-r--r--devel/ode/Makefile13
-rw-r--r--devel/ode/PLIST4
-rw-r--r--devel/ode/buildlink3.mk8
-rw-r--r--devel/ode/distinfo3
-rw-r--r--devel/ode/patches/patch-aa27
5 files changed, 42 insertions, 13 deletions
diff --git a/devel/ode/Makefile b/devel/ode/Makefile
index 2b282be444b..324f96c0ffd 100644
--- a/devel/ode/Makefile
+++ b/devel/ode/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2006/02/05 23:08:49 joerg Exp $
-#
+# $NetBSD: Makefile,v 1.11 2006/02/10 20:35:28 adam Exp $
DISTNAME= ode-0.5
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opende/}
EXTRACT_SUFX= .tgz
@@ -11,9 +10,9 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://ode.org/
COMMENT= Library for the simulation of Rigid Body Dynamics
+USE_LIBTOOL= yes
USE_TOOLS+= gmake
-
-.include "../../mk/x11.buildlink3.mk"
+BUILD_TARGET= ode-lib
INSTALLATION_DIRS= include/ode lib
@@ -22,6 +21,8 @@ do-configure:
do-install:
${INSTALL_DATA} ${WRKSRC}/include/ode/*.h ${PREFIX}/include/ode
- ${INSTALL_DATA} ${WRKSRC}/lib/libode.a ${PREFIX}/lib
+ ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/libode.la \
+ ${PREFIX}/lib
+.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ode/PLIST b/devel/ode/PLIST
index cb71afe9640..775e88e603d 100644
--- a/devel/ode/PLIST
+++ b/devel/ode/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2006/01/24 22:45:33 rillig Exp $
+@comment $NetBSD: PLIST,v 1.3 2006/02/10 20:35:28 adam Exp $
include/ode/collision.h
include/ode/collision_space.h
include/ode/collision_trimesh.h
@@ -20,5 +20,5 @@ include/ode/odecpp_old.h
include/ode/odemath.h
include/ode/rotation.h
include/ode/timer.h
-lib/libode.a
+lib/libode.la
@dirrm include/ode
diff --git a/devel/ode/buildlink3.mk b/devel/ode/buildlink3.mk
index faeba203d08..8909fc337c9 100644
--- a/devel/ode/buildlink3.mk
+++ b/devel/ode/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2006/02/05 23:08:49 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2006/02/10 20:35:28 adam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
ODE_BUILDLINK3_MK:= ${ODE_BUILDLINK3_MK}+
@@ -11,9 +11,9 @@ BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Node}
BUILDLINK_PACKAGES+= ode
.if !empty(ODE_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.ode+= ode>=0.039
-BUILDLINK_RECOMMENDED.ode?= ode>=0.5nb1
+BUILDLINK_DEPENDS.ode+= ode>=0.5nb2
+BUILDLINK_RECOMMENDED.ode?= ode>=0.5nb2
BUILDLINK_PKGSRCDIR.ode?= ../../devel/ode
.endif # ODE_BUILDLINK3_MK
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/ode/distinfo b/devel/ode/distinfo
index 954065b87e1..b31a3dc4dbb 100644
--- a/devel/ode/distinfo
+++ b/devel/ode/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2006/01/24 22:45:33 rillig Exp $
+$NetBSD: distinfo,v 1.4 2006/02/10 20:35:28 adam Exp $
SHA1 (ode-0.5.tgz) = f13756f1192d24101b6d1a3c14feb43efbf0b281
RMD160 (ode-0.5.tgz) = 3410a842731c1bb24f306f4d23509533664321aa
Size (ode-0.5.tgz) = 1710720 bytes
+SHA1 (patch-aa) = 216a15a8ebfd7195215e1396ac94c4508fafbf30
diff --git a/devel/ode/patches/patch-aa b/devel/ode/patches/patch-aa
new file mode 100644
index 00000000000..407aa68f100
--- /dev/null
+++ b/devel/ode/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1 2006/02/10 20:35:28 adam 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 ${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 $(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 $(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)