# Created by: Alexey Dokuchaev # $FreeBSD: head/archivers/xmill/Makefile 401207 2015-11-10 20:23:16Z amdmi3 $ PORTNAME= xmill DISTVERSION= 0.8 CATEGORIES= archivers MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Efficient compressor for XML WRKSRC= ${WRKDIR}/${PORTNAME} USES= dos2unix zip DOS2UNIX_FILES= ${MAKEFILE} XMill/*.cpp MAKEFILE= makefile PORTDOCS= * PORTEXAMPLES= * PLIST_FILES= bin/xcmill bin/xdemill bin/xmilltest bin/xmillexample \ bin/xmillinspect bin/ppmzip OPTIONS_DEFINE= DOCS EXAMPLES post-patch: # Allow to build with modern GCC @${REINPLACE_CMD} -e 's,friend,& class,' ${WRKSRC}/XMill/*.?pp \ ${WRKSRC}/xmillinspect/xmillinspect.h do-install: .for p in ${PLIST_FILES:T} (cd ${WRKSRC}/unix && ${INSTALL_PROGRAM} ${p} ${STAGEDIR}${PREFIX}/bin) .endfor do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/documentation && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}) do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR}) .include