freebsd-ports/www/cgic/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

37 lines
872 B
Makefile

# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= cgic
PORTVERSION= 2.05
CATEGORIES= www
MASTER_SITES= http://www.boutell.com/cgic/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
MAINTAINER= ports@FreeBSD.org
COMMENT= ANSI C library for CGI programming
MAKE_ENV= SHLIB_MAJOR="${SHLIB_MAJOR}"
MAKEFILE= ${FILESDIR}/Makefile.lib
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
USE_LDCONFIG= yes
MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null
SHLIB_MAJOR= ${PORTVERSION:R}
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/capture.c ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/cgictest.c ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>