1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/ports-mgmt/p5-FreeBSD-Portindex/Makefile
Matthew Seaman 0e0be27094 Update to 3.3
- BSD2CLAUSE license
 - OPTIONS helpers
 - remove code from pkg-install.in that was duplicating functionality
   already performed from pkg-plist.

This version drops support for the old-style OPTIONS variable, and
looks for both OPTIONSFILE and OPTIONS_FILE if OPTIONS_DEFINE is not
empty.
2013-12-26 22:41:02 +00:00

54 lines
1.2 KiB
Makefile

# Created by: Matthew Seaman
# $FreeBSD$
PORTNAME= FreeBSD-Portindex
PORTVERSION= 3.3
CATEGORIES= ports-mgmt perl5
MASTER_SITES= http://www.infracaninophile.co.uk/portindex/
PKGNAMEPREFIX= p5-
MAINTAINER= matthew@FreeBSD.org
COMMENT= Incremental FreeBSD ports INDEX file generation
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= p5-BerkeleyDB>0:${PORTSDIR}/databases/p5-BerkeleyDB
RUN_DEPENDS:= ${BUILD_DEPENDS}
NO_ARCH= yes
# GraphViz not required for portindex to run or generate GraphViz
# format output: this is only needed to render the output on the same
# machine.
OPTIONS_DEFINE= GRAPHVIZ
GRAPHVIS_DESCR= Add GraphViz run-time dependency
.include <bsd.port.options.mk>
GRAPHVIZ_RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz
USES+= perl5
USE_XZ= yes
USE_PERL5= configure
CACHE_DIR?= /var/db/portindex
CACHE_OWNER?= root
CACHE_GROUP?= operator
CACHE_MODE?= 0775
CFG_FILE= portindex.cfg
SUB_FILES+= pkg-install
SUB_LIST+= CACHE_DIR=${CACHE_DIR} \
CACHE_OWNER=${CACHE_OWNER} \
CACHE_GROUP=${CACHE_GROUP} \
CACHE_MODE=${CACHE_MODE}
post-install: install-conf
install-conf:
cd ${WRKSRC} ; \
${INSTALL_DATA} ${CFG_FILE}.sample ${STAGEDIR}${PREFIX}/etc/${CFG_FILE}.sample
.include <bsd.port.mk>