freebsd-ports/sysutils/penv/Makefile
Peter Pentchev de8a30b7f5 Add penv-1.0pre2.
penv - 'program environment' or 'ports environment' - is a simple
utility that executes a given command after setting some environment
variables corresponding to the current directory.  This makes it
much easier to keep persistent environment settings for building
the same ports over and over again.

For example, the following series of commands:

$ echo cp1251 > /var/db/penv/databases/mysql323-server/WITH_CHARSET
$ echo all > /var/db/penv/databases/mysql323-server/WITH_XCHARSET

..allows a simple way to build the MySQL-3.23 server with the same
character set configuration every time by doing:

[root@ringworld:/usr/ports/databases/mysql323-server]# penv make

For more information, see the penv.1 manual page and the sample
configuration file in the penv distribution.
2001-08-27 17:17:17 +00:00

47 lines
1 KiB
Makefile

# New ports collection makefile for: penv
# Date created: 5 August 2001
# Whom: roam@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= penv
PORTVERSION= 1.0.b2
CATEGORIES= sysutils
MASTER_SITES= http://devel.ringlet.net/sysutils/penv/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/pre/}
MAINTAINER= roam@FreeBSD.org
RUN_DEPENDS= envdir:${PORTSDIR}/sysutils/daemontools
MAN1= penv.1
MANCOMPRESSED= yes
CFLAGS_COMPAT= -DHAVE_STRLCPY -DHAVE_FGETLN
MAKE_ENV+= CFLAGS_COMPAT="${CFLAGS_COMPAT}"
.if !defined(NO_RELEASE)
MAKE_ENV+= RELEASE=yes
.endif
DBDIR?= /var/db/${PORTNAME}
PREFIXCONF= penv.1 penv.conf.default
DBCONF= pathnames.h penv.1 penv.conf.default
post-patch:
${PERL} -pi.pfx -e "s,/usr/local,${PREFIX},g" \
${PREFIXCONF:S,^,${WRKSRC}/,}
${PERL} -pi.dbdir -e "s,/var/db/penv,${DBDIR},g" \
${DBCONF:S,^,${WRKSRC}/,}
post-install:
${MKDIR} ${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/penv.conf.default ${PREFIX}/etc
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}/html
.endif
.include <bsd.port.mk>