openbsd-ports/astro/gnuastro/Makefile
bcallah b516150e60 Update to gnuastro-0.18
Changelog:
https://git.savannah.gnu.org/cgit/gnuastro.git/plain/NEWS?id=gnuastro_v0.18
Original diff from wen heping, with tweaks by me
2022-08-14 14:07:01 +00:00

46 lines
1.1 KiB
Makefile

COMMENT = GNU Astronomy Utilities
DISTNAME = gnuastro-0.18
CATEGORIES = astro
SHARED_LIBS += gnuastro 3.1 # 16.0
HOMEPAGE = https://www.gnu.org/software/gnuastro/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += bz2 c cfitsio crypto curl git2 gsl gslcblas http_parser
WANTLIB += jpeg lzma m nghttp2 pcre pthread ssh2 ssl
WANTLIB += tiff wcs z zstd
MASTER_SITES = ${MASTER_SITE_GNU:=gnuastro/}
# Claimed to be too old; uses it anyway.
BUILD_DEPENDS = print/ghostscript/gnu
LIB_DEPENDS = archivers/bzip2 \
archivers/zstd \
astro/wcslib \
devel/gsl \
devel/libgit2/libgit2 \
graphics/jpeg \
graphics/tiff \
security/libssh2
CONFIGURE_STYLE = gnu
USE_GMAKE = Yes
FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/gnuastro"
# Move bash completion file to the appropriate directory.
# Also, rename it to something more identifiable.
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions
${INSTALL_DATA} ${PREFIX}/share/gnuastro/completion.bash \
${PREFIX}/share/bash-completion/completions/gnuastro
rm -rf ${PREFIX}/share/gnuastro
.include <bsd.port.mk>