Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.27 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT= Qt-based 2D CAD system
  3. V= 2.0.5.0
  4. DISTNAME= qcad-${V}-1-community.src
  5. PKGNAME= qcad-${V}
  6. REVISION= 4
  7. CATEGORIES= cad graphics
  8. HOMEPAGE= http://www.ribbonsoft.com/qcad.html
  9. # Source code is GPLv2 and data not specified
  10. PERMIT_PACKAGE_CDROM= Non-free data files
  11. PERMIT_PACKAGE_FTP= Non-free data files
  12. PERMIT_DISTFILES_FTP= Non-free data files
  13. WANTLIB= X11 Xext c m pthread ${LIBCXX}
  14. MASTER_SITES= http://www.ribbonsoft.com/archives/qcad/
  15. MODULES= x11/qt3
  16. USE_GMAKE= Yes
  17. NO_TEST= Yes
  18. PORTHOME= ${WRKDIR}
  19. MAKE_ENV+= QTDIR=${MODQT_LIBDIR} \
  20. MAKE=${MAKE_PROGRAM}
  21. SUBST_VARS= CXXFLAGS LOCALBASE MODQT_LIBDIR
  22. pre-configure:
  23. ${SUBST_CMD} ${WRKSRC}/mkspecs/defs.pro \
  24. ${WRKSRC}/qcadlib/src/engine/rs_system.h \
  25. ${WRKSRC}/qcadlib/src/engine/rs_system.cpp \
  26. ${WRKSRC}/qcad/src/qc_applicationwindow.cpp
  27. do-build:
  28. cd ${WRKBUILD}/scripts && \
  29. ${SETENV} ${MAKE_ENV} /bin/sh ./build_qcad.sh
  30. do-install:
  31. ${INSTALL_PROGRAM} ${WRKBUILD}/qcad/qcad ${PREFIX}/bin
  32. .for dir in fonts patterns qm
  33. ${INSTALL_DATA_DIR} ${PREFIX}/share/qcad/${dir}
  34. ${INSTALL_DATA} ${WRKSRC}/qcad/${dir}/* ${PREFIX}/share/qcad/${dir}
  35. .endfor
  36. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qcad
  37. ${INSTALL_DATA} ${WRKSRC}/qcad/data/* ${PREFIX}/share/examples/qcad
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qcad
  39. cd ${WRKSRC}/qcad/doc && tar cf - . | \
  40. tar -C ${PREFIX}/share/doc/qcad -xf -
  41. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/qcad/*
  42. .include <bsd.port.mk>