pkgsrc/sysutils/asapm/Makefile
joerg d26cf36e57 - fine grained X11 dependencies for packages which have either USE_IMAKE
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or
  via buildlink3.mks
- introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm
  in the !modular case
- fix some cases where the check for libX11 couldn't work at all by using
  C++ for compilation without including the proper headers

Verified using a full X11_TYPE=xorg bulk build without additional
breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
2006-12-27 13:37:35 +00:00

26 lines
884 B
Makefile

# $NetBSD: Makefile,v 1.37 2006/12/27 13:37:39 joerg Exp $
#
DISTNAME= asapm-2.11
PKGREVISION= 4
CATEGORIES= sysutils x11
MASTER_SITES= http://www.tigr.net/afterstep/download/asapm/ \
ftp://ftp.afterstep.org/apps/asapm/ \
ftp://fuf.sh.cvut.cz/pub/AfterStep/apps/asapm/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.tigr.net/afterstep/detail.pl?applet=asapm
COMMENT= Laptop battery status display for X11
.if !exists(/usr/include/machine/apmvar.h)
PKG_FAIL_REASON+= "APM needs /usr/include/machine/apmvar.h to build."
.endif
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --disable-jpeg # there actually is no JPEG support
CONFIGURE_ARGS+= --with-xpm
CONFIGURE_ARGS+= --with-xpm-includes=${BUILDLINK_PREFIX.libXpm}/include
CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"