summaryrefslogtreecommitdiff
path: root/devel/libgtop/Makefile
blob: 00173ffcbf265ee2fcce09c83885f6c6d111e5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.61 2002/08/26 20:55:03 tron Exp $

DISTNAME=		libgtop-1.0.12
PKGREVISION=		3
CATEGORIES=		devel gnome
MASTER_SITES=		${MASTER_SITE_GNOME:=stable/sources/libgtop/}

MAINTAINER=		tron@netbsd.org
COMMENT=		library to retrieve system information, used in GNOME

USE_PERL5=		build
BUILD_USES_MSGFMT=	yes
DEPENDS+=		gnome-libs>=1.4.1.2nb1:../../x11/gnome-libs

NOT_FOR_PLATFORM=	SunOS-*-*
OSVERSION_SPECIFIC=	yes

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == NetBSD
.if (${MACHINE_ARCH} != alpha) && (${MACHINE_ARCH} != arm32) && \
    (${MACHINE_ARCH} != i386) && (${MACHINE_ARCH} != m68k) && \
    (${MACHINE_ARCH} != mipsel) && (${MACHINE_ARCH} != powerpc) && \
    (${MACHINE_ARCH} != sparc) && (${MACHINE_ARCH} != sparc64)
IGNORE=			"${PKGNAME} has not yet been ported to ${MACHINE_ARCH}."
IGNORE+=		"Please look at /usr/include/${MACHINE_ARCH}/pcb.h"
IGNORE+=		"and update patches/patch-al appropriately."
IGNORE+=		"(More information can be found in libgtop.info.)"
.endif
.endif

USE_X11BASE=		YES
USE_GMAKE=		YES
USE_LIBTOOL=		YES
USE_LIBINTL=		YES
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig

CPPFLAGS+=		-I${LOCALBASE}/include	# libintl.h

# The following flags are for debugging purposes.  They don't need to
# be used unless you are actively developing/debugging libgtop.
#CPPFLAGS+=		-DLIBGTOP_ENABLE_DEBUG -DLIBGTOP_FATAL_WARNINGS
#CFLAGS+=		-g
#LDFLAGS+=		-g

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--with-glib-prefix=${LOCALBASE} \
			--with-catgets --with-libgtop-guile=no
CONFIGURE_ENV+=		AWK="${AWK}" LN_S="${LN} -s" PERL="${PERL5}"

.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"