aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/wanted-ports/Makefile
blob: b3d023955bd37806f18704e6913d5a0338d13bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
# $FreeBSD$

PORTNAME=   wanted-ports
PORTVERSION=    0.2
#PORTREVISION is set from ${CFGFILE}
CATEGORIES= ports-mgmt
MASTER_SITES=   # none
DISTFILES=  # none

MAINTAINER= matthew@FreeBSD.org
COMMENT=    Just depend on a configurable, arbitrary set of other ports

LICENSE=    BSD

NO_BUILD=   yes
SUB_FILES=  ${PORTNAME}   \
        ${PORTNAME}.1
SUB_LIST=   PORTNAME=${PORTNAME} \
        PKGNAME=${PKGNAME}
PLIST_SUB=  PORTNAME=${PORTNAME}
PLIST_FILES=    bin/${PORTNAME}

MAN1=       ${PORTNAME}.1

.if defined(WANTEDPORTSCFG)
CFGFILE=    ${WANTEDPORTSCFG}
.else
CFGFILE?=   /var/db/${PORTNAME}.conf
.endif

NO_STAGE=   yes
.if exists(${CFGFILE})
.include "${CFGFILE}"
.endif

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
    ${INSTALL_MAN} ${WRKDIR}/${PORTNAME}.1 ${MANPREFIX}/man/man1/

.include <bsd.port.mk>