freebsd-ports/ports-mgmt/portdowngrade/Makefile
Philip M. Gollucci 5fbf1eecc5 - Add some missing includes to please newer versions of GCC
PR:             ports/143747
Submitted by:   Rob Farmer <rfarmer@predatorlabs.net>
Approved by:    maintainer

Feature safe:   yes
2010-02-15 23:53:42 +00:00

47 lines
1.4 KiB
Makefile

# New ports collection makefile for: portdowngrade
# Date created: 2003/02/13
# Whom: Heiner <h.eichmann@gmx.de>
#
# $FreeBSD$
#
PORTNAME= portdowngrade
PORTVERSION= 0.6
PORTREVISION= 2
CATEGORIES= ports-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= h.eichmann@gmx.de
COMMENT= Sets a port back to a previous version
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
POPT_INCLUDE= `pkg_info -xL ^popt | ${GREP} popt.h | ${SED} -e 's?/popt.h??'`
POPT_LIB= `pkg_info -xL ^popt | ${GREP} libpopt.a | ${SED} -e 's?/libpopt.a??'`
CONFIGURE_ENV= CPPFLAGS="-I${POPT_INCLUDE}" \
LIBS="-lpopt -L${POPT_LIB}"
.if defined(DEFAULT_CVS_SERVER)
CONFIGURE_ARGS+= --enable-default-server=${DEFAULT_CVS_SERVER}
.endif
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_BZIP2= yes
MAN1= portdowngrade.1
PLIST_FILES= sbin/portdowngrade
pre-everything::
.if !defined(DEFAULT_CVS_SERVER)
@${ECHO_MSG} ""
@${ECHO_MSG} "Press CTRL-C and define DEFAULT_CVS_SERVER"
@${ECHO_MSG} "(e.g. make DEFAULT_CVS_SERVER=\":pserver:anoncvs@anoncvs. ... .FreeBSD.org:/home/ncvs\" install)"
@${ECHO_MSG} "if you want to use a special CVS server as default. See"
@${ECHO_MSG} "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/anoncvs.html"
@${ECHO_MSG} "for a list of possible cvs server"
@${ECHO_MSG} ""
@sleep 3
.endif
.include <bsd.port.mk>