Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # $OpenBSD: Makefile,v 1.31 2017/06/03 16:24:05 steven Exp $
  2. V = 0.9.0
  3. COMMENT-main = mysql driver for libdbi
  4. COMMENT-pgsql = pgsql driver for libdbi
  5. COMMENT-sqlite = sqlite driver for libdbi
  6. COMMENT-sqlite3 = sqlite3 driver for libdbi
  7. COMMENT-freetds = freetds driver for libdbi
  8. DISTNAME = libdbi-drivers-$V
  9. PKGNAME-main = libdbi-drivers-mysql-${V:S/-/./}
  10. PKGNAME-pgsql = libdbi-drivers-pgsql-${V:S/-/./}
  11. PKGNAME-sqlite = libdbi-drivers-sqlite-${V:S/-/./}
  12. PKGNAME-sqlite3 = libdbi-drivers-sqlite3-${V:S/-/./}
  13. PKGNAME-freetds = libdbi-drivers-freetds-${V:S/-/./}
  14. CATEGORIES = databases
  15. HOMEPAGE = http://libdbi-drivers.sourceforge.net/
  16. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=libdbi-drivers/}
  17. MULTI_PACKAGES = -main -pgsql -sqlite -sqlite3 -freetds
  18. # LGPLv2.1
  19. PERMIT_PACKAGE_CDROM = Yes
  20. CONFIGURE_STYLE = gnu
  21. CONFIGURE_ARGS = --disable-docs \
  22. --with-dbi-incdir=${LOCALBASE}/include \
  23. --with-dbi-libdir=${LOCALBASE}/lib \
  24. --with-mysql \
  25. --with-pgsql \
  26. --with-pgsql-incdir="${LOCALBASE}/include -I${LOCALBASE}/include/postgresql" \
  27. --with-pgsql-libdir=${LOCALBASE}/lib/postgresql \
  28. --with-sqlite \
  29. --with-sqlite-incdir=${LOCALBASE}/include \
  30. --with-sqlite-libdir=${LOCALBASE}/lib \
  31. --with-sqlite3 \
  32. --with-sqlite3-incdir=${LOCALBASE}/include \
  33. --with-sqlite3-libdir=${LOCALBASE}/lib \
  34. --with-freetds \
  35. --with-freetds-incdir=${LOCALBASE}/include \
  36. --with-freetds-libdir=${LOCALBASE}/lib
  37. WANTLIB-main = crypto m pthread ssl ${LIBCXX} z mysqlclient dbi
  38. LIB_DEPENDS-main = databases/mariadb \
  39. databases/libdbi
  40. RUN_DEPENDS-main =
  41. WANTLIB-pgsql = m pq dbi crypto ssl
  42. LIB_DEPENDS-pgsql = databases/postgresql \
  43. databases/libdbi
  44. RUN_DEPENDS-pgsql =
  45. WANTLIB-sqlite = m sqlite dbi
  46. LIB_DEPENDS-sqlite = databases/sqlite \
  47. databases/libdbi
  48. RUN_DEPENDS-sqlite =
  49. WANTLIB-sqlite3 = m pthread sqlite3 dbi
  50. LIB_DEPENDS-sqlite3 = databases/libdbi \
  51. databases/sqlite3
  52. RUN_DEPENDS-sqlite3 =
  53. WANTLIB-freetds = ct dbi iconv m pthread ffi gcrypt gmp gnutls
  54. WANTLIB-freetds += gpg-error hogweed idn2 intl nettle p11-kit tasn1 z
  55. WANTLIB-freetds += unistring
  56. LIB_DEPENDS-freetds = databases/freetds \
  57. databases/libdbi
  58. TEST_IS_INTERACTIVE =Yes
  59. TEST_DEPENDS = databases/libdbi-drivers,-main \
  60. databases/libdbi-drivers,-pgsql \
  61. databases/libdbi-drivers,-sqlite \
  62. databases/libdbi-drivers,-sqlite3 \
  63. databases/libdbi-drivers,-freetds \
  64. databases/mariadb,-server \
  65. databases/postgresql,-server
  66. pre-configure:
  67. chmod +x ${WRKSRC}/tests/test_freetds.sh
  68. post-install:
  69. .for d in mysql pgsql sqlite sqlite3
  70. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libdbi-drivers/dbd_${d}
  71. ${INSTALL_DATA} ${WRKSRC}/drivers/${d}/dbd_${d}.pdf \
  72. ${PREFIX}/share/doc/libdbi-drivers
  73. ${INSTALL_DATA} ${WRKSRC}/drivers/${d}/dbd_${d}/*.html \
  74. ${PREFIX}/share/doc/libdbi-drivers/dbd_${d}
  75. .endfor
  76. .include <bsd.port.mk>