1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/ecgi/Makefile
John Marino e35ac3ddbe devel/ecgi: Remove double entry from plist-plist
When PORTDOCS is used, the docs files can't be listed in pkg-plist,
otherwise they get listed twice (thus two attempts to remove them are
made).  This only counts as a warning and not fatal for Redports, which
is how it slipped by me.

Related PR: 189010
2014-06-14 18:32:44 +00:00

41 lines
1.0 KiB
Makefile

# Created by: George Reid <greid@ukug.uk.freebsd.org>
# $FreeBSD$
PORTNAME= ecgi
PORTVERSION= 0.6.2
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://bsdforge.com/projects/source/devel/ecgi/
MAINTAINER= portmaster@bsdforge.com
COMMENT= Library for the creation of CGI-based Web applications
LICENSE= BSD3CLAUSE
USES= gmake tar:xz
PORTDOCS= *
HEADER_FILES= ecgi.h ecgitk.h include/memfile.h
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
pre-patch:
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' ${WRKSRC}/src/memfile.c
do-install:
${INSTALL_DATA} ${WRKSRC}/libecgi.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_PROGRAM} ${WRKSRC}/libecgi.so ${STAGEDIR}${PREFIX}/lib
${INSTALL_PROGRAM} ${WRKSRC}/html2h/html2h ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/include/ecgi
.for file in ${HEADER_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/include/ecgi
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/ecgitut.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>