mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
354ffdd731
- Utilize PORT_OPTIONS for docs and examples - Drop article from COMMENT Approved by: maintainer (implicit)
47 lines
1011 B
Makefile
47 lines
1011 B
Makefile
# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmill
|
|
DISTVERSION= 0.8
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
|
COMMENT= Efficient compressor for XML
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
MAKEFILE= makefile
|
|
|
|
USE_ZIP= yes
|
|
USE_DOS2UNIX= ${MAKEFILE} XMill/BZlib.cpp
|
|
|
|
PLIST_FILES= bin/xcmill bin/xdemill bin/xmilltest bin/xmillexample \
|
|
bin/xmillinspect bin/ppmzip
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
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}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unix/${p} ${PREFIX}/bin
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|