blob: e8f1ce188562a7974088ad7335da1d926db8482b (
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
72
73
74
75
76
|
# New ports collection makefile for: portmanager
# Date created: April 23, 2004
# Whom: Michael C. Shultz <ringworm@inbox.lv>
#
# $FreeBSD$
#
PORTNAME= portmanager
PORTVERSION= 0.2.2
PORTREVISION= 0
#-----------------------------------------
#for local use, remove before submitting PR
CATEGORIES= sysutils
#CATEGORIES= local/sysutils
#VALID_CATEGORIES+= ${CATEGORIES} # for FreeBSD to accept our local category
#-----------------------------------------
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= portmanager
MAINTAINER= reso3w83@verizon.net
COMMENT= FreeBSD port management software
.if defined(WITH_DEBUG)
BUILD_DEPENDS= autoheader259:${PORTSDIR}/devel/autoconf259 \
aclocal19:${PORTSDIR}/devel/automake19 \
libtoolize15:${PORTSDIR}/devel/libtool15
.endif
MAN1= portmanager.1
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
# Need INSTALL_TARGET to install /usr/local/etc/portmanager/pm-020.conf.SAMPLE
INSTALL_TARGET= install info
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
s|0.2.2|${PORTVERSION}_${PORTREVISION}|g ; \
s|%%PORTSDIR%%|${PORTSDIR}|g ; \
s|%%PKG_DBDIR%%|${PKG_DBDIR}|g' ${WRKSRC}/libPMGR/src/libPMGR.h
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
s|%%PORTSDIR%%|${PORTSDIR}|g ; \
s|%%PKG_DBDIR%%|${PKG_DBDIR}|g' ${WRKSRC}/libPMGR/src/PMGRrMakeDescribe.c
# Only way to get WITH_DEBUG build dependencies handled prior to reconfiguring
# is to use post-configure <sigh>
post-configure:
.if defined(WITH_DEBUG)
@${REINPLACE_CMD} -e 's|# BDECFLAGS=|BDECFLAGS=|g' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's|# CFLAGS=|CFLAGS=|g' ${WRKSRC}/configure.ac
cd ${WRKSRC};sh rePackage.sh;sh configure
.endif
post-install:
@${ECHO} "******************************************************"
@${ECHO} "* to compile with debug support try: *"
@${ECHO} "* make WITH_DEBUG=yes install clean *"
@${ECHO} "* *"
@${ECHO} "* portmanager commands: *"
@${ECHO} "* *"
@${ECHO} "* portmanager -h brief help screen *"
@${ECHO} "* -s list status of installed ports *"
@${ECHO} "* -u upgrade installed ports *"
@${ECHO} "* *"
@${ECHO} "* see man portmanager(1) or *"
@${ECHO} "* /usr/local/etc/portmanager/pm-020.conf *"
@${ECHO} "* for config options *"
@${ECHO} "* *"
@${ECHO} "* all feedback is welcome, send to: *"
@${ECHO} "* Michael C. Shultz reso3w83@verizon.net *"
@${ECHO} "******************************************************"
.include <bsd.port.mk>
|