Set --includedir to avoid conflict with unixodbc, adjust BUILDLINK_INCDIRSdiff -r1.18 -r1.19 pkgsrc/databases/iodbc/Makefile
(abs)
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.18 2010/06/25 22:06:47 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.19 2012/03/15 12:54:09 abs Exp $ | |
2 | 2 | |||
3 | DISTNAME= libiodbc-3.52.7 | 3 | DISTNAME= libiodbc-3.52.7 | |
4 | PKGNAME= ${DISTNAME:S/^lib//} | 4 | PKGNAME= ${DISTNAME:S/^lib//} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= databases | 6 | CATEGORIES= databases | |
6 | MASTER_SITES= http://www.iodbc.org/downloads/iODBC/ | 7 | MASTER_SITES= http://www.iodbc.org/downloads/iODBC/ | |
7 | 8 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.iodbc.org/ | 10 | HOMEPAGE= http://www.iodbc.org/ | |
10 | COMMENT= ODBC 3.x driver manager | 11 | COMMENT= ODBC 3.x driver manager | |
11 | LICENSE= gnu-lgpl-v2 | 12 | LICENSE= gnu-lgpl-v2 | |
12 | 13 | |||
13 | CONFLICTS+= unixodbc-[0-9]* | |||
14 | ||||
15 | PKG_DESTDIR_SUPPORT= user-destdir | 14 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | 15 | |||
17 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
18 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
19 | CONFIGURE_ARGS+= --disable-gui | 18 | CONFIGURE_ARGS+= --disable-gui | |
19 | CONFIGURE_ARGS+= --includedir=${PREFIX}/include/iodbc | |||
20 | CONFIGURE_ARGS+= --with-iodbc-inidir=${PKG_SYSCONFDIR} | 20 | CONFIGURE_ARGS+= --with-iodbc-inidir=${PKG_SYSCONFDIR} | |
21 | 21 | |||
22 | DL_AUTO_VARS= yes | 22 | DL_AUTO_VARS= yes | |
23 | 23 | |||
24 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | 24 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | |
25 | CONF_FILES= ${EGDIR}/odbc.ini ${PKG_SYSCONFDIR}/odbc.ini | 25 | CONF_FILES= ${EGDIR}/odbc.ini ${PKG_SYSCONFDIR}/odbc.ini | |
26 | 26 | |||
27 | post-install: | 27 | post-install: | |
28 | ${INSTALL_DATA} ${WRKSRC}/etc/odbc.ini.sample \ | 28 | ${INSTALL_DATA} ${WRKSRC}/etc/odbc.ini.sample \ | |
29 | ${DESTDIR}${EGDIR}/odbc.ini | 29 | ${DESTDIR}${EGDIR}/odbc.ini | |
30 | 30 | |||
31 | .include "../../mk/dlopen.buildlink3.mk" | 31 | .include "../../mk/dlopen.buildlink3.mk" | |
32 | .include "../../mk/pthread.buildlink3.mk" | 32 | .include "../../mk/pthread.buildlink3.mk" |
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2009/06/14 17:43:16 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2012/03/15 12:54:09 abs Exp $ | |
2 | bin/iodbc-config | 2 | bin/iodbc-config | |
3 | bin/iodbctest | 3 | bin/iodbctest | |
4 | bin/iodbctestw | 4 | bin/iodbctestw | |
5 | include/iodbcext.h | 5 | include/iodbc/iodbcext.h | |
6 | include/iodbcinst.h | 6 | include/iodbc/iodbcinst.h | |
7 | include/iodbcunix.h | 7 | include/iodbc/iodbcunix.h | |
8 | include/isql.h | 8 | include/iodbc/isql.h | |
9 | include/isqlext.h | 9 | include/iodbc/isqlext.h | |
10 | include/isqltypes.h | 10 | include/iodbc/isqltypes.h | |
11 | include/odbcinst.h | 11 | include/iodbc/odbcinst.h | |
12 | include/sql.h | 12 | include/iodbc/sql.h | |
13 | include/sqlext.h | 13 | include/iodbc/sqlext.h | |
14 | include/sqltypes.h | 14 | include/iodbc/sqltypes.h | |
15 | include/sqlucode.h | 15 | include/iodbc/sqlucode.h | |
16 | lib/libiodbc.la | 16 | lib/libiodbc.la | |
17 | lib/libiodbcinst.la | 17 | lib/libiodbcinst.la | |
18 | lib/libodbc.a | 18 | lib/libodbc.a | |
19 | lib/libodbc.so | 19 | lib/libodbc.so | |
20 | lib/pkgconfig/libiodbc.pc | 20 | lib/pkgconfig/libiodbc.pc | |
21 | man/man1/iodbc-config.1 | 21 | man/man1/iodbc-config.1 | |
22 | man/man1/iodbctest.1 | 22 | man/man1/iodbctest.1 | |
23 | man/man1/iodbctestw.1 | 23 | man/man1/iodbctestw.1 | |
24 | share/examples/iodbc/Makefile | 24 | share/examples/iodbc/Makefile | |
25 | share/examples/iodbc/iodbctest.c | 25 | share/examples/iodbc/iodbctest.c | |
26 | share/examples/iodbc/odbc.ini | 26 | share/examples/iodbc/odbc.ini |
@@ -1,18 +1,19 @@ | @@ -1,18 +1,19 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.8 2009/03/20 19:24:05 joerg Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.9 2012/03/15 12:54:09 abs Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= iodbc | 3 | BUILDLINK_TREE+= iodbc | |
4 | 4 | |||
5 | .if !defined(IODBC_BUILDLINK3_MK) | 5 | .if !defined(IODBC_BUILDLINK3_MK) | |
6 | IODBC_BUILDLINK3_MK:= | 6 | IODBC_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.iodbc+= iodbc>=3.52.3 | 8 | BUILDLINK_API_DEPENDS.iodbc+= iodbc>=3.52.3 | |
9 | BUILDLINK_INCDIRS.iodbc?= ${PG_SUBPREFIX}/include | |||
9 | BUILDLINK_PKGSRCDIR.iodbc?= ../../databases/iodbc | 10 | BUILDLINK_PKGSRCDIR.iodbc?= ../../databases/iodbc | |
10 | 11 | |||
11 | # ODBC drivers don't need these bits, but ODBC clients do. | 12 | # ODBC drivers don't need these bits, but ODBC clients do. | |
12 | .if !defined(ODBC_DRIVER) | 13 | .if !defined(ODBC_DRIVER) | |
13 | . include "../../mk/dlopen.buildlink3.mk" | 14 | . include "../../mk/dlopen.buildlink3.mk" | |
14 | . include "../../mk/pthread.buildlink3.mk" | 15 | . include "../../mk/pthread.buildlink3.mk" | |
15 | .endif | 16 | .endif | |
16 | .endif # IODBC_BUILDLINK3_MK | 17 | .endif # IODBC_BUILDLINK3_MK | |
17 | 18 | |||
18 | BUILDLINK_TREE+= -iodbc | 19 | BUILDLINK_TREE+= -iodbc |