pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xmindpath After a few more tries, it finally worke...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50e834bfa4ae
branches:  trunk
changeset: 533815:50e834bfa4ae
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 01 11:59:59 2007 +0000

description:
After a few more tries, it finally worked. The features framework isn't
as easy to use as I first thought.

diffstat:

 x11/xmindpath/Makefile |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r ffb60a387d28 -r 50e834bfa4ae x11/xmindpath/Makefile
--- a/x11/xmindpath/Makefile    Mon Oct 01 11:50:40 2007 +0000
+++ b/x11/xmindpath/Makefile    Mon Oct 01 11:59:59 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/10/01 11:09:09 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2007/10/01 11:59:59 rillig Exp $
 
 DISTNAME=      magicpoint-1.09a
 PKGNAME=       xmindpath-1.09a
@@ -13,6 +13,17 @@
 GNU_CONFIGURE= yes
 USE_FEATURES=  err
 
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(MISSING_FEATURES:Merr)
+pre-build:
+       cd ${BUILDLINK_DIR}/include && \
+       { echo "#include <nbcompat/cdefs.h>"; \
+         echo "#include <stdarg.h>"; \
+         echo "#include <nbcompat/err.h>"; \
+       } > err.h
+.endif
+
 BUILDLINK_DEPMETHOD.libXt?=    build
 
 .include "../../x11/libSM/buildlink3.mk"



Home | Main Index | Thread Index | Old Index