diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2016-03-29 16:17:59 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2016-03-29 16:17:59 +0000 |
commit | 1fa8b79a3e74e06d459c61cb2650565f1bdd9305 (patch) | |
tree | ec540fbdd522b142ac5716636d54e37d754aa3ed /astro | |
parent | 354f1e43e897470e15c6eb091014bbc1e92f7513 (diff) | |
download | ports-1fa8b79a3e74e06d459c61cb2650565f1bdd9305.tar.gz ports-1fa8b79a3e74e06d459c61cb2650565f1bdd9305.zip |
- Reduce the diffs with `astro/stellarium', by using some option helpers
and clarifying LICENSE (GPLv2+)
- Drop currently no-op attempt of in-place patching 's|std::free|::free|'
Notes
Notes:
svn path=/head/; revision=412124
Diffstat (limited to 'astro')
-rw-r--r-- | astro/stellarium-qt4/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/astro/stellarium-qt4/Makefile b/astro/stellarium-qt4/Makefile index cf85f4bedfda..e0223e6625ac 100644 --- a/astro/stellarium-qt4/Makefile +++ b/astro/stellarium-qt4/Makefile @@ -12,7 +12,7 @@ EXTRACT_ONLY= ${_DISTFILES:Nstars_*.cat} MAINTAINER= danfe@FreeBSD.org COMMENT= 3D photo-realistic sky renderer (planetarium) -LICENSE= GPLv2 +LICENSE= GPLv2+ CONFLICTS_INSTALL= ${PORTNAME}-0.13.* PORTSCOUT= limit:^0\.12\. # track only 0.12.x (legacy) @@ -23,7 +23,7 @@ USE_QT4= moc_build rcc_build uic_build qmake_build \ PORTDOCS= AUTHORS ChangeLog README -OPTIONS_DEFINE= MORE_STARS TEXTURES MULTIMEDIA SCRIPTING DOCS +OPTIONS_DEFINE= DOCS MORE_STARS MULTIMEDIA SCRIPTING TEXTURES OPTIONS_DEFAULT= MULTIMEDIA SCRIPTING TEXTURES MORE_STARS_DESC= Install extra star catalogs (1.0GB) TEXTURES_DESC= Install better quality textures @@ -67,20 +67,17 @@ PLIST_SUB+= SCRIPTS="@comment " .endif post-patch: .SILENT - ${REINPLACE_CMD} -e 's|std::free|::free|' \ - ${WRKSRC}/src/core/renderer/StelQGLInterleavedArrayVertexBufferBackend.cpp # Avoid picking up the wrong `fixx11h.h' (`x11/kdelibs3' port installs one # that does not handle FontChange) ${GREP} -Rl --null fixx11h\\.h ${WRKSRC}/src ${WRKSRC}/plugins | \ ${XARGS} -0 ${REINPLACE_CMD} -e 's/fixx11h\.h/fixx11qt4h.h/' cd ${WRKSRC}/src/core/external && ${MV} fixx11h.h fixx11qt4h.h -post-install: -.if ${PORT_OPTIONS:MMORE_STARS} +post-install-MORE_STARS-on: ${INSTALL_DATA} ${DISTDIR}/stars_[45678]_[12]v0_1.cat \ ${STAGEDIR}${DATADIR}/stars/default -.endif -.if ${PORT_OPTIONS:MTEXTURES} + +post-install-TEXTURES-on: (cd ${WRKDIR} && for f in *.png; do \ new=`${STAT} -f '%z' $$f` ; \ existing=`${STAT} -qf '%z' \ @@ -93,7 +90,8 @@ post-install: done) @${REINPLACE_CMD} -e '1410s|nomap|vesta|' \ ${STAGEDIR}${DATADIR}/data/ssystem.ini -.endif + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |