summaryrefslogtreecommitdiff
path: root/graphics/cal3d-examples
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>2004-02-10 09:15:39 +0000
committergarbled <garbled@pkgsrc.org>2004-02-10 09:15:39 +0000
commit49c13252678a766cc7dd21cb1a49c13a6a304381 (patch)
tree5eb5cf04b6faf6b38f7b6f5832a6c2a9ca7022cb /graphics/cal3d-examples
parent0c6e48285e77ebfc668454e49328e93a203342fb (diff)
downloadpkgsrc-49c13252678a766cc7dd21cb1a49c13a6a304381.tar.gz
Add package for cal3d-examples. Example programs, and useful demo tools
for the cal3d 3d skeletal animation library.
Diffstat (limited to 'graphics/cal3d-examples')
-rw-r--r--graphics/cal3d-examples/DESCR7
-rw-r--r--graphics/cal3d-examples/Makefile53
-rw-r--r--graphics/cal3d-examples/PLIST127
-rw-r--r--graphics/cal3d-examples/distinfo8
-rw-r--r--graphics/cal3d-examples/patches/patch-aa35
-rw-r--r--graphics/cal3d-examples/patches/patch-ab13
6 files changed, 243 insertions, 0 deletions
diff --git a/graphics/cal3d-examples/DESCR b/graphics/cal3d-examples/DESCR
new file mode 100644
index 00000000000..f807f893a02
--- /dev/null
+++ b/graphics/cal3d-examples/DESCR
@@ -0,0 +1,7 @@
+A demo of Cal3d library.
+
+Cal3d is a skeletal based 3d character animation library written in C++ in
+a platform-/graphic API-independent way. Originally designed to be used in a
+3d client for Worldforge, it evolved into a stand-alone product which can be
+used in many different kinds of projects. Check out the Cal3d FAQ for more
+detailed info.
diff --git a/graphics/cal3d-examples/Makefile b/graphics/cal3d-examples/Makefile
new file mode 100644
index 00000000000..5c220914dce
--- /dev/null
+++ b/graphics/cal3d-examples/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/10 09:15:39 garbled Exp $
+#
+
+PKGNAME= cal3d-examples-${CAL3D_VERSION}
+
+.include "../../graphics/cal3d/Makefile.common"
+
+DISTFILES= TheCallyDemo-0.9.1b.zip \
+ cal3d-${CAL3D_VERSION}${EXTRACT_SUFX}
+
+COMMENT= Tools and demos for cal3d library
+
+USE_BUILDLINK3= yes
+CONFIGURE_ARGS+= --with-cal3d=${PREFIX}
+CONFIGURE_ARGS+= --with-glut=${PREFIX}
+CONFIGURE_DIRS= ${WRKSRC}/examples/cally \
+ ${WRKSRC}/examples/miniviewer_gl \
+ ${WRKSRC}/tools/converter
+CFLAGS+= -DCAL3D_DATADIR='\"${DATADIR}/\"'
+LIBS+= -lm -lX11 -lXi -lGL -lGLU -lXmu
+BUILD_DIRS= ${WRKSRC}/examples/cally \
+ ${WRKSRC}/examples/miniviewer_gl \
+ ${WRKSRC}/tools/converter
+
+DATADIR= ${PREFIX}/share/cal3d-examples/data
+WRKDATADIR= ${WRKDIR}/thecallydemo-0.9.1b/data
+PATCHDATA= cally.cfg paladin.cfg skeleton.cfg
+
+pre-configure:
+ cd ${WRKSRC}/examples/cally && ./autogen.sh
+ cd ${WRKSRC}/examples/miniviewer_gl && ./autogen.sh
+ ${CHMOD} 755 ${WRKSRC}/tools/converter/autogen.sh
+ cd ${WRKSRC}/tools/converter && ./autogen.sh
+
+post-patch:
+ for f in ${PATCHDATA}; do \
+ ${CP} ${WRKDATADIR}/$$f ${WRKDATADIR}/$$f.pkgsrc && \
+ ${SED} -e 's|@@DATADIR@@|${DATADIR}|g' ${WRKDATADIR}/$$f.pkgsrc > \
+ ${WRKDATADIR}/$$f; && \
+ ${RM} ${WRKDATADIR}/$$f.pkgsrc; \
+ ${RM} ${WRKDATADIR}/$$f.orig; \
+ done
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DATADIR}
+ cd ${WRKDATADIR} && ${PAX} -rw -pe [a-z]* ${DATADIR}
+
+.include "../../graphics/cal3d/buildlink3.mk"
+.include "../../graphics/Mesa/buildlink3.mk"
+
+.include "../../mk/automake.mk"
+.include "../../mk/autoconf.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/cal3d-examples/PLIST b/graphics/cal3d-examples/PLIST
new file mode 100644
index 00000000000..3608fddab3e
--- /dev/null
+++ b/graphics/cal3d-examples/PLIST
@@ -0,0 +1,127 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/10 09:15:39 garbled Exp $
+bin/cal3d_cally
+bin/cal3d_miniviewer
+bin/cal3d_converter
+share/cal3d-examples/data/cally/cally.cfg
+share/cal3d-examples/data/cally/cally.csf
+share/cal3d-examples/data/cally/cally_calf_left.cmf
+share/cal3d-examples/data/cally/cally_calf_right.cmf
+share/cal3d-examples/data/cally/cally_chest.cmf
+share/cal3d-examples/data/cally/cally_chest.xrf
+share/cal3d-examples/data/cally/cally_foot_left.cmf
+share/cal3d-examples/data/cally/cally_foot_right.cmf
+share/cal3d-examples/data/cally/cally_hand_left.cmf
+share/cal3d-examples/data/cally/cally_hand_right.cmf
+share/cal3d-examples/data/cally/cally_head.cmf
+share/cal3d-examples/data/cally/cally_idle.caf
+share/cal3d-examples/data/cally/cally_jog.caf
+share/cal3d-examples/data/cally/cally_lowerarm_left.cmf
+share/cal3d-examples/data/cally/cally_lowerarm_right.cmf
+share/cal3d-examples/data/cally/cally_neck.cmf
+share/cal3d-examples/data/cally/cally_pelvis.cmf
+share/cal3d-examples/data/cally/cally_pelvis.xrf
+share/cal3d-examples/data/cally/cally_ponytail.cmf
+share/cal3d-examples/data/cally/cally_ponytail.xrf
+share/cal3d-examples/data/cally/cally_shoot_arrow.caf
+share/cal3d-examples/data/cally/cally_skin.xrf
+share/cal3d-examples/data/cally/cally_strut.caf
+share/cal3d-examples/data/cally/cally_thigh_left.cmf
+share/cal3d-examples/data/cally/cally_thigh_right.cmf
+share/cal3d-examples/data/cally/cally_tornado_kick.caf
+share/cal3d-examples/data/cally/cally_upperarm_left.cmf
+share/cal3d-examples/data/cally/cally_upperarm_right.cmf
+share/cal3d-examples/data/cally/cally_walk.caf
+share/cal3d-examples/data/cally/cally_wave.caf
+share/cal3d-examples/data/cally.cfg
+share/cal3d-examples/data/cursor.raw
+share/cal3d-examples/data/fps.raw
+share/cal3d-examples/data/lod.raw
+share/cal3d-examples/data/logo.raw
+share/cal3d-examples/data/menu.raw
+share/cal3d-examples/data/paladin/paladin.cfg
+share/cal3d-examples/data/paladin/paladin.csf
+share/cal3d-examples/data/paladin/paladin_arm.tga
+share/cal3d-examples/data/paladin/paladin_arm_left.xrf
+share/cal3d-examples/data/paladin/paladin_arm_right.xrf
+share/cal3d-examples/data/paladin/paladin_body.cmf
+share/cal3d-examples/data/paladin/paladin_cape.cmf
+share/cal3d-examples/data/paladin/paladin_cape.tga
+share/cal3d-examples/data/paladin/paladin_cape.xrf
+share/cal3d-examples/data/paladin/paladin_chest.tga
+share/cal3d-examples/data/paladin/paladin_chest.xrf
+share/cal3d-examples/data/paladin/paladin_cloth.tga
+share/cal3d-examples/data/paladin/paladin_edge.tga
+share/cal3d-examples/data/paladin/paladin_edge.xrf
+share/cal3d-examples/data/paladin/paladin_edge_alpha.tga
+share/cal3d-examples/data/paladin/paladin_flesh.tga
+share/cal3d-examples/data/paladin/paladin_flesh.xrf
+share/cal3d-examples/data/paladin/paladin_gird.tga
+share/cal3d-examples/data/paladin/paladin_gird.xrf
+share/cal3d-examples/data/paladin/paladin_head.tga
+share/cal3d-examples/data/paladin/paladin_head.xrf
+share/cal3d-examples/data/paladin/paladin_idle.caf
+share/cal3d-examples/data/paladin/paladin_jog.caf
+share/cal3d-examples/data/paladin/paladin_legging.tga
+share/cal3d-examples/data/paladin/paladin_legguard.tga
+share/cal3d-examples/data/paladin/paladin_legguard_left.xrf
+share/cal3d-examples/data/paladin/paladin_legguard_right.xrf
+share/cal3d-examples/data/paladin/paladin_legplate_left.tga
+share/cal3d-examples/data/paladin/paladin_legplate_left.xrf
+share/cal3d-examples/data/paladin/paladin_legplate_right.tga
+share/cal3d-examples/data/paladin/paladin_legplate_right.xrf
+share/cal3d-examples/data/paladin/paladin_leg_left.xrf
+share/cal3d-examples/data/paladin/paladin_leg_right.xrf
+share/cal3d-examples/data/paladin/paladin_loincloth.cmf
+share/cal3d-examples/data/paladin/paladin_loin_lower.xrf
+share/cal3d-examples/data/paladin/paladin_loin_upper.xrf
+share/cal3d-examples/data/paladin/paladin_plate.tga
+share/cal3d-examples/data/paladin/paladin_ponytail.tga
+share/cal3d-examples/data/paladin/paladin_ponytail.xrf
+share/cal3d-examples/data/paladin/paladin_shoe.tga
+share/cal3d-examples/data/paladin/paladin_shoe.xrf
+share/cal3d-examples/data/paladin/paladin_shoot_arrow.caf
+share/cal3d-examples/data/paladin/paladin_sneak.caf
+share/cal3d-examples/data/paladin/paladin_stripe.tga
+share/cal3d-examples/data/paladin/paladin_stripe.xrf
+share/cal3d-examples/data/paladin/paladin_strut.caf
+share/cal3d-examples/data/paladin/paladin_walk.caf
+share/cal3d-examples/data/paladin/paladin_wave.caf
+share/cal3d-examples/data/paladin.cfg
+share/cal3d-examples/data/skeleton/skeleton.cfg
+share/cal3d-examples/data/skeleton/skeleton.csf
+share/cal3d-examples/data/skeleton/skeleton_bone.xrf
+share/cal3d-examples/data/skeleton/skeleton_calf_left.cmf
+share/cal3d-examples/data/skeleton/skeleton_calf_right.cmf
+share/cal3d-examples/data/skeleton/skeleton_chest.cmf
+share/cal3d-examples/data/skeleton/skeleton_foot_left.cmf
+share/cal3d-examples/data/skeleton/skeleton_foot_right.cmf
+share/cal3d-examples/data/skeleton/skeleton_hair.cmf
+share/cal3d-examples/data/skeleton/skeleton_hair1.xrf
+share/cal3d-examples/data/skeleton/skeleton_hair2.xrf
+share/cal3d-examples/data/skeleton/skeleton_hair3.xrf
+share/cal3d-examples/data/skeleton/skeleton_hand_left.cmf
+share/cal3d-examples/data/skeleton/skeleton_hand_right.cmf
+share/cal3d-examples/data/skeleton/skeleton_head.cmf
+share/cal3d-examples/data/skeleton/skeleton_hiphop.caf
+share/cal3d-examples/data/skeleton/skeleton_idle.caf
+share/cal3d-examples/data/skeleton/skeleton_jog.caf
+share/cal3d-examples/data/skeleton/skeleton_lowerarm_left.cmf
+share/cal3d-examples/data/skeleton/skeleton_lowerarm_right.cmf
+share/cal3d-examples/data/skeleton/skeleton_neck.cmf
+share/cal3d-examples/data/skeleton/skeleton_pelvis.cmf
+share/cal3d-examples/data/skeleton/skeleton_shoot_arrow.caf
+share/cal3d-examples/data/skeleton/skeleton_spine_lower.cmf
+share/cal3d-examples/data/skeleton/skeleton_spine_upper.cmf
+share/cal3d-examples/data/skeleton/skeleton_strut.caf
+share/cal3d-examples/data/skeleton/skeleton_thigh_left.cmf
+share/cal3d-examples/data/skeleton/skeleton_thigh_right.cmf
+share/cal3d-examples/data/skeleton/skeleton_upperarm_left.cmf
+share/cal3d-examples/data/skeleton/skeleton_upperarm_right.cmf
+share/cal3d-examples/data/skeleton/skeleton_walk.caf
+share/cal3d-examples/data/skeleton/skeleton_wave.caf
+share/cal3d-examples/data/skeleton.cfg
+@dirrm share/cal3d-examples/data/cally
+@dirrm share/cal3d-examples/data/paladin
+@dirrm share/cal3d-examples/data/skeleton
+@dirrm share/cal3d-examples/data
+@dirrm share/cal3d-examples
diff --git a/graphics/cal3d-examples/distinfo b/graphics/cal3d-examples/distinfo
new file mode 100644
index 00000000000..c49dbe3454b
--- /dev/null
+++ b/graphics/cal3d-examples/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/10 09:15:39 garbled Exp $
+
+SHA1 (TheCallyDemo-0.9.1b.zip) = e4d1d4b14504e0971f5cb56e7daa1133f62ad2b8
+Size (TheCallyDemo-0.9.1b.zip) = 2503946 bytes
+SHA1 (cal3d-0.9.1.tar.bz2) = 2e0765caddc972f05f70d3a255862ced1276e039
+Size (cal3d-0.9.1.tar.bz2) = 2871094 bytes
+SHA1 (patch-aa) = ec6dc2b56810a7bceeea864410ef1cff997f0501
+SHA1 (patch-ab) = 74ca6b1b75016253bd45e38ba09fce1f2f7573f1
diff --git a/graphics/cal3d-examples/patches/patch-aa b/graphics/cal3d-examples/patches/patch-aa
new file mode 100644
index 00000000000..34292a9d9bb
--- /dev/null
+++ b/graphics/cal3d-examples/patches/patch-aa
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/10 09:15:39 garbled Exp $
+
+--- ../thecallydemo-0.9.1b/data/cally.cfg~ Wed Aug 6 03:57:54 2003
++++ ../thecallydemo-0.9.1b/data/cally.cfg Wed Nov 5 05:45:30 2003
+@@ -4,7 +4,7 @@
+ # model: cally
+ #
+
+-path=data/cally/
++path=@@DATADIR@@/cally/
+
+ scale=1.0
+
+--- ../thecallydemo-0.9.1b/data/skeleton.cfg~ Wed Aug 6 03:57:54 2003
++++ ../thecallydemo-0.9.1b/data/skeleton.cfg Wed Nov 5 05:45:57 2003
+@@ -4,7 +4,7 @@
+ # model: skeleton
+ #
+
+-path=data/skeleton/
++path=@@DATADIR@@/skeleton/
+
+ scale=1.0
+
+--- ../thecallydemo-0.9.1b/data/paladin.cfg~ Wed Aug 6 03:57:54 2003
++++ ../thecallydemo-0.9.1b/data/paladin.cfg Wed Nov 5 05:45:46 2003
+@@ -4,7 +4,7 @@
+ # model: paladin
+ #
+
+-path=data/paladin/
++path=@@DATADIR@@/paladin/
+
+ scale=0.5
+
diff --git a/graphics/cal3d-examples/patches/patch-ab b/graphics/cal3d-examples/patches/patch-ab
new file mode 100644
index 00000000000..0912eaa9fc3
--- /dev/null
+++ b/graphics/cal3d-examples/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/02/10 09:15:39 garbled Exp $
+
+--- examples/cally/src/demo.cpp~ Wed Aug 6 04:24:41 2003
++++ examples/cally/src/demo.cpp Wed Nov 5 05:28:49 2003
+@@ -28,7 +28,7 @@
+ // Constructors //
+ //----------------------------------------------------------------------------//
+
+-Demo::Demo() : m_strDatapath("data/"), m_strCal3D_Datapath("")
++Demo::Demo() : m_strDatapath(CAL3D_DATADIR), m_strCal3D_Datapath("")
+ {
+ m_width = 640;
+ m_height = 480;