2002-02-19 09:35:58 +01:00
|
|
|
# New ports collection makefile for: PostgreSQL JDBC
|
|
|
|
# Date created: January 14, 2002
|
|
|
|
# Whom: Palle Girgensohn <girgen@partitur.se>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-01-31 01:20:25 +01:00
|
|
|
PORTNAME= postgresql
|
2006-12-27 12:09:41 +01:00
|
|
|
PORTVERSION= 8.2.504
|
2005-02-11 01:10:59 +01:00
|
|
|
DISTVERSIONSUFFIX=.src
|
2007-01-10 20:36:50 +01:00
|
|
|
PORTREVISION= 1
|
2002-02-19 09:35:58 +01:00
|
|
|
CATEGORIES= databases java
|
2005-02-11 01:10:59 +01:00
|
|
|
MASTER_SITES= http://jdbc.postgresql.org/download/
|
2003-09-04 14:03:58 +02:00
|
|
|
PKGNAMESUFFIX= -jdbc
|
2005-02-11 01:10:59 +01:00
|
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION:C/.([0-9][0-9][0-9]*)/-\1/g}${DISTVERSIONSUFFIX}
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2004-12-06 04:59:56 +01:00
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The Java JDBC implementation for PostgreSQL
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2005-02-11 01:10:59 +01:00
|
|
|
DIST_SUBDIR= postgresql
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2005-02-11 01:10:59 +01:00
|
|
|
USE_ANT= yes
|
2005-01-31 01:20:25 +01:00
|
|
|
USE_JAVA= yes
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2005-02-11 01:10:59 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/.pkg-message
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2005-02-11 01:10:59 +01:00
|
|
|
post-patch:
|
2005-11-10 03:41:43 +01:00
|
|
|
${REINPLACE_CMD} 's,/usr/local/pgsql/share/java,${JAVAJARDIR},' ${WRKSRC}/README
|
2005-02-11 01:10:59 +01:00
|
|
|
|
|
|
|
do-install:
|
2005-11-10 03:41:43 +01:00
|
|
|
@- ${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar ${JAVAJARDIR}/postgresql.jar ;\
|
2005-02-11 01:10:59 +01:00
|
|
|
${MKDIR} -m 0755 ${DOCSDIR} ;\
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
|
|
|
${DOCSDIR}/README-jdbc
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2005-02-11 01:10:59 +01:00
|
|
|
post-install:
|
2005-11-10 03:41:43 +01:00
|
|
|
@ ${SED} -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \
|
|
|
|
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|g" \
|
2005-02-11 01:10:59 +01:00
|
|
|
< ${PKGDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|