Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.23 2017/04/10 11:46:33 sthen Exp $
  2. COMMENT= qt home accounting program
  3. DISTNAME= qhacc-3.4
  4. REVISION= 5
  5. CATEGORIES= productivity x11
  6. HOMEPAGE= http://qhacc.sourceforge.net/
  7. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qhacc/}
  8. MAINTAINER= Marc Espie <espie@openbsd.org>
  9. SO_VERSION= 0.0
  10. # NOTE: Must bump minor version if any shlib's are removed from the
  11. # components dir to avoid pkg_add -r issues.
  12. .for _lib in acct arcio aves balances budget cliimpio dbbase deltas \
  13. doublebargraph doublelinegraph extprgio filedbio graphbase journal mbudget \
  14. monthlygraph nativedbio payee piegraph profitloss qhacc qhaccext qhaccutils \
  15. qifio shares singlebargraph singlelinegraph tbal trans upgradeio xmlio
  16. SHARED_LIBS+= ${_lib} ${SO_VERSION}
  17. .endfor
  18. # GPLv2+
  19. PERMIT_PACKAGE_CDROM= Yes
  20. WANTLIB += GL ICE SM X11 X11-xcb Xau Xcursor Xdamage Xdmcp Xext Xfixes
  21. WANTLIB += Xft Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm c drm expat
  22. WANTLIB += fontconfig freetype glapi jpeg lcms m mng png pthread
  23. WANTLIB += pthread-stubs ${LIBCXX} xcb xcb-dri2 xcb-glx z
  24. MODULES= x11/qt3
  25. MAKE_ENV= QTDIR=${MODQT_LIBDIR} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
  26. MAKE_FLAGS= QTLIBDIR=${MODQT_LIBDIR} QTINCDIR=${MODQT_INCDIR}
  27. CONFIGURE_ENV= QTDIR=${MODQT_LIBDIR} \
  28. CPPFLAGS="-I${LOCALBASE}/include" \
  29. LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" \
  30. LIBQVERSION=${SO_VERSION}
  31. CONFIGURE_STYLE= gnu
  32. CONFIGURE_ARGS+= ${MODQT_CONFIGURE_ARGS}
  33. DOCDIR= ${PREFIX}/share/doc/qhacc
  34. post-install:
  35. ${INSTALL_DATA_DIR} ${DOCDIR}
  36. cd ${WRKSRC} && ${INSTALL_DATA} FILE_FORMAT ${DOCDIR}
  37. .include <bsd.port.mk>