aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-odbc/Makefile
blob: 57a825586f383be594a51bd3db794b1843891a6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $FreeBSD$

PORTNAME=   postgresql
PORTVERSION=    09.05.0200
CATEGORIES= databases
MASTER_SITES=   PGSQL/odbc/versions/src
PKGNAMESUFFIX=  -odbc
DISTNAME=   psqlodbc-${PORTVERSION}
DIST_SUBDIR=    postgresql

MAINTAINER= bofh@FreeBSD.org
COMMENT=    PostgreSQL ODBC driver

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/license.txt

LIB_DEPENDS=    libodbc.so:databases/unixODBC

USES=       libtool pgsql
USE_OPENSSL=    yes
USE_LDCONFIG=   yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-unixodbc=${LOCALBASE}
INSTALL_TARGET= install-strip

DOCSDIR=    ${PREFIX}/share/doc/postgresql/odbc
EXAMPLESDIR=    ${PREFIX}/share/examples/postgresql/odbc

PORTDOCS=   *
PORTEXAMPLES=   *
PLIST_FILES=    lib/psqlodbcw.so

OPTIONS_DEFINE= DOCS EXAMPLES

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.sql ${STAGEDIR}${EXAMPLESDIR}/
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>