Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # $OpenBSD: Makefile,v 1.28 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT= interactive electronics designing software
  3. V= 0.9.2
  4. REVISION= 1
  5. GH_ACCOUNT= fritzing
  6. GH_PROJECT= fritzing-app
  7. GH_TAGNAME= ${V}b
  8. DISTNAME= fritzing-$Vb
  9. CATEGORIES= cad
  10. DISTFILES= ${DISTNAME}.tar.gz \
  11. fritzing-parts-${GH_TAGNAME}${EXTRACT_SUFX}:0
  12. HOMEPAGE= http://fritzing.org/
  13. MAINTAINER= Aaron Bieber <abieber@openbsd.org>
  14. MASTER_SITES0= https://github.com/fritzing/fritzing-parts/archive/${GH_TAGNAME}/
  15. # Code: GPLv3+
  16. # Rest: CreativeCommons:BY-SA
  17. PERMIT_PACKAGE_CDROM = Yes
  18. MODULES= devel/qmake x11/qt4
  19. NO_TEST= Yes
  20. LIB_DEPENDS= comms/qtserialport
  21. BUILD_DEPENDS= devel/boost
  22. RUN_DEPENDS= devel/desktop-file-utils
  23. # avoid picking up /src/serialport/qt4support/serialport.prf
  24. MODQMAKE_ARGS+= QTSERIALPORT_PROJECT_ROOT=${WRKDIR}
  25. post-extract:
  26. mv ${WRKDIR}/fritzing-parts-${GH_TAGNAME}/* ${WRKSRC}/parts
  27. pre-configure:
  28. ${SUBST_CMD} ${WRKSRC}/phoenix.pro ${WRKSRC}/src/fapplication.cpp
  29. WANTLIB += ICE QtGui QtNetwork QtSql QtSvg QtXml SM X11 Xext Xi
  30. WANTLIB += Xinerama Xrender c fontconfig freetype m pthread ${LIBCXX}
  31. WANTLIB += z lib/qt4/QtSerialPort
  32. # -DLINUX_32 gets added to CFLAGS, though it's only used to figure out
  33. # if there is a newer version of the 32-bit Linux binary on the upstream
  34. # webpage. So it's safe to set it on all arches (for now).
  35. do-install:
  36. ${SUBST_PROGRAM} ${FILESDIR}/fritzing.sh ${PREFIX}/bin/fritzing
  37. ${INSTALL_PROGRAM} ${WRKBUILD}/Fritzing ${PREFIX}/bin
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/fritzing/
  39. cd ${WRKSRC}; tar cf - bins help parts pdb resources sketches tools translations | \
  40. tar xf - -C ${PREFIX}/share/fritzing/
  41. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  42. ${SUBST_DATA} ${FILESDIR}/fritzing.desktop \
  43. ${PREFIX}/share/applications/fritzing.desktop
  44. .include <bsd.port.mk>