# Created by: Andrey Zakhvatov # $FreeBSD$ PORTNAME= EZWGL PORTVERSION= 1.50 PORTREVISION= 9 CATEGORIES= graphics devel MASTER_SITES= ftp://ftp.ma.utexas.edu/pub/mzou/ DISTFILES= ${DISTNAME}-demo.tgz ${DISTNAME}-doc.tgz ${DISTNAME}-src.tgz MAINTAINER= ports@FreeBSD.org COMMENT= EZ Widget and Graphics Library LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \ libpng.so:${PORTSDIR}/graphics/png USE_XORG= x11 xext USE_LDCONFIG= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib PORTDOCS= * PORTEXAMPLES= * NOPRECIOUSMAKEVARS= yes # Otherwise 'make readmes' is broken BROKEN_sparc64= Does not compile on sparc64 OPTIONS_DEFINE= DOCS EXAMPLES .include ".${CURDIR}/Makefile.manlinks" .include post-extract: @${FIND} ${WRKSRC} -name CVS -type d | ${XARGS} ${RM} -r do-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}/ps ${INSTALL_DATA} ${WRKSRC}/include/EZ.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_LIB} ${WRKSRC}/lib/libEZ.so.1 ${STAGEDIR}${PREFIX}/lib (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libEZ.so.1 libEZ.so) ${INSTALL_MAN} ${WRKSRC}/doc/man3/*.3 ${STAGEDIR}${MANPREFIX}/man/man3 (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile.in") (cd ${WRKSRC} && ${COPYTREE_SHARE} demos \ ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile.in") (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} "! -empty") ${INSTALL_DATA} ${WRKSRC}/doc/ps/*.ps ${STAGEDIR}${DOCSDIR}/ps post-install: install-manlinks .include