blob: 79b1fb370102fe3e00e3477da5de41dd283c141f (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# ex:ts=8
# New ports collection makefile for: libdbi
# Date created: Nov 4, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libdbi
PORTVERSION= 0.6.7
PORTREVISION= 1
CATEGORIES= databases devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://linux.ucla.edu/~dap24/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= seanc@FreeBSD.org
COMMENT= Database Independent Abstraction Layer for C
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
.if defined(WITH_MYSQL)
LIB_DEPENDS+= mysqlclient:${PORTSDIR}/databases/mysql323-client
CONFIGURE_ARGS+= --with-mysql \
--with-mysql-incdir=${LOCALBASE}/include \
--with-mysql-libdir=${LOCALBASE}/lib/mysql
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_PGSQL)
POSTGRESQL_PORT?= databases/postgresql7
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
CONFIGURE_ARGS+= --with-pgsql
PLIST_SUB+= PGSQL=""
.else
PLIST_SUB+= PGSQL="@comment "
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf \
${DOCSDIR}
@${MKDIR} ${DOCSDIR}/driver-guide
${INSTALL_DATA} ${WRKSRC}/doc/driver-guide/*.html \
${DOCSDIR}/driver-guide
@${MKDIR} ${DOCSDIR}/programmers-guide
${INSTALL_DATA} ${WRKSRC}/doc/programmers-guide/*.html \
${DOCSDIR}/programmers-guide
.endif
.include <bsd.port.mk>
|