Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # $OpenBSD: Makefile,v 1.2 2016/12/25 14:34:39 zhuk Exp $
  2. COMMENT = PostgreSQL Database Modeler
  3. VERSION = 0.8.2
  4. DISTNAME = pgmodeler-${VERSION}
  5. REVISION = 0
  6. GH_ACCOUNT = pgmodeler
  7. GH_PROJECT = pgmodeler
  8. GH_TAGNAME = v${VERSION}
  9. SHARED_LIBS += objrenderer 0.0 # 1.0
  10. SHARED_LIBS += parsers 0.0 # 1.0
  11. SHARED_LIBS += pgconnector 0.0 # 1.0
  12. SHARED_LIBS += pgmodeler 0.0 # 1.0
  13. SHARED_LIBS += pgmodeler_ui 0.0 # 1.0
  14. SHARED_LIBS += utils 0.0 # 1.0
  15. CATEGORIES = databases
  16. HOMEPAGE = http://www.pgmodeler.com.br/
  17. MAINTAINER = Ingo Feinerer <feinerer@logic.at>
  18. # GPLv3 only
  19. PERMIT_PACKAGE_CDROM = Yes
  20. WANTLIB += GL Qt5Core Qt5Gui Qt5Network Qt5PrintSupport Qt5Svg
  21. WANTLIB += Qt5Widgets X11 Xext c execinfo m pq pthread xml2
  22. MODULES = devel/qmake \
  23. x11/qt5
  24. MODQMAKE_PROJECTS = pgmodeler.pro tests/tests.pro
  25. MODQMAKE_ARGS = DOCDIR=${PREFIX}/share/doc/pgmodeler \
  26. NO_UPDATE_CHECK=1 \
  27. PREFIX=${PREFIX} \
  28. SAMPLESDIR=${PREFIX}/share/examples/pgmodeler
  29. LIB_DEPENDS = databases/postgresql \
  30. x11/qt5/qtsvg
  31. SEPARATE_BUILD = No
  32. USE_GMAKE = Yes
  33. post-patch:
  34. sed -i -e 's/linux/unix/' \
  35. -e 's/^ BUILDNUM=.*/ BUILDNUM=${VERSION}/' ${WRKSRC}/pgmodeler.pri
  36. post-install:
  37. rm -Rf ${PREFIX}/bin/tests
  38. ${INSTALL_DATA_DIR} ${PREFIX}/lib/pgmodeler/plugins
  39. do-test:
  40. cd ${WRKBUILD}; \
  41. for d in lib*/; do \
  42. LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$${LD_LIBRARY_PATH}:}$$PWD/$${d%/}; \
  43. done; \
  44. export LD_LIBRARY_PATH; \
  45. ln -sf ../../../schemas tests/src/databasemodeltest/schemas; \
  46. okay=true; \
  47. for t in ${WRKBUILD}/tests/src/*test; do \
  48. (cd $$t; ./*test) || okay=false; \
  49. done; \
  50. $$okay
  51. .include <bsd.port.mk>