freebsd-ports/ports-mgmt/portdowngrade/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +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= ports@FreeBSD.org
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= LIBS="-lpopt -L${POPT_LIB}"
CPPFLAGS+= -I${POPT_INCLUDE}
.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>