pkgsrc/databases/odbc-postgresql/Makefile

27 lines
776 B
Makefile

# $NetBSD: Makefile,v 1.15 2010/01/17 12:02:09 wiz Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "Makefile.common"
PKGNAME= odbc-postgresql-${BASE_VERS}
PKGREVISION= 3
COMMENT= ODBC interface to PostgreSQL
CONFIGURE_ARGS+= --with-odbcinst=${PKG_SYSCONFDIR:Q}
post-extract:
set -e; \
cd ${WRKSRC}; \
[ ! -d src/backend/port/dynloader ] || ( \
cd src/backend/port/dynloader; \
cp freebsd.c dragonfly.c; \
cp freebsd.h dragonfly.h; \
); \
[ ! -d src/template ] \
|| touch src/template/dragonfly; \
[ ! -d src/include/port ] \
|| cp src/include/port/freebsd.h src/include/port/dragonfly.h; \
[ ! -d src/makefiles ] \
|| cp src/makefiles/Makefile.freebsd src/makefiles/Makefile.dragonfly
.include "../../mk/bsd.pkg.mk"