pkgsrc/sysutils/xosview/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

2013-03-14 16:11:11 +01:00
# $NetBSD: Makefile,v 1.71 2013/03/14 15:11:11 wiz Exp $
DISTNAME= xosview-1.8.3
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xosview/}
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/
COMMENT= X11 graphical display of OS statistics
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
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
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
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)
CFLAGS+= -DUVM
UVM= yes
BUILD_DEFS+= UVM
2002-09-23 23:55:11 +02:00
. endif
1999-04-07 12:09:18 +02:00
.elif ${OPSYS} == "SunOS"
USE_TOOLS+= gmake
2012-09-15 11:04:12 +02:00
CPPFLAGS+= -I${X11BASE}/include
LIBS+= -lsocket -lnsl
.elif ${OPSYS} == "Linux"
USE_TOOLS+= gmake
1999-04-07 12:09:18 +02:00
.endif
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
${OPSYS} == "OpenBSD" || ${OPSYS} == "DragonFly"
SPECIAL_PERMS+= bin/xosview ${REAL_ROOT_USER} kmem 2555
.endif
SUBST_CLASSES+= unpriv
SUBST_STAGE.unpriv= pre-configure
SUBST_FILES.unpriv= config/Makefile.top.in
SUBST_SED.unpriv= -e s,@INSTALL_ARGS@,,
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,
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"