1cee02cf4d
PR: 191372 Submitted by: tkato432 yahoo com
40 lines
991 B
Makefile
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>
|