1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/archivers/xmill/Makefile
2021-04-06 16:31:07 +02:00

43 lines
1.0 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
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 <bsd.port.mk>