Changeset View
Changeset View
Standalone View
Standalone View
astro/gpsbabel/Makefile
| # Created by: Laurent Courty | # Created by: Laurent Courty | ||||
| # $FreeBSD$ | # $FreeBSD$ | ||||
| PORTNAME= gpsbabel | PORTNAME= gpsbabel | ||||
| PORTVERSION= 1.5.2 | |||||
| PORTREVISION= 1 | |||||
| CATEGORIES= astro geography | CATEGORIES= astro geography | ||||
| MASTER_SITES= https://secure.ohos.nl/downloads/ \ | DISTVERSIONPREFIX= ${PORTNAME}_ | ||||
| LOCAL/glebius | DISTVERSION= 1_5_3 | ||||
AMDmi3: Preferred order is PORTNAME-DISTVERSIONPREFIX-DISTVERSION-CATEGORIES, see portlint. | |||||
Done Inline ActionsThe USE_GITHUB line should go after the LICENSE block. Also, you should remove GH_ACCOUNT, it's the default value, and remove GH_TAGNAME and PORTVERSION, replacing them with: DISTVERSIONPREFIX= ${PORTNAME}_
DISTVERSION= 1_5_3mat: The USE_GITHUB line should go after the LICENSE block.
Also, you should remove GH_ACCOUNT… | |||||
| MAINTAINER= dev2@heesakkers.info | MAINTAINER= dev2@heesakkers.info | ||||
| COMMENT= GPS file translating tool | COMMENT= GPS file translating tool | ||||
| LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
| LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
| USE_GITHUB= yes | |||||
| CONFLICTS= gpsbabel14-[0-9]* | CONFLICTS= gpsbabel14-[0-9]* | ||||
| USE_QT4= corelib qmake_build | USE_QT4= corelib qmake_build | ||||
| GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
| CONFIGURE_ARGS= --with-zlib=system | CONFIGURE_ARGS= --with-zlib=system | ||||
| CPPFLAGS+= -I${LOCALBASE}/include | |||||
| LDFLAGS+= -L${LOCALBASE}/lib | |||||
AMDmi3Unsubmitted Done Inline ActionsThese two lines may bereplaced with USES=localbase AMDmi3: These two lines may bereplaced with USES=localbase | |||||
| # Unbundle libminizip | |||||
| LIB_DEPENDS= libminizip.so:archivers/minizip | |||||
AMDmi3Unsubmitted Done Inline ActionsLIB_DEPENDS belong between LICENSE block and USE_GITHUB block AMDmi3: LIB_DEPENDS belong between LICENSE block and USE_GITHUB block | |||||
| OPTIONS_DEFINE= GUI | OPTIONS_DEFINE= GUI | ||||
| OPTIONS_SUB= GUI | OPTIONS_SUB= GUI | ||||
| GUI_ALL_TARGET= gui | GUI_ALL_TARGET= gui | ||||
| GUI_USE= QT4=gui,xml,network,webkit | GUI_USE= QT4=gui,xml,network,webkit | ||||
| GUI_USE+= QT4=linguisttools_build,moc_build,rcc_build,uic_build | GUI_USE+= QT4=linguisttools_build,moc_build,rcc_build,uic_build | ||||
| GUI_VARS= MAKE_JOBS_UNSAFE=yes | GUI_VARS= MAKE_JOBS_UNSAFE=yes | ||||
| post-patch: | post-patch: | ||||
| @${REINPLACE_CMD} '/langPath_ = / \ | @${REINPLACE_CMD} '/langPath_ = / \ | ||||
| s|QApplication::applicationDirPath()|"${DATADIR}"|' \ | s|QApplication::applicationDirPath()|"${DATADIR}"|' \ | ||||
| ${WRKSRC}/gui/mainwindow.cc | ${WRKSRC}/gui/mainwindow.cc | ||||
| @${RM} -rf ${WRKSRC}/zlib/contrib/minizip | |||||
AMDmi3Unsubmitted Not Done Inline ActionsI'd just remove headers under zlib/ just to be sure they are not used. AMDmi3: I'd just remove headers under zlib/ just to be sure they are not used. | |||||
cemAuthorUnsubmitted Not Done Inline ActionsThey are more intensive to rip out, because they are used as dependencies in Makefile.in regardless of actual use. I'll leave that for future work. cem: They are more intensive to rip out, because they are used as dependencies in Makefile.in… | |||||
| do-install: | do-install: | ||||
| ${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${STAGEDIR}${PREFIX}/bin/ | ${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${STAGEDIR}${PREFIX}/bin/ | ||||
| do-install-GUI-on: | do-install-GUI-on: | ||||
| ${INSTALL_PROGRAM} ${WRKSRC}/gui/objects/gpsbabelfe-bin \ | ${INSTALL_PROGRAM} ${WRKSRC}/gui/objects/gpsbabelfe-bin \ | ||||
| ${STAGEDIR}${PREFIX}/bin/ | ${STAGEDIR}${PREFIX}/bin/ | ||||
| ${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \ | ${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \ | ||||
| ${STAGEDIR}${PREFIX}/share/applications/ | ${STAGEDIR}${PREFIX}/share/applications/ | ||||
| ${MKDIR} ${STAGEDIR}${DATADIR}/translations | ${MKDIR} ${STAGEDIR}${DATADIR}/translations | ||||
| ${INSTALL_DATA} ${WRKSRC}/gui/*.qm ${STAGEDIR}${DATADIR}/translations/ | ${INSTALL_DATA} ${WRKSRC}/gui/*.qm ${STAGEDIR}${DATADIR}/translations/ | ||||
| ${INSTALL_DATA} ${WRKSRC}/gui/images/appicon.png \ | ${INSTALL_DATA} ${WRKSRC}/gui/images/appicon.png \ | ||||
| ${STAGEDIR}${PREFIX}/share/pixmaps/gpsbabel.png | ${STAGEDIR}${PREFIX}/share/pixmaps/gpsbabel.png | ||||
| .include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Preferred order is PORTNAME-DISTVERSIONPREFIX-DISTVERSION-CATEGORIES, see portlint.