freebsd-ports/astro/starfetch/Makefile
Jesús Daniel Colmenares Oviedo 180c65af41 astro/starfetch: New port: Command line tool that displays constellations
- submitter becomes maintainer

Description:

starfetch is a tool that prints out a scheme of a given constellation
and some information about it: its quadrant, its right ascension, its
declination, its area and its main stars number.

WWW: https://github.com/Haruno19/starfetch/

PR:		267183
2022-10-23 20:25:53 +01:00

30 lines
821 B
Makefile

PORTNAME= starfetch
DISTVERSION= 0.0.3
CATEGORIES= astro
MASTER_SITES= https://github.com/Haruno19/${PORTNAME}/releases/download/${DISTVERSION}/
MAINTAINER= DtxdF@disroot.org
COMMENT= Command line tool that displays constellations
WWW= https://github.com/Haruno19/starfetch/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
CXXFLAGS+= -std=c++17
post-patch:
@${REINPLACE_CMD} -e '/^string path = /s#=.*#= "${DATADIR}/";#' ${WRKSRC}/src/${PORTNAME}.cpp
do-build:
${CXX} ${CXXFLAGS} ${WRKSRC}/src/${PORTNAME}.cpp -o ${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/res && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>