# Created by: Stefan Walter # $FreeBSD$ PORTNAME= cal3d PORTVERSION= 20060720 PORTREVISION= 2 CATEGORIES= graphics devel MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= acm/${PORTNAME} PKGNAMESUFFIX= -devel DIST_SUBDIR= ${PORTNAME} MAINTAINER= acm@FreeBSD.org COMMENT= Skeletal based 3D character animation library written in C++ (devel) CONFLICTS= cal3d-[0-9]* USE_BZIP2= yes USES= pkgconfig USE_LDCONFIG= yes USE_AUTOTOOLS= automake autoheader libtool AUTOMAKE_ARGS= --add-missing MAN1= cal3d_converter.1 NO_STAGE= yes post-patch: @${REINPLACE_CMD} \ -e 's|^\(pkgconfigdir\ =\).*|\1 $$(prefix)/libdata/pkgconfig|' \ ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e 's|||' \ ${WRKSRC}/src/cal3d/buffersource.h \ ${WRKSRC}/src/cal3d/loader.h \ ${WRKSRC}/src/cal3d/streamsource.h @${REINPLACE_CMD} -e '/^all_libraries/d' ${WRKSRC}/src/cal3d/Makefile.am pre-configure: cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal cd ${WRKSRC} && ${AUTOHEADER} cd ${WRKSRC} && ${LIBTOOLIZE} --automake --force # XXX: handle slight differences between 6.x and 5.x/4.x post-install: @${RM} -f ${PREFIX}/lib/libcal3d.a .include