pkgsrc/sysutils/xosview/Makefile

55 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.65 2007/11/30 19:32:55 rillig Exp $
DISTNAME= xosview-1.8.3
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xosview/}
MAINTAINER= veego@NetBSD.org
HOMEPAGE= http://xosview.sourceforge.net/
COMMENT= X11 graphical display of OS statistics
PKG_INSTALLATION_TYPES= overwrite pkgviews
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
MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q}/man1
.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 ${UNPRIVILEGED:M[Yy][Ee][Ss]} != ""
SUBST_CLASSES+= unpriv
SUBST_STAGE.unpriv= pre-configure
SUBST_FILES.unpriv= config/Makefile.top.in
SUBST_SED.unpriv= -e s,@INSTALL_ARGS@,,
.endif
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"