aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-03-30 00:17:59 +0800
committerdanfe <danfe@FreeBSD.org>2016-03-30 00:17:59 +0800
commit7c07ad4a67c76c100f24ef5c701d7475fc0f84e4 (patch)
treeec540fbdd522b142ac5716636d54e37d754aa3ed
parentf2fcd6dc7a9a90dd304e4f0dc9d5d2d6b3de8791 (diff)
downloadfreebsd-ports-graphics-7c07ad4a67c76c100f24ef5c701d7475fc0f84e4.tar.gz
freebsd-ports-graphics-7c07ad4a67c76c100f24ef5c701d7475fc0f84e4.tar.zst
freebsd-ports-graphics-7c07ad4a67c76c100f24ef5c701d7475fc0f84e4.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|'
-rw-r--r--astro/stellarium-qt4/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/astro/stellarium-qt4/Makefile b/astro/stellarium-qt4/Makefile
index cf85f4bedfd..e0223e6625a 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}