2002-10-05 06:10:03 +02:00
|
|
|
# $NetBSD: Makefile,v 1.41 2002/10/05 04:10:03 rh Exp $
|
1999-07-31 21:06:08 +02:00
|
|
|
#
|
|
|
|
|
2001-10-04 21:20:05 +02:00
|
|
|
DISTNAME= libglade-0.17
|
2002-10-05 06:10:03 +02:00
|
|
|
PKGREVISION= 2
|
2001-10-04 21:20:05 +02:00
|
|
|
CATEGORIES= devel gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=stable/sources/libglade/}
|
1999-07-31 21:06:08 +02:00
|
|
|
|
2001-10-04 21:20:05 +02:00
|
|
|
MAINTAINER= rh@netbsd.org
|
|
|
|
HOMEPAGE= http://www.daa.com.au/~james/gnome/
|
|
|
|
COMMENT= Runtime interpreter for GLADE gui files
|
1999-07-31 21:06:08 +02:00
|
|
|
|
2002-04-10 01:05:42 +02:00
|
|
|
BUILD_USES_MSGFMT= YES
|
1999-07-31 21:06:08 +02:00
|
|
|
|
2002-09-06 14:09:08 +02:00
|
|
|
USE_BUILDLINK2= YES
|
2001-10-04 21:20:05 +02:00
|
|
|
USE_X11BASE= YES
|
|
|
|
GNU_CONFIGURE= YES
|
1999-07-31 21:06:08 +02:00
|
|
|
|
2002-04-10 01:05:42 +02:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
|
2000-01-01 14:36:43 +01:00
|
|
|
|
2002-07-31 18:16:48 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
2002-09-06 19:43:48 +02:00
|
|
|
. include "../../databases/db/buildlink2.mk"
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.db}/include/db2
|
2002-07-31 18:16:48 +02:00
|
|
|
.endif
|
|
|
|
|
2002-10-05 06:10:03 +02:00
|
|
|
DISPLAY?= # empty if unset
|
|
|
|
checkforx:
|
|
|
|
.if ${DISPLAY}=="" || ${DISPLAY_OK:!${X11BASE}/bin/xdpyinfo >/dev/null 2>&1 && echo YES || echo NO!} == "NO"
|
|
|
|
.if exists(${X11BASE}/bin/Xvfb)
|
|
|
|
-${SETENV} XAUTHORITY= ${X11BASE}/bin/Xvfb :2 &
|
|
|
|
DISPLAY= ':2'
|
|
|
|
.else
|
|
|
|
@${ECHO} "Error: Environment variable DISPLAY must be set"
|
|
|
|
@${ECHO} " and point to a connectible X server."
|
|
|
|
@${FALSE}
|
|
|
|
.endif # Xvfb
|
|
|
|
.endif # DISPLAY
|
|
|
|
|
|
|
|
MAKE_ENV+= DISPLAY=${DISPLAY}
|
|
|
|
|
1999-10-10 20:24:43 +02:00
|
|
|
pre-configure:
|
|
|
|
${RM} ${WRKSRC}/libgladeConf.sh
|
|
|
|
|
2002-10-05 06:10:03 +02:00
|
|
|
pre-build: checkforx
|
|
|
|
|
2002-09-06 14:09:08 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink2.mk"
|
|
|
|
.include "../../textproc/libxml/buildlink2.mk"
|
|
|
|
.include "../../x11/gnome-libs/buildlink2.mk"
|
|
|
|
.include "../../audio/esound/buildlink2.mk"
|
1999-07-31 21:06:08 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|