freebsd-ports/www/flot/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

49 lines
842 B
Makefile

# $FreeBSD$
PORTNAME= flot
PORTVERSION= 0.7
CATEGORIES= www devel
MASTER_SITES= GOOGLE_CODE
MAINTAINER= ports@FreeBSD.org
COMMENT= JavaScript plotting library for jQuery
LICENSE= MIT
WRKSRC= ${WRKDIR}/${PORTNAME}
USERS= www
GROUPS= www
NO_BUILD= YES
PORTDOCS= API.txt \
FAQ.txt \
NEWS.txt \
PLUGINS.txt \
README.txt
PORTEXAMPLES= *
NO_STAGE= yes
do-install:
@${INSTALL} -d -g ${USERS} -o ${GROUPS} ${WWWDIR}
${INSTALL_DATA} -o www -g www ${WRKSRC}/*.js ${WWWDIR}
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>