Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # $OpenBSD: Makefile,v 1.25 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT-main= schematic and PCB editing software
  3. COMMENT-docs= documentation for the kicad library of components
  4. V= 2010-05-05
  5. S= BZR2356-stable
  6. DISTNAME= kicad-sources-${V}-${S}
  7. PKGNAME= kicad-${V:S/-//g}
  8. PKGNAME-main= kicad-${V:S/-//g}
  9. PKGNAME-docs= kicad-docs-${V:S/-//g}
  10. REVISION-main= 5
  11. REVISION-docs= 1
  12. CATEGORIES= cad
  13. HOMEPAGE= http://www.kicad-pcb.org/
  14. # LGPLv2.1
  15. PERMIT_PACKAGE_CDROM= Yes
  16. MASTER_SITES= http://iut-tice.ujf-grenoble.fr/cao/sources/old_versions/
  17. MASTER_SITES0= http://distfiles.nl/
  18. DOCDIST= doc_components-${V}-${S}.tgz
  19. DISTFILES= ${DISTNAME}.zip ${DOCDIST}:0
  20. EXTRACT_ONLY= ${DISTNAME}.zip
  21. DIST_SUBDIR= kicad
  22. MULTI_PACKAGES= -main -docs
  23. MODULES= devel/cmake \
  24. devel/gettext
  25. # kicad includes some boost headers, but somehow
  26. # randomly fails if boost is present then junked
  27. BUILD_DEPENDS = devel/boost
  28. RUN_DEPENDS-main= cad/kicad-library \
  29. devel/desktop-file-utils \
  30. misc/shared-mime-info \
  31. x11/gtk+3,-guic
  32. LIB_DEPENDS= x11/wxWidgets
  33. WANTLIB-main += ${WANTLIB} GL GLU c m pthread ${LIBCXX}
  34. WANTLIB-main += ICE SM X11 Xext wx_base wx_base_net wx_gtk2_adv wx_gtk2_aui
  35. WANTLIB-main += wx_gtk2_core wx_gtk2_gl wx_gtk2_html z
  36. WANTLIB-docs=
  37. RUN_DEPENDS-docs=
  38. LIB_DEPENDS-docs=
  39. PKG_ARCH-docs= *
  40. WRKDIST= ${WRKDIR}/kicad-sources-${V}-${S:S/-stable//}
  41. MAKE_FLAGS= CC=${CXX} CXX=${CXX} LD=${CXX} \
  42. CXXFLAGS="${CXXFLAGS}" X11BASE=${X11BASE}
  43. LANGS= ca cs de es fi fr hu it ko nl pl pt ru sl sv zh_CN
  44. pre-configure:
  45. ${SUBST_CMD} ${WRKSRC}/CMakeLists.txt ${WRKSRC}/common/gestfich.cpp
  46. post-build:
  47. .for l in ${LANGS}
  48. cd ${WRKSRC}/internat/$l && rm -f *.mo && \
  49. msgfmt -o kicad.mo kicad.po
  50. .endfor
  51. post-install:
  52. .for l in ${LANGS}
  53. ${INSTALL_DATA_DIR} ${PREFIX}/share/locale/$l/LC_MESSAGES
  54. ${INSTALL_DATA} ${WRKSRC}/internat/$l/kicad.mo \
  55. ${PREFIX}/share/locale/$l/LC_MESSAGES
  56. .endfor
  57. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kicad/library
  58. cd ${PREFIX}/share/doc/kicad/library && \
  59. tar -xzf ${FULLDISTDIR}/${DOCDIST}
  60. cd ${PREFIX}/share/doc/kicad/library/doc && \
  61. mv analog_mux\&switches analog_mux_and_switches
  62. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/kicad \
  63. ${PREFIX}/share/doc/kicad
  64. .include <bsd.port.mk>