2014-07-22 14:25:29 +02:00
|
|
|
# Created by: Sébastien Santoro <dereckson@gmail.com>
|
2009-07-17 19:13:13 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= astrometry
|
2014-07-22 14:25:29 +02:00
|
|
|
PORTVERSION= 0.46
|
2014-11-21 12:56:10 +01:00
|
|
|
PORTREVISION= 2
|
2009-07-17 19:13:13 +02:00
|
|
|
CATEGORIES= astro
|
|
|
|
MASTER_SITES= http://www.astrometry.net/downloads/
|
2014-07-22 14:25:29 +02:00
|
|
|
DISTNAME= ${PORTNAME}.net-${PORTVERSION}
|
2009-07-17 19:13:13 +02:00
|
|
|
|
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
|
|
|
|
|
2014-07-22 14:25:29 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
|
2013-12-11 11:31:41 +01:00
|
|
|
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
|
2014-07-22 14:25:29 +02:00
|
|
|
libcfitsio.so:${PORTSDIR}/astro/cfitsio \
|
2013-12-11 11:31:41 +01:00
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
2014-12-25 20:04:25 +01:00
|
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
2013-12-11 11:31:41 +01:00
|
|
|
libnetpbm.so:${PORTSDIR}/graphics/netpbm
|
2014-07-22 14:25:29 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2009-07-17 19:13:13 +02:00
|
|
|
|
2014-10-18 09:49:17 +02:00
|
|
|
USES= gmake pkgconfig python tar:bzip2
|
2009-07-17 19:13:13 +02:00
|
|
|
ALL_TARGET= all extra
|
2014-07-22 14:25:29 +02:00
|
|
|
MAKE_ENV= INSTALL_DIR=${STAGEDIR}${PREFIX}/${PORTNAME}
|
2009-07-17 19:13:13 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2010-03-30 14:50:08 +02:00
|
|
|
post-patch:
|
2014-07-22 14:25:29 +02:00
|
|
|
@${REINPLACE_CMD} -E 's,python (setup|-c),${PYTHON_CMD} \1,' \
|
|
|
|
${WRKSRC}/blind/Makefile ${WRKSRC}/libkd/Makefile \
|
|
|
|
${WRKSRC}/sdss/Makefile ${WRKSRC}/util/Makefile
|
|
|
|
# Outwit detection logic that thinks Clang does not support -shared argument
|
|
|
|
@${REINPLACE_CMD} -e '/CCTEST/s,\\|warning:,,' \
|
|
|
|
${WRKSRC}/util/makefile.common
|
|
|
|
|
2014-11-21 12:56:10 +01:00
|
|
|
post-install:
|
|
|
|
@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||' \
|
|
|
|
${STAGEDIR}${PREFIX}/${PORTNAME}/etc/${PORTNAME}.cfg
|
|
|
|
@${FIND} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin -type f -not -name "*.py" \
|
|
|
|
-exec ${STRIP_CMD} {} \;
|
|
|
|
@${FIND} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib -type f -name "*.so" \
|
|
|
|
-exec ${STRIP_CMD} {} \;
|
|
|
|
|
2014-07-22 14:25:29 +02:00
|
|
|
.include <bsd.port.mk>
|