pkgsrc/sysutils/xosview/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.76 2020/05/24 11:24:19 rillig Exp $
DISTNAME= xosview-1.22
CATEGORIES= sysutils x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=hills/}
2008-02-04 15:42:14 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.pogo.org.uk/~mark/xosview/
COMMENT= X11 graphical display of OS statistics
USE_TOOLS+= gmake
USE_LANGUAGES= c gnu++03
1999-04-07 12:09:18 +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"
.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)
CFLAGS+= -DUVM
UVM= yes
BUILD_DEFS+= UVM
2002-09-23 23:55:11 +02:00
. endif
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
post-install:
${INSTALL_DATA} ${WRKSRC}/Xdefaults ${DESTDIR}${PREFIX}/lib/X11/app-defaults/XOsview
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"