2020-05-24 13:24:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.76 2020/05/24 11:24:19 rillig Exp $
|
1997-10-24 12:11:28 +02:00
|
|
|
|
2020-05-24 13:24:19 +02:00
|
|
|
DISTNAME= xosview-1.22
|
|
|
|
CATEGORIES= sysutils x11
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=hills/}
|
1997-10-24 12:11:28 +02:00
|
|
|
|
2008-02-04 15:42:14 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://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
|
|
|
|
2020-05-24 13:24:19 +02:00
|
|
|
USE_TOOLS+= gmake
|
|
|
|
USE_LANGUAGES= c gnu++03
|
1999-04-07 12:09:18 +02:00
|
|
|
|
2020-05-24 13:24:19 +02:00
|
|
|
AUTO_MKDIRS= yes
|
2004-01-05 13:48:30 +01:00
|
|
|
|
1999-04-07 12:09:18 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2020-05-24 13:24:19 +02:00
|
|
|
.if ${OPSYS} == Linux
|
|
|
|
MAKE_FLAGS+= PLATFORM=linux
|
|
|
|
.elif ${OPSYS} == IRIX
|
|
|
|
MAKE_FLAGS+= PLATFORM=irix65
|
|
|
|
.elif ${OPSYS:M*BSD} || ${OPSYS} == DragonFly
|
|
|
|
MAKE_FLAGS+= PLATFORM=bsd
|
|
|
|
.elif ${OPSYS} == SunOS
|
|
|
|
MAKE_FLAGS+= PLATFORM=sunos5
|
|
|
|
.else
|
|
|
|
MAKE_FLAGS+= PLATFORM=gnu
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILD_TARGET= xosview
|
|
|
|
MAKE_ENV+= LDLIBS=${LIBS:Q}
|
|
|
|
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
|
|
|
|
LIBS.NetBSD+= -lkvm -lprop
|
|
|
|
LIBS.SunOS+= -lsocket -lnsl
|
|
|
|
CPPFLAGS.SunOS+= -I${X11BASE}/include
|
|
|
|
ICON_THEMES= yes
|
|
|
|
|
1999-04-07 12:09:18 +02:00
|
|
|
.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
|
|
|
.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
|
|
|
|
|
2020-05-24 13:24:19 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Xdefaults ${DESTDIR}${PREFIX}/lib/X11/app-defaults/XOsview
|
2007-04-09 23:22:11 +02:00
|
|
|
|
2020-05-24 13:24:19 +02:00
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
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"
|