blob: 27fbcd173ab1c377ac279a8797379209b73d400a (
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
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.68 2010/06/27 17:34:35 joerg Exp $
DISTNAME= xosview-1.8.3
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xosview/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xosview.sourceforge.net/
COMMENT= X11 graphical display of OS statistics
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_X11BASE= YES
USE_LANGUAGES= c c++
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --x-includes=${X11BASE:Q}/include
CONFIGURE_ARGS+= --x-libraries=${X11BASE:Q}/lib
INSTALLATION_DIRS= bin lib/X11/app-defaults ${PKGMANDIR}/man1
INSTALL_MAKE_FLAGS+= MANDIR=${DESTDIR}${PREFIX:Q}/${PKGMANDIR:Q}/man1
INSTALL_MAKE_FLAGS+= PREFIX_TO_USE=${DESTDIR}${PREFIX}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
. if !defined(UVM) && exists(/usr/include/uvm/uvm.h)
CFLAGS+= -DUVM
UVM= yes
BUILD_DEFS+= UVM
. endif
.elif ${OPSYS} == "SunOS"
USE_TOOLS+= gmake
CPPFLAGS+= -I${X11BASE:Q}/include
LIBS+= -lsocket -lnsl
.elif ${OPSYS} == "Linux"
USE_TOOLS+= gmake
.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"
|