pkgsrc/graphics/cal3d-examples/Makefile
jlam fcb7da800b Remove mk/autoconf.mk and mk/automake.mk and replace their usage with
USE_TOOLS and any of "autoconf", "autoconf213", "automake" or
"automake14".  Also, we don't need to call the auto* tools via
${ACLOCAL}, ${AUTOCONF}, etc., since the tools framework takes care
to symlink the correct tool to the correct name, so we can just use
aclocal, autoconf, etc.
2005-06-01 20:07:59 +00:00

55 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2005/06/01 20:08:00 jlam Exp $
#
PKGNAME= cal3d-examples-${CAL3D_VERSION}
PKGREVISION= 1
.include "../../graphics/cal3d/Makefile.common"
DISTFILES= TheCallyDemo-0.9.1b.zip \
cal3d-${CAL3D_VERSION}${EXTRACT_SUFX}
COMMENT= Tools and demos for cal3d library
USE_TOOLS+= automake
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}/"'
LDFLAGS+= -L${X11BASE}/lib
LIBS+= -lm -lGL -lX11 -lGLU -lXi -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/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"