summaryrefslogtreecommitdiff
path: root/sysutils/portmanager/Makefile
blob: 71471a5ea2570a65cbe79317ed6b1135b5f713a8 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# New ports collection makefile for:	portmanager
# Date created: 	April 23, 2004
# Whom: 		Michael C. Shultz <reso3w83@verizon.net>
#
# $FreeBSD$
#

PORTNAME=	portmanager
PORTVERSION=	0.3.0
PORTREVISION=	1
#-----------------------------------------
#for local use, remove before submitting PR
CATEGORIES=		sysutils
#CATEGORIES=		local/sysutils
#VALID_CATEGORIES+=	${CATEGORIES}	# for FreeBSD to accept our local category
#-----------------------------------------
MASTER_SITES=		http://portmanager.sunsite.dk/distfiles/	\
			${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	portmanager

MAINTAINER=		ports@FreeBSD.org
COMMENT=		FreeBSD installed ports status and safe update utility

MAN1=			portmanager.1
MAN3=			libMG.3 MGdbAdd.3 MGdbCreate.3 MGdbDelete.3 \
			MGdbGetRecordQty.3 MGdbGoTop.3 MGdbSeek.3

GNU_CONFIGURE=		yes
USE_REINPLACE=		yes
INSTALLS_SHLIB=		yes
INSTALL_TARGET=		install info
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}

#
# if --with-bin=something then withvar=${PREFIX} + something
# else defaults to withvar=${PREFIX} + /bin
#
# so --with-bindir=/bin will become ${PREFIX}/bin at configure
# time.
#
CONFIGURE_ARGS=	--with-prefix=${PREFIX} --with-bindir=/bin --with-tempdir=/tmp \
		--with-etcdir=/etc/portmanager --with-pkgdbdir=/var/db/pkg \
		--with-portsdir=${PORTSDIR} --with-sharedir=/share/portmanager

OPTIONS=	DEBUG	"Enables debug support and all compile warning" off

.include <bsd.port.pre.mk>

#
# In FreeBSD 6.0 dumps core when compiled WITHOUT debug symbols
# so for a temp fix just making the WITH_DEBUG non optional.
#
.if ${OSVERSION} >= 600000
WITH_DEBUG=	YES
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--with-debug=yes
.endif

post-patch:
.if ${PORTREVISION} != 0
	@${REINPLACE_CMD} -e	\
		's|VERSION "${PORTVERSION}"|VERSION "${PORTVERSION}_${PORTREVISION}"|g'	\
		 ${WRKSRC}/externVars.h.in
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>