summaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-10-09 22:34:10 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-10-09 22:34:10 +0000
commitbc7ab356b5241d990245271854eb3623dfb7d37a (patch)
tree528f5ef1c3ae379a874905d0affdab5b1e161f01 /astro
parentConnect qconf (diff)
Fix build on 6.x
PR: ports/151235 Submitted by: Sébastien Santoro (maintainer)
Notes
Notes: svn path=/head/; revision=262717
Diffstat (limited to 'astro')
-rw-r--r--astro/astrometry/Makefile8
-rw-r--r--astro/astrometry/files/os-features-config.h (renamed from astro/astrometry/files/gnu-specific-config.h)1
2 files changed, 6 insertions, 3 deletions
diff --git a/astro/astrometry/Makefile b/astro/astrometry/Makefile
index 74c9cca85fbb..23952963b19a 100644
--- a/astro/astrometry/Makefile
+++ b/astro/astrometry/Makefile
@@ -28,8 +28,12 @@ MAKE_ENV= INSTALL_DIR=${PREFIX}/astrometry
MAKE_JOBS_UNSAFE= yes
SUB_FILES= pkg-message
+.include <bsd.port.pre.mk>
+
post-extract:
- ${CP} ${FILESDIR}/gnu-specific-config.h ${WRKSRC}/util/
+.if ${OSVERSION} < 700000 && ${ARCH} == "amd64"
+ ${CP} ${FILESDIR}/os-features-config.h ${WRKSRC}/util/
+.endif
post-patch:
${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
@@ -38,8 +42,6 @@ post-patch:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "sparc64"
BROKEN= Does not build on sparc64
.endif
diff --git a/astro/astrometry/files/gnu-specific-config.h b/astro/astrometry/files/os-features-config.h
index 401234faf8d8..c6eaeaa2f07c 100644
--- a/astro/astrometry/files/gnu-specific-config.h
+++ b/astro/astrometry/files/os-features-config.h
@@ -2,3 +2,4 @@
#define NEED_DECLARE_QSORT_R 1
#define NEED_QSORT_R 0
#define NEED_SWAP_QSORT_R 0
+#define HAVE_NETPBM 0