1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/archivers/xmill/Makefile
William Grzybowski 1cee02cf4d archivers/xmill: fix build with clang
PR:		191372
Submitted by:	tkato432 yahoo com
2014-07-09 23:03:04 +00:00

40 lines
991 B
Makefile

# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
# $FreeBSD$
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
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/documentation && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>