# $OpenBSD: Makefile,v 1.23 2012/09/27 17:26:05 ajacoutot Exp $ COMMENT-main= GPS waypoint, track, and route conversion tool COMMENT-tk= Tk front-end to gpsbabel COMMENT-qt= Qt front-end to gpsbabel VERSION= 1.4.3 DISTNAME= gpsbabel-${VERSION} PKGNAME-main= gpsbabel-${VERSION} REVISION-main= 0 PKGNAME-tk= gpsbabel-tk-${VERSION} PKGNAME-qt= gpsbabel-qt-${VERSION} REVISION-qt= 0 CATEGORIES= geo HOMEPAGE= http://www.gpsbabel.org/ MAINTAINER= Chris Kuethe # GPLv2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MASTER_SITES= http://www.linklevel.net/distfiles/ AUTOCONF_VERSION= 2.61 CONFIGURE_STYLE= autoconf CONFIGURE_ARGS+= --with-zlib=system \ --with-shapefile=system \ --with-doc=./babelweb #CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \ # LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \ # WEB=${WRKSRC} CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ WEB=${WRKSRC} MULTI_PACKAGES= -main -tk -qt MODULES= x11/tk x11/qt4 BUILD_DEPENDS= textproc/docbook-xsl LIB_DEPENDS-main= devel/libusb-compat \ devel/shapelib cWANTLIB = c m pthread WANTLIB-main += expat shp>=1 usb z ${cWANTLIB} WANTLIB-tk = WANTLIB-qt += ICE QtCore QtGui QtNetwork QtWebKit QtXml SM X11 Xext Xi WANTLIB-qt += Xinerama Xrender fontconfig freetype stdc++ ${cWANTLIB} LIB_DEPENDS-tk= PKG_ARCH-tk= * RUN_DEPENDS-tk= geo/gpsbabel \ ${MODTK_RUN_DEPENDS} RUN_DEPENDS-qt= geo/gpsbabel \ devel/desktop-file-utils pre-configure: ${SUBST_CMD} ${WRKSRC}/guibabel @perl -pi -e 's/gpsbabelfe-bin/guibabel-qt/' \ ${WRKSRC}/gui/gpsbabel.desktop post-configure: cd ${WRKSRC}/gui && ${SETENV} ${CONFIGURE_ENV} qmake4 \ app.pro post-build: cd ${WRKSRC} && make doc cd ${WRKSRC}/gui && make do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/gui/objects/gpsbabelfe-bin \ ${PREFIX}/bin/guibabel-qt ${INSTALL_SCRIPT} ${WRKSRC}/guibabel ${PREFIX}/bin ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gpsbabel ${INSTALL_DATA} ${WRKSRC}/babelweb/htmldoc-*/*.html \ ${PREFIX}/share/doc/gpsbabel ${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/gpsbabel ${INSTALL_DATA_DIR} ${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \ ${PREFIX}/share/applications ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps ${INSTALL_DATA} ${WRKSRC}/gui/images/appicon.png \ ${PREFIX}/share/pixmaps/gpsbabel.png .include