Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.39 2015/03/20 12:07:41 sthen Exp $
  2. COMMENT-main= ODBC 3.x driver manager
  3. COMMENT-admin= ODBC 3.x driver manager admin application
  4. V= 3.52.10
  5. DISTNAME= libiodbc-$V
  6. PKGNAME= iodbc-$V
  7. PKGNAME-main= iodbc-$V
  8. PKGNAME-admin= iodbc-admin-$V
  9. CATEGORIES= databases
  10. SHARED_LIBS += iodbcinst 3.15
  11. SHARED_LIBS += iodbc 3.16
  12. SHARED_LIBS += iodbcadm 3.15
  13. SHARED_LIBS += drvproxy 3.15
  14. HOMEPAGE= http://www.iodbc.org/
  15. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  16. # Dual licensed: BSD or LGPLv2
  17. PERMIT_PACKAGE_CDROM= yes
  18. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=iodbc/}
  19. MODULES= devel/gettext
  20. CONFIGURE_STYLE= gnu
  21. CONFIGURE_ARGS= --with-iodbc-inidir="${SYSCONFDIR}/iodbc" \
  22. --disable-libodbc
  23. MULTI_PACKAGES= -main -admin
  24. WANTLIB-main= c pthread
  25. LIB_DEPENDS-admin= ${MODGETTEXT_LIB_DEPENDS} \
  26. databases/iodbc,-main \
  27. x11/gtk+2
  28. LIB_DEPENDS-main= # empty
  29. WANTLIB-admin= ${MODGETTEXT_WANTLIB}
  30. WANTLIB-admin += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  31. WANTLIB-admin += Xrandr Xrender atk-1.0 c cairo expat ffi fontconfig
  32. WANTLIB-admin += freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
  33. WANTLIB-admin += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
  34. WANTLIB-admin += harfbuzz iodbc iodbcinst m pango-1.0 pangocairo-1.0
  35. WANTLIB-admin += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
  36. WANTLIB-admin += xcb xcb-render xcb-shm z
  37. EXDIR=${PREFIX}/share/examples/iodbc/
  38. post-install:
  39. ${INSTALL_DATA_DIR} ${EXDIR}
  40. ${SUBST_DATA} \
  41. ${WRKSRC}/etc/odbc.ini.sample ${EXDIR}/odbc.ini.sample \
  42. ${WRKSRC}/etc/odbcinst.ini.sample ${EXDIR}/odbcinst.ini.sample
  43. rm -f ${PREFIX}/man/man1/iodbctestw.1
  44. ln ${PREFIX}/man/man1/iodbctest.1 ${PREFIX}/man/man1/iodbctestw.1
  45. .include <bsd.port.mk>