aboutsummaryrefslogtreecommitdiff
path: root/astro/astrometry/Makefile
blob: daa0ef4fb2ef18a42e71bc22686aefaa433bd571 (plain) (blame)
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
# Created by: Dereckson <dereckson@gmail.com>
# $FreeBSD$

PORTNAME=	astrometry
PORTVERSION=	0.34
PORTREVISION=	2
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 \
		jpeg.11:${PORTSDIR}/graphics/jpeg \
		png15:${PORTSDIR}/graphics/png \
		netpbm.1:${PORTSDIR}/graphics/netpbm
BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy

USES=		gmake
USE_PYTHON=	2.5+
ALL_TARGET=	all extra
MAKE_ENV=	INSTALL_DIR=${PREFIX}/astrometry
MAKE_JOBS_UNSAFE=	yes
SUB_FILES=	pkg-message

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on ia64, powerpc, or sparc64
.endif

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

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>