blob: 481d74ed6fec15ca2e1e20283dceb3dfa1d8201d (
plain)
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
|
# $NetBSD: Makefile,v 1.19 2007/11/17 12:04:11 rillig Exp $
PKGNAME= unixodbc-${ODBC_BASE_VERS}
COMMENT= ODBC 2.x/3.x driver manager
CONFLICTS+= iodbc-[0-9]*
.include "../../databases/unixodbc/Makefile.common"
USE_TOOLS+= flex yacc # to get libodbctxt.la
CONFIGURE_ARGS+= --disable-gui
PLIST_SUBST+= UNIXODBC_DRIVERS_DIR=${UNIXODBC_DRIVERS_DIR:Q}
FILES_SUBST+= UNIXODBC_DRIVERS_DIR=${UNIXODBC_DRIVERS_DIR:Q}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/odbc.ini ${PKG_SYSCONFDIR}/odbc.ini
OWN_DIRS= ${PKG_SYSCONFDIR}/ODBCDataSources
post-patch: fix-driver-installation
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/odbc.ini
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+= -e 's,@UNIXODBC_DRIVERS_DIR@,${UNIXODBC_DRIVERS_DIR},g'
SUBST_STAGE.paths= post-patch
post-extract:
${CP} ${FILESDIR}/odbcinst.ini.in ${WRKDIR}/odbc.ini
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKDIR}/odbc.ini ${EGDIR}/odbc.ini
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|