2013-08-30 03:15:20 +02:00
|
|
|
# Created by: Dereckson <dereckson@gmail.com>
|
2009-07-17 19:13:13 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= astrometry
|
2010-09-21 13:08:40 +02:00
|
|
|
PORTVERSION= 0.34
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 02:52:33 +02:00
|
|
|
PORTREVISION= 3
|
2009-07-17 19:13:13 +02:00
|
|
|
CATEGORIES= astro
|
|
|
|
MASTER_SITES= http://www.astrometry.net/downloads/
|
|
|
|
DISTNAME= astrometry.net-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= dereckson@gmail.com
|
|
|
|
COMMENT= Describes an astronomical image
|
|
|
|
|
|
|
|
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2009-07-17 19:13:13 +02:00
|
|
|
netpbm.1:${PORTSDIR}/graphics/netpbm
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
|
|
|
|
|
2013-09-20 15:14:04 +02:00
|
|
|
NO_STAGE= yes
|
2013-09-08 10:12:26 +02:00
|
|
|
USES= gmake pkgconfig
|
2011-02-25 00:25:54 +01:00
|
|
|
USE_PYTHON= 2.5+
|
2009-07-17 19:13:13 +02:00
|
|
|
ALL_TARGET= all extra
|
|
|
|
MAKE_ENV= INSTALL_DIR=${PREFIX}/astrometry
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2010-10-10 00:34:10 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-09-08 07:52:18 +02:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64
|
2010-10-10 00:34:10 +02:00
|
|
|
.endif
|
2009-07-17 19:13:13 +02:00
|
|
|
|
2010-03-30 14:50:08 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
|
|
|
|
${WRKSRC}/util/cairoutils.c
|
2013-12-08 13:47:19 +01:00
|
|
|
${REINPLACE_CMD} -e 's|python setup|${PYTHON_CMD} setup|' \
|
|
|
|
${WRKSRC}/util/Makefile \
|
|
|
|
${WRKSRC}/libkd/Makefile \
|
|
|
|
${WRKSRC}/blind/Makefile
|
2010-03-30 14:50:08 +02:00
|
|
|
|
2009-07-17 19:13:13 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2009-08-17 03:12:22 +02:00
|
|
|
.include <bsd.port.post.mk>
|