blob: 7b7551055aa643a72bf5377ec40799fa0105e338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
PORTNAME= astrometry
PORTVERSION= 0.93
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= http://astrometry.net/downloads/
DISTNAME= ${PORTNAME}.net-${PORTVERSION}
MAINTAINER= rhurlin@FreeBSD.org
COMMENT= Astronomic calibration service
WWW= https://astrometry.net/
LICENSE= GPLv3+
BROKEN_armv6= fails to link: os-features-test.c:10: undefined symbol 'canonicalize_file_name'
BROKEN_armv7= fails to link: os-features-test.c:10: undefined symbol 'canonicalize_file_name'
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libcairo.so:graphics/cairo \
libcfitsio.so:astro/cfitsio \
libgsl.so:math/gsl \
libpng.so:graphics/png \
libnetpbm.so:graphics/netpbm \
libwcs.so:astro/wcslib
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astropy>0:astro/py-astropy@${PY_FLAVOR} \
${PYNUMPY}
USES= gmake jpeg localbase pkgconfig python shebangfix
USE_LDCONFIG= yes
SHEBANG_FILES= bin/* plot/plotann.py sdss/*.py solver/*.py util/[!c]*.py
MAKE_ARGS= NETPBM_INC="-I${LOCALBASE}/include/netpbm" \
NETPBM_LIB="-L${LOCALBASE}/lib -lnetpbm" \
SYSTEM_GSL=yes
MAKE_ENV= INSTALL_DIR=${STAGEDIR}${PREFIX} \
DATA_INSTALL_DIR=${STAGEDIR}${DATADIR} \
DOC_INSTALL_DIR=${STAGEDIR}${DOCSDIR} \
EXAMPLE_INSTALL_DIR=${STAGEDIR}${EXAMPLESDIR} \
MAN1_INSTALL_DIR=${STAGEDIR}${PREFIX}/man/man1 \
PY_BASE_INSTALL_DIR=${STAGEDIR}${PYTHON_LIBDIR}/astrometry \
PYTHON=${PYTHON_CMD} PYTHON_SCRIPT=${PYTHON_CMD}
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= all extra
LDFLAGS+= -lz
CONFLICTS_INSTALL= afni p5-Text-RecordParser # bin/imstat bin/tabmerge
MANDIRS= ${MANPREFIX}/man/man1
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFAULT= EXAMPLES
FILES= an-fitstopnm an-pnmtofits astrometry-engine \
build-astrometry-index downsample-fits fit-wcs \
fits-column-merge fits-flip-endian fits-guess-scale \
fitscopy fitsgetext fitsverify get-healpix get-wcs \
hpsplit image2xy imarith imcopy imstat listhead liststruc \
modhead new-wcs pad-file plot-constellations \
plotquad plotxy query-starkd solve-field startree \
subtable tablist tabmerge tabsort wcs-grab wcs-match \
wcs-pv2sip wcs-rd2xy wcs-resample wcs-to-tan wcs-xy2rd \
wcsinfo
post-install:
.for file in ${FILES}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
.endfor
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libastrometry.so
@${REINPLACE_CMD} -i '' \
-e 's|${STAGEDIR}/usr/local/data|${DATADIR}|' \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg
@${RMDIR} ${STAGEDIR}${PREFIX}/data
@${MKDIR} ${STAGEDIR}${DATADIR}/sdss
@${MKDIR} ${STAGEDIR}${DATADIR}/solver
@${MKDIR} ${STAGEDIR}${DATADIR}/catalogs
${INSTALL_DATA} ${WRKSRC}/sdss/testdata/*.fit* ${STAGEDIR}${DATADIR}/sdss
${INSTALL_DATA} ${WRKSRC}/solver/index-9918.fits ${STAGEDIR}${DATADIR}/solver
${INSTALL_DATA} ${WRKSRC}/catalogs/*.fit* ${STAGEDIR}${DATADIR}/catalogs
.include <bsd.port.mk>
|