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
|
2014-03-10 21:55:20 +01:00
|
|
|
PORTREVISION= 4
|
2009-07-17 19:13:13 +02:00
|
|
|
CATEGORIES= astro
|
|
|
|
MASTER_SITES= http://www.astrometry.net/downloads/
|
|
|
|
DISTNAME= astrometry.net-${PORTVERSION}
|
|
|
|
|
2014-07-06 17:28:14 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2009-07-17 19:13:13 +02:00
|
|
|
COMMENT= Describes an astronomical image
|
|
|
|
|
2013-12-11 11:31:41 +01:00
|
|
|
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
|
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
libpng15.so:${PORTSDIR}/graphics/png \
|
|
|
|
libnetpbm.so:${PORTSDIR}/graphics/netpbm
|
2009-07-17 19:13:13 +02:00
|
|
|
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
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= yes
|
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>
|