freebsd-ports/databases/postgresql-jdbc/Makefile

45 lines
1 KiB
Makefile
Raw Normal View History

2013-02-18 08:38:33 +01:00
# Created by: Palle Girgensohn <girgen@partitur.se>
# $FreeBSD$
PORTNAME= postgresql
PORTVERSION= 9.2.1004
DISTVERSIONSUFFIX=.src
CATEGORIES= databases java
MASTER_SITES= http://jdbc.postgresql.org/download/
PKGNAMESUFFIX= -jdbc
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION:C/.([0-9][0-9][0-9]*)/-\1/g}${DISTVERSIONSUFFIX}
2012-03-04 18:19:59 +01:00
MAINTAINER= pgsql@FreeBSD.org
COMMENT= The Java JDBC implementation for PostgreSQL
LICENSE= BSD3CLAUSE
DIST_SUBDIR= postgresql
USE_ANT= yes
USE_JAVA= yes
PLIST_FILES= %%JAVAJARDIR%%/postgresql.jar
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
SUB_FILES= pkg-message
post-patch:
${REINPLACE_CMD} 's,/usr/local/pgsql/share/java,${JAVAJARDIR},' ${WRKSRC}/README
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
OPTIONS_SUB= yes
do-install:
@ ${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar ${STAGEDIR}${JAVAJARDIR}/postgresql.jar
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
2008-02-26 23:45:56 +01:00
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>