aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/pkg_install/Makefile
blob: 6fbc302e9c8d619c3fcc814d71ef0dea1cbfc527 (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
43
44
45
# New ports collection makefile for:    pkg_install
# Date created:             14 Jul 2003
# Whom:                 Oliver Eikemeier
#
# $FreeBSD$
#

PORTNAME=       pkg_install
PORTVERSION=        20080407
CATEGORIES=     ports-mgmt
MASTER_SITES=       ${MASTER_SITE_LOCAL} \
            http://people.FreeBSD.org/~flz/distfiles/pkg_install/
MASTER_SITE_SUBDIR= flz/pkg_install

MAINTAINER=     portmgr@freebsd.org
COMMENT=        FreeBSD -CURRENT version of the pkg tools for older system releases

MANCOMPRESSED=      yes

MAN1=           pkg_add.1 pkg_create.1 pkg_delete.1 \
            pkg_info.1 pkg_updating.1 pkg_version.1

.include <bsd.port.pre.mk>

# Arbitrary OSVERSION but support for 5.x will go away soon anyway...
.if ${OSVERSION} < 600000
MAKE_ARGS=      -DNOOBJ -DNOCRYPT -DNO_OPENSSL
.else
MAKE_ARGS=      -DNO_OBJ -DNO_CRYPT -DNO_OPENSSL
.endif

pre-configure:
    @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
        -e 's,%%MANPREFIX%%,${MANPREFIX},g' \
        ${FILESDIR}/Makefile.inc > ${WRKDIR}/Makefile.inc

deinstall:
    @if ${PKG_INFO} -e ${PKGNAME}; then \
        ${PKG_DELETE} -f ${PKGNAME}; \
    else \
        ${ECHO_MSG} "===> ${PKGNAME} not installed; skipping"; \
    fi
    @${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}

.include <bsd.port.post.mk>