blob: d62e40fed9d8edd19385fbc601171dbb5ba621a0 (
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
|
# Created by: clive@FreeBSD.org
# $FreeBSD$
PORTNAME= DBD-ODBC
PORTVERSION= 1.56
CATEGORIES= databases perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= DBD module interfacing the ODBC databases
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-DBI>=1.609:databases/p5-DBI
RUN_DEPENDS:= ${BUILD_DEPENDS}
LIB_DEPENDS= libodbc.so:databases/unixODBC
OPTIONS_DEFINE= DOCS
PORTSCOUT= limit:^[0-9\.]*$$
USES= perl5
USE_PERL5= configure
CONFIGURE_ARGS= -o ${LOCALBASE}
PORTDOCS= Changes README README.adabas README.informix
post-patch:
@${REINPLACE_CMD} -e '/my $$myodbc/ s|q{}|"unixodbc"|' ${WRKSRC}/Makefile.PL
post-configure:
@${REINPLACE_CMD} -e 's|-lodbc|& -pthread|g' ${WRKSRC}/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/DBD/ODBC/ODBC.so
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|