freebsd-ports/sysutils/portmanager/Makefile
Marcus Alves Grando 13f5e482a0 Don't need USE_GMAKE [1]
Bump PORTREVISION
Use OPTIONS
Use post-patch instead post-configure
Change PACKAGE_VERSION only if PORTREVISION != 0

PR:		87833 [1]
Submitted by:	Helge Oldach <portmanageroct05@oldach.net> [1]
2005-10-24 02:13:16 +00:00

71 lines
1.9 KiB
Makefile

# 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>