diff options
Diffstat (limited to 'comms/predict/Makefile')
-rw-r--r-- | comms/predict/Makefile | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/comms/predict/Makefile b/comms/predict/Makefile index 198738463848..e15aa9ba7f5d 100644 --- a/comms/predict/Makefile +++ b/comms/predict/Makefile @@ -1,6 +1,5 @@ PORTNAME= predict -PORTVERSION= 2.2.7 -PORTREVISION= 1 +PORTVERSION= 2.3.1 CATEGORIES= comms astro hamradio MASTER_SITES= https://www.qsl.net/kd2bd/ \ LOCAL/db @@ -10,19 +9,42 @@ COMMENT= Satellite tracking program for amateur radio satellites WWW= https://www.qsl.net/kd2bd/predict.html LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libasound.so:audio/alsa-lib USES= ncurses -INSTALL_TARGET= install install.man -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" STAGEDIR="${STAGEDIR}" CONFLICTS_INSTALL= liblinear # bin/predict +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: - @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/predict.h > ${WRKSRC}/predict.h - @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/vocalizer.h > ${WRKSRC}/vocalizer/vocalizer.h - @${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|/usr/src/predict-2.3.1/|${PREFIX}/share/predict|g' ${WRKSRC}/predict.h + +# I'm not building & installing clients/gsat-1 map kep_reload etc. only earthtrack +do-build: + cd ${WRKSRC} && ${CC} ${CFLAGS} -I ${LOCALBASE}/include -o predict predict.c -L ${LOCALBASE}/lib -pthread -lm -lncursesw -lasound + cd ${WRKSRC}/clients/earthtrack && ${CC} ${CFLAGS} -o earthtrack earthtrack.c -lm + cd ${WRKSRC}/utils/moontracker && ${CC} ${CFLAGS} -o moontracker moontracker.c -lm +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR}/default +.for f in predict.db predict.qth predict.tle + ${INSTALL_DATA} ${WRKSRC}/default/$f ${STAGEDIR}${DATADIR}/default +.endfor + ${MKDIR} ${STAGEDIR}${DATADIR}/vocalizer + cd ${WRKSRC}/vocalizer && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/vocalizer + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/pdf/predict.pdf ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/html/predict.html ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/text/predict.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/docs/man/predict.1 ${STAGEDIR}${PREFIX}/share/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/predict ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/clients/earthtrack/earthtrack ${STAGEDIR}${PREFIX}/bin/ + ${RLN} ${STAGEDIR}${PREFIX}/bin/earthtrack ${STAGEDIR}${PREFIX}/bin/earthtrack2 + ${INSTALL_PROGRAM} ${WRKSRC}/utils/moontracker/moontracker ${STAGEDIR}${PREFIX}/bin/moontracker + ${INSTALL_SCRIPT} ${WRKSRC}/kepupdate ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/clients/&& ${COPYTREE_SHARE} samples ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> |