summaryrefslogtreecommitdiff
path: root/math/xfractint/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz>2007-06-30 14:19:52 +0000
committerschmonz <schmonz>2007-06-30 14:19:52 +0000
commit60352236a4801030cb5ac2323d956779a1afb8a4 (patch)
tree7726c09f436d7ca88beec08ec237dff2eeb2df57 /math/xfractint/Makefile
parent0d2b89a4366c0c861d45ff07e3dc61e347e3d141 (diff)
downloadpkgsrc-60352236a4801030cb5ac2323d956779a1afb8a4.tar.gz
Include <machine/endian.h> on Darwin, and supply a fake <malloc.h>
if the system lacks one (trick borrowed from multimedia/smpeg). Fixes build on Darwin.
Diffstat (limited to 'math/xfractint/Makefile')
-rw-r--r--math/xfractint/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/math/xfractint/Makefile b/math/xfractint/Makefile
index 15ff458b048..d089b38175b 100644
--- a/math/xfractint/Makefile
+++ b/math/xfractint/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.5 2007/04/16 14:48:31 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2007/06/30 14:19:52 schmonz Exp $
#
DISTNAME= xfrac310
PKGNAME= xfractint-3.10
PKGREVISION= 1
CATEGORIES= math
-MASTER_SITES= http://spanky.triumf.ca/pub/fractals/programs/unix/
+MASTER_SITES= ${HOMEPAGE}
EXTRACT_SUFX= .zip
MAINTAINER= rillig@NetBSD.org
@@ -25,6 +25,15 @@ INSTALLATION_DIRS= share/xfractint
MAKE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}
+# xfractint sources assume <malloc.h> exists.
+# Create a fake one for platforms that don't have it.
+#
+post-wrapper:
+ if ${TEST} ! -f /usr/include/malloc.h; then \
+ ${ECHO} "#include <stdlib.h>" \
+ > ${BUILDLINK_DIR}/include/malloc.h; \
+ fi
+
.include "../../mk/curses.buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"