8503536d38
Approved by: portmgr (kris)
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# New ports collection makefile for: cal3d
|
|
# Date created: 12 Jul 2004
|
|
# Whom: Stefan Walter <sw@gegenunendlich.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cal3d
|
|
DISTVERSION= ${CAL3DVER}_pre20050823
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
|
MASTER_SITE_SUBDIR= distfiles
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}
|
|
|
|
MAINTAINER= acardenas@bsd.org.pe
|
|
COMMENT= Skeletal based 3d character animation library written in C++ (devel)
|
|
|
|
CAL3DVER= 0.11.0
|
|
|
|
CONFLICTS= cal3d-[0-9]*
|
|
|
|
USE_BZIP2= yes
|
|
USE_REINPLACE= yes
|
|
INSTALLS_SHLIB= yes
|
|
USE_GNOME= pkgconfig
|
|
USE_GCC= 3.2+
|
|
USE_AUTOTOOLS= automake:19 autoheader:259 libtool:15
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CXX="${CXX}"
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's|^\(pkgconfigdir\ =\).*|\1 $$(prefix)/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile.am
|
|
@${REINPLACE_CMD} -e 's|<istream>|<iostream>|' \
|
|
${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 <bsd.port.mk>
|