pkgsrc/x11/rxvt/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

70 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.51 2006/12/27 13:37:43 joerg Exp $
DISTNAME= rxvt-2.7.10
PKGREVISION= 5
CATEGORIES= x11
MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/ \
ftp://mason.primenet.com.au/pub/rxvt/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= gcw@rxvt.org
HOMEPAGE= http://www.rxvt.org/
COMMENT= Low memory usage xterm replacement that supports color
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_X11BASE= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-utmp \
--enable-wtmp \
--enable-lastlog \
--enable-xpm-background \
--enable-transparency \
--enable-menubar \
--enable-rxvt-scroll \
--enable-next-scroll \
--enable-xterm-scroll \
--enable-xim \
--enable-ttygid \
--enable-xgetdefault \
--enable-frills \
--enable-linespace \
--enable-24bit \
--enable-keepscrolling \
--enable-mousewheel \
--enable-greek \
--enable-slipwheeling \
--enable-languages \
--with-encoding=noenc
CONFIGURE_ARGS+= --with-xpm-includes=${BUILDLINK_PREFIX.libXpm}/include/X11
CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin"
# Make rxvt setuid root so that tty ownership setting and utmp logging
# function correctly.
#
SPECIAL_PERMS= ${PREFIX}/bin/rxvt ${SETUID_ROOT_PERMS}
.endif
.if ${OPSYS} == "SunOS"
CFLAGS+= -DSunOS
.endif
post-patch:
${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig
${SED} < ${WRKSRC}/src/feature.h.orig > ${WRKSRC}/src/feature.h \
-e "s:/usr/lib/X11/app-defaults:${PREFIX}/lib/X11/app-defaults:"
pre-install:
if [ ! -f ${PREFIX}/lib/X11/app-defaults/Rxvt ]; then \
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults; \
${INSTALL_DATA} ${FILESDIR}/Rxvt ${PREFIX}/lib/X11/app-defaults; \
fi
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"