Subject: pkg/17783: devel/libglade Makefile fix for Solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <julien.letessier@sun.com>
List: netbsd-bugs
Date: 07/31/2002 09:03:15
>Number:         17783
>Category:       pkg
>Synopsis:       devel/libglade Makefile fix for Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 31 09:04:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julien T. Letessier
>Release:        Zoularis/Solaris8
>Organization:
Sun Labs Europe
>Environment:
SunOS mikdemia 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise
>Description:
libglade requires a BSD-like db, which is included in base NetBSD but of course not in Solaris.

this is true for several Gnome packages, which I'll PR later.
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libglade/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile	2002/04/09 23:05:42	1.36
+++ Makefile	2002/07/31 16:02:47
@@ -19,6 +19,14 @@
 USE_LIBTOOL=		YES
 LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} ==	"SunOS"
+.include "../../databases/db/buildlink.mk"
+
+CPPFLAGS+=		-I${BUILDLINK_DIR}/include/db2
+.endif
+
 pre-configure:
 	${RM} ${WRKSRC}/libgladeConf.sh

>Release-Note:
>Audit-Trail:
>Unformatted: