openbsd-ports/databases/iodbc/Makefile
2019-06-03 16:06:50 +00:00

59 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.44 2019/06/03 16:06:50 sthen Exp $
COMMENT-main= ODBC 3.x driver manager
COMMENT-admin= ODBC 3.x driver manager admin application
V= 3.52.12
DISTNAME= libiodbc-$V
PKGNAME= iodbc-$V
PKGNAME-main= iodbc-$V
PKGNAME-admin= iodbc-admin-$V
REVISION = 0
CATEGORIES= databases
SHARED_LIBS += iodbcinst 3.15
SHARED_LIBS += iodbc 3.16
SHARED_LIBS += iodbcadm 3.15
SHARED_LIBS += drvproxy 3.15
HOMEPAGE= http://www.iodbc.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=iodbc/}
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# Dual licensed: BSD or LGPLv2
PERMIT_PACKAGE= yes
WANTLIB-main += c
WANTLIB-admin += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB-admin += Xrandr Xrender atk-1.0 c cairo expat ffi fontconfig
WANTLIB-admin += freetype fribidi gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB-admin += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
WANTLIB-admin += harfbuzz iconv intl iodbc iodbcinst m pango-1.0 pangocairo-1.0
WANTLIB-admin += pangoft2-1.0 pcre pixman-1 png pthread xcb xcb-render
WANTLIB-admin += xcb-shm z
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-iodbc-inidir="${SYSCONFDIR}/iodbc" \
--disable-libodbc
MULTI_PACKAGES= -main -admin
LIB_DEPENDS-admin= databases/iodbc,-main \
x11/gtk+2
LIB_DEPENDS-main= # empty
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/iodbc/
${SUBST_DATA} \
{${WRKSRC}/etc,${PREFIX}/share/examples/iodbc}/odbc.ini.sample \
{${WRKSRC}/etc,${PREFIX}/share/examples/iodbc}/odbcinst.ini.sample
rm -f ${PREFIX}/man/man1/iodbctestw.1
ln ${PREFIX}/man/man1/iodbctest.1 ${PREFIX}/man/man1/iodbctestw.1
.include <bsd.port.mk>