aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/pkg_cleanup/Makefile
blob: fb35046e84e103731acdee0344f61fa2f1cfe81f (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
42
# New ports collection makefile for:    pkg_cleanup
# Date created:             02 November 2007
# Whom:                 Stephen Hurd <shurd@sasktel.net>
#
# $FreeBSD$
#

PORTNAME=   pkg_cleanup
PORTVERSION=    1.1
CATEGORIES= ports-mgmt
DISTFILES=

MAINTAINER= shurd@sasktel.net
COMMENT=    Interactive program for deinstalling 'leaf' packages

MAN1=       pkg_cleanup.1

WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES=    sbin/pkg_cleanup

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900000 && ${OSVERSION} < 900038
IGNORE=     requires r223289 or higher to compile
.endif
.if ${ARCH} == "powerpc" && ${OSVERSION} > 900000
BROKEN=     Does not build on powerpc-9: undefined reference to `sqrt'
.endif

do-extract:
    ${MKDIR} ${WRKSRC}
    ${CP} -R ${FILESDIR}/* ${WRKSRC}

do-build:
    make -C ${WRKSRC}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pkg_cleanup ${PREFIX}/sbin/pkg_cleanup
    ${INSTALL_MAN} ${WRKSRC}/pkg_cleanup.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.post.mk>