diff options
author | joerg <joerg> | 2006-01-06 18:36:52 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-06 18:36:52 +0000 |
commit | a64fd1d9a3af6d4883a7a79db555c21418d00e6d (patch) | |
tree | ec8223158ba91a2e6eb8cbde469f604fe525fd8f /databases/unixodbc | |
parent | 63dbf8ce2cba9b984ef43a3b77e248c9504a09ae (diff) | |
download | pkgsrc-a64fd1d9a3af6d4883a7a79db555c21418d00e6d.tar.gz |
Use SUBST framework.
Diffstat (limited to 'databases/unixodbc')
-rw-r--r-- | databases/unixodbc/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/databases/unixodbc/Makefile b/databases/unixodbc/Makefile index e5fe64a273e..939804dd9e6 100644 --- a/databases/unixodbc/Makefile +++ b/databases/unixodbc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2005/12/29 06:21:36 jlam Exp $ +# $NetBSD: Makefile,v 1.17 2006/01/06 18:36:52 joerg Exp $ PKGNAME= unixodbc-${ODBC_BASE_VERS} PKGREVISION= 5 @@ -22,9 +22,14 @@ OWN_DIRS= ${PKG_SYSCONFDIR}/ODBCDataSources post-patch: fix-driver-installation -pre-install: - ${SED} ${FILES_SUBST_SED} ${FILESDIR}/odbcinst.ini.in \ - > ${WRKDIR}/odbcinst.ini +SUBST_CLASSES+= paths +SUBST_FILES.paths= ${WRKDIR}/odbcinst.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}/odbcinst.ini post-install: ${INSTALL_DATA_DIR} ${EGDIR} |