freebsd-ports/databases/tablelog/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

36 lines
909 B
Makefile

# Created by: Robert Gogolok <gogo@cs.uni-sb.de>
# $FreeBSD$
PORTNAME= tablelog
PORTVERSION= 0.4.4
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://pgfoundry.org/frs/download.php/1387/
MAINTAINER= ports@FreeBSD.org
COMMENT= Logs changes on a table in PostgreSQL
WRKSRC= ${WRKDIR}/table_log-${DISTVERSION}
USES= gmake
USE_PGSQL= yes
MAKE_ARGS= USE_PGXS=1
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql/
@${INSTALL_PROGRAM} ${WRKSRC}/table_log.so \
${STAGEDIR}${PREFIX}/lib/postgresql/
@${MKDIR} ${STAGEDIR}${PREFIX}/share/postgresql/contrib/
@${INSTALL_DATA} ${WRKSRC}/table_log_init.sql \
${STAGEDIR}${PREFIX}/share/postgresql/contrib/
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC} && ${INSTALL_DATA} README.table_log table_log.sql \
${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>