freebsd-ports/cad/openctm/Makefile
Mark Linimon 21df82eafb Fix build on GCC-based systems by adding compiler:c++11-lang to USES:
/usr/local/lib/libtinyxml.so: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'

While here, sort USES.

Approved by:	portmgr (tier-2 blanket)
2020-03-17 04:27:03 +00:00

38 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= openctm
DISTVERSION= 1.0.3
CATEGORIES= cad
MASTER_SITES= https://sourceforge.net/projects/openctm/files/
DISTNAME= OpenCTM-${DISTVERSION}-src
MAINTAINER= db@FreeBSD.org
COMMENT= OpenCTM is a file format for compression of 3D triangle meshes
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml \
libpnglite.so:graphics/pnglite \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
BUILD_DEPENDS= pnglite>0:graphics/pnglite \
tinyxml>0:textproc/tinyxml
USES= compiler:c++11-lang dos2unix gettext-runtime gl gmake \
gnome jpeg pkgconfig tar:bz2
USE_GL= gl glu glew glut
USE_GNOME= gtk20 pango atk cairo gdkpixbuf2 glib20
MAKEFILE= Makefile.linux
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/OpenCTM-${DISTVERSION}
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%STAGEDIR%%|${STAGEDIR}|' ${WRKSRC}/Makefile.linux
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/tools/Makefile.linux ${WRKSRC}/Makefile.linux
.include <bsd.port.mk>