2013-03-14 16:11:11 +01:00
|
|
|
# $NetBSD: Makefile,v 1.71 2013/03/14 15:11:11 wiz Exp $
|
1997-10-24 12:11:28 +02:00
|
|
|
|
2006-03-14 16:48:01 +01:00
|
|
|
DISTNAME= xosview-1.8.3
|
2007-12-17 23:08:12 +01:00
|
|
|
PKGREVISION= 2
|
1997-10-24 12:11:28 +02:00
|
|
|
CATEGORIES= sysutils
|
2003-11-11 08:57:42 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xosview/}
|
1997-10-24 12:11:28 +02:00
|
|
|
|
2008-02-04 15:42:14 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2013-03-14 16:11:11 +01:00
|
|
|
HOMEPAGE= http://www.pogo.org.uk/~mark/xosview/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= X11 graphical display of OS statistics
|
1997-10-24 12:11:28 +02:00
|
|
|
|
2004-01-05 13:48:30 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2002-09-23 23:55:11 +02:00
|
|
|
USE_X11BASE= YES
|
2006-07-02 12:37:53 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2002-09-23 23:55:11 +02:00
|
|
|
|
2001-09-23 08:00:27 +02:00
|
|
|
HAS_CONFIGURE= YES
|
2012-09-15 11:04:12 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --x-includes=${X11BASE}/include
|
|
|
|
CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib
|
1999-04-07 12:09:18 +02:00
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin lib/X11/app-defaults ${PKGMANDIR}/man1
|
2012-09-15 11:04:12 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2010-06-27 19:34:35 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= PREFIX_TO_USE=${DESTDIR}${PREFIX}
|
2004-01-05 13:48:30 +01:00
|
|
|
|
1999-04-07 12:09:18 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2002-09-23 23:55:11 +02:00
|
|
|
. if !defined(UVM) && exists(/usr/include/uvm/uvm.h)
|
2002-06-04 08:50:13 +02:00
|
|
|
CFLAGS+= -DUVM
|
2006-03-14 16:48:01 +01:00
|
|
|
UVM= yes
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_DEFS+= UVM
|
2002-09-23 23:55:11 +02:00
|
|
|
. endif
|
1999-04-07 12:09:18 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2012-09-15 11:04:12 +02:00
|
|
|
CPPFLAGS+= -I${X11BASE}/include
|
2001-06-12 22:33:00 +02:00
|
|
|
LIBS+= -lsocket -lnsl
|
2007-09-29 14:04:39 +02:00
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
USE_TOOLS+= gmake
|
1999-04-07 12:09:18 +02:00
|
|
|
.endif
|
|
|
|
|
2010-06-27 19:34:35 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
|
|
|
|
${OPSYS} == "OpenBSD" || ${OPSYS} == "DragonFly"
|
|
|
|
SPECIAL_PERMS+= bin/xosview ${REAL_ROOT_USER} kmem 2555
|
|
|
|
.endif
|
|
|
|
|
2007-11-30 20:32:55 +01:00
|
|
|
SUBST_CLASSES+= unpriv
|
|
|
|
SUBST_STAGE.unpriv= pre-configure
|
|
|
|
SUBST_FILES.unpriv= config/Makefile.top.in
|
|
|
|
SUBST_SED.unpriv= -e s,@INSTALL_ARGS@,,
|
|
|
|
|
2007-04-09 23:22:11 +02:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_STAGE.paths= post-configure
|
|
|
|
SUBST_MESSAGE.paths= Fixing manpage path.
|
|
|
|
SUBST_FILES.paths= Makefile
|
|
|
|
SUBST_SED.paths= -e s,share/man/man1,${PKGMANDIR}/man1,
|
|
|
|
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|