Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # $OpenBSD: Makefile,v 1.29 2017/04/10 11:46:20 sthen Exp $
  2. COMMENT-main= GPS waypoint, track, and route conversion tool
  3. COMMENT-tk= Tk front-end to gpsbabel
  4. COMMENT-qt= Qt front-end to gpsbabel
  5. VERSION= 1.4.4
  6. DISTNAME= gpsbabel-${VERSION}
  7. PKGNAME-main= gpsbabel-${VERSION}
  8. PKGNAME-tk= gpsbabel-tk-${VERSION}
  9. PKGNAME-qt= gpsbabel-qt-${VERSION}
  10. CATEGORIES= geo
  11. REVISION-main= 0
  12. REVISION-tk= 0
  13. REVISION-qt= 0
  14. HOMEPAGE= http://www.gpsbabel.org/
  15. # GPLv2
  16. PERMIT_PACKAGE_CDROM= Yes
  17. MASTER_SITES= http://www.linklevel.net/distfiles/
  18. AUTOCONF_VERSION= 2.61
  19. CONFIGURE_STYLE= autoconf qmake
  20. CONFIGURE_ARGS+= --with-zlib=system \
  21. --with-shapefile=system \
  22. --with-doc=./babelweb
  23. #CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  24. # LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
  25. # WEB=${WRKSRC}
  26. CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
  27. LDFLAGS="-L${LOCALBASE}/lib" \
  28. WEB=${WRKSRC}
  29. MULTI_PACKAGES= -main -tk -qt
  30. MODULES= devel/qmake x11/tk x11/qt4
  31. MODQMAKE_PROJECTS = gui/app.pro
  32. SEPARATE_BUILD= No
  33. BUILD_DEPENDS= textproc/docbook-xsl
  34. LIB_DEPENDS-main= devel/libusb-compat \
  35. devel/shapelib
  36. cWANTLIB = c m pthread
  37. WANTLIB-main += expat shp>=1 usb z ${cWANTLIB}
  38. WANTLIB-tk =
  39. WANTLIB-qt += ICE QtCore QtGui QtNetwork QtWebKit QtXml SM X11 Xext Xi
  40. WANTLIB-qt += Xinerama Xrender fontconfig freetype ${LIBCXX} ${cWANTLIB}
  41. LIB_DEPENDS-tk=
  42. PKG_ARCH-tk= *
  43. RUN_DEPENDS-tk= geo/gpsbabel \
  44. ${MODTK_RUN_DEPENDS}
  45. RUN_DEPENDS-qt= geo/gpsbabel \
  46. devel/desktop-file-utils
  47. pre-configure:
  48. ${SUBST_CMD} ${WRKSRC}/guibabel
  49. @perl -pi -e 's/gpsbabelfe-bin/guibabel-qt/' \
  50. ${WRKSRC}/gui/gpsbabel.desktop
  51. post-build:
  52. cd ${WRKBUILD} && make doc
  53. ${MODQMAKE_build}
  54. do-install:
  55. ${INSTALL_PROGRAM} ${WRKBUILD}/gpsbabel ${PREFIX}/bin
  56. ${INSTALL_PROGRAM} ${WRKBUILD}/gui/objects/gpsbabelfe-bin \
  57. ${PREFIX}/bin/guibabel-qt
  58. ${INSTALL_SCRIPT} ${WRKSRC}/guibabel ${PREFIX}/bin
  59. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gpsbabel
  60. ${INSTALL_DATA} ${WRKSRC}/babelweb/htmldoc-*/*.html \
  61. ${PREFIX}/share/doc/gpsbabel
  62. ${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/gpsbabel
  63. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  64. ${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \
  65. ${PREFIX}/share/applications
  66. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
  67. ${INSTALL_DATA} ${WRKSRC}/gui/images/appicon.png \
  68. ${PREFIX}/share/pixmaps/gpsbabel.png
  69. .include <bsd.port.mk>