2007-02-15 15:58:19 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2007/02/15 14:58:20 joerg Exp $
|
2004-02-10 10:15:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PKGNAME= cal3d-examples-${CAL3D_VERSION}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2004-02-10 10:15:39 +01:00
|
|
|
|
|
|
|
.include "../../graphics/cal3d/Makefile.common"
|
|
|
|
|
|
|
|
DISTFILES= TheCallyDemo-0.9.1b.zip \
|
|
|
|
cal3d-${CAL3D_VERSION}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
COMMENT= Tools and demos for cal3d library
|
|
|
|
|
2005-06-01 22:07:59 +02:00
|
|
|
USE_TOOLS+= automake
|
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-cal3d=${PREFIX:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-glut=${PREFIX:Q}
|
2004-02-10 10:15:39 +01:00
|
|
|
CONFIGURE_DIRS= ${WRKSRC}/examples/cally \
|
|
|
|
${WRKSRC}/examples/miniviewer_gl \
|
|
|
|
${WRKSRC}/tools/converter
|
2005-03-03 21:23:51 +01:00
|
|
|
CFLAGS+= -DCAL3D_DATADIR='"${DATADIR}/"'
|
2004-02-11 02:32:06 +01:00
|
|
|
LDFLAGS+= -L${X11BASE}/lib
|
|
|
|
LIBS+= -lm -lGL -lX11 -lGLU -lXi -lXmu
|
2004-02-10 10:15:39 +01:00
|
|
|
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
|
2006-12-06 15:31:17 +01:00
|
|
|
${CHMOD} 755 ${WRKSRC}/tools/converter/install-sh
|
2004-02-10 10:15:39 +01:00
|
|
|
cd ${WRKSRC}/tools/converter && ./autogen.sh
|
|
|
|
|
2006-11-20 00:11:18 +01:00
|
|
|
SUBST_CLASSES+= c3
|
|
|
|
SUBST_STAGE.c3= post-configure
|
|
|
|
SUBST_FILES.c3= ${PATCHDATA:S,^,${WRKDATADIR}/,}
|
|
|
|
SUBST_SED.c3= -e 's|@@DATADIR@@|${DATADIR}|g'
|
2004-02-10 10:15:39 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DATADIR}
|
2006-11-20 00:11:18 +01:00
|
|
|
cd ${WRKDATADIR} && ${PAX} -rw -pp -s ',.*\.orig$$,,' [a-z]* ${DATADIR}
|
2004-02-10 10:15:39 +01:00
|
|
|
|
|
|
|
.include "../../graphics/cal3d/buildlink3.mk"
|
|
|
|
.include "../../graphics/Mesa/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|