Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.14 2017/05/10 01:10:50 stu Exp $
  2. COMMENT= Tcl interface to PostgreSQL
  3. V = 1.7
  4. DISTNAME= pgtcl-${V}
  5. REVISION= 0
  6. CATEGORIES= databases
  7. HOMEPAGE= http://pgfoundry.org/projects/pgtcl/
  8. MAINTAINER= Stuart Cassoff <stwo@users.sourceforge.net>
  9. # BSD
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= http://pgfoundry.org/frs/download.php/2151/
  12. MODULES= lang/tcl
  13. LIB_DEPENDS= databases/postgresql
  14. RUN_DEPENDS= ${MODTCL_RUN_DEPENDS}
  15. BUILD_DEPENDS= ${MODTCL_BUILD_DEPENDS}
  16. WANTLIB += pq>=5 ${MODTCL_WANTLIB}
  17. CONFIGURE_STYLE= gnu
  18. CONFIGURE_ARGS= --with-tcl=${MODTCL_LIBDIR} \
  19. --libdir=${MODTCL_TCLDIR} \
  20. --with-postgres-include=${LOCALBASE}/include/postgresql \
  21. --with-postgres-lib=${LOCALBASE}/lib \
  22. --disable-threads
  23. FAKE_FLAGS = PKG_DIR='$$(PACKAGE_NAME)' INSTALL_PROGRAM='$$(INSTALL_DATA)' \
  24. PKG_HEADERS='' PKG_TCL_SOURCES=''
  25. NO_TEST= Yes
  26. WRKDIST = ${WRKDIR}/lib${DISTNAME}
  27. ALL_TARGET = binaries libraries
  28. INSTALL_TARGET =install-binaries install-libraries
  29. SEPARATE_BUILD =Yes
  30. SUBST_VARS = VER
  31. VER = ${V:S/.//g}
  32. post-install:
  33. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgtcl/html
  34. ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/pgtcl/html
  35. ${INSTALL_DATA} ${WRKSRC}/doc/libpgtcl.pdf ${PREFIX}/share/doc/pgtcl
  36. .include <bsd.port.mk>