2002-08-27 01:14:23 +02:00
|
|
|
# New ports collection makefile for: PostgreSQL docs
|
|
|
|
# Date created: August 26, 2002
|
2003-01-04 04:36:53 +01:00
|
|
|
# Whom: Palle Girgensohn <girgen@pingpong.net>
|
2002-08-27 01:14:23 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
PORTNAME= postgresql
|
2003-12-04 13:00:49 +01:00
|
|
|
PORTREVISION= 0
|
2002-08-27 01:14:23 +02:00
|
|
|
PKGNAMESUFFIX= -docs
|
|
|
|
|
2004-12-06 04:59:56 +01:00
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The PostgreSQL documentation set
|
2002-08-27 01:14:23 +02:00
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
|
|
|
|
|
|
|
DEFAULT_PGSQL_VER?=74
|
|
|
|
|
|
|
|
# can't include <bsd.port.pre.mk> in a slave port
|
|
|
|
# so set these instead:
|
|
|
|
LOCALBASE?= ${DESTDIR}/usr/local
|
|
|
|
SED?= /usr/bin/sed
|
|
|
|
|
|
|
|
# Setting/finding PostgreSQL version we want.
|
|
|
|
.if exists(${LOCALBASE}/bin/pg_config)
|
|
|
|
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
|
|
|
.else
|
|
|
|
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
|
|
|
.endif
|
|
|
|
|
2003-12-04 13:00:49 +01:00
|
|
|
DISTFILES= postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
|
2002-08-27 01:14:23 +02:00
|
|
|
NO_BUILD= YES
|
2005-01-31 01:35:55 +01:00
|
|
|
SLAVE_ONLY= YES
|
|
|
|
PATCHDIR= mustnotexist
|
2002-08-27 01:14:23 +02:00
|
|
|
|
|
|
|
do-install:
|
2003-09-04 13:16:38 +02:00
|
|
|
@ $(MKDIR) ${DOCSDIR}/html; \
|
2002-08-27 01:14:23 +02:00
|
|
|
${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \
|
2003-12-04 13:00:49 +01:00
|
|
|
( cd ${DOCSDIR}/html && $(TAR) xf - )
|
2002-08-27 01:14:23 +02:00
|
|
|
|
2003-02-10 05:54:18 +01:00
|
|
|
post-install:
|
|
|
|
@ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \
|
2003-12-04 13:00:49 +01:00
|
|
|
${SED} "s,^,${DOCSDIR:S,^${PREFIX}/,,}/html/," >> ${TMPPLIST} ;\
|
|
|
|
${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$ | \
|
|
|
|
${SED} "s,^,@dirrm\ ," >> ${TMPPLIST} ;\
|
|
|
|
${ECHO} @dirrm ${DOCSDIR:S,^${PREFIX}/,,}/html >> ${TMPPLIST} ;\
|
|
|
|
${ECHO} "@unexec rmdir %D/${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST}
|
2003-02-10 05:54:18 +01:00
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
.include "${MASTERDIR}/Makefile"
|