pkgsrc/misc/screen/Makefile
atatat 6ac8f64732 Put the config.h.in patch into its own patch file and add more to it
that forces varargs to be used on NetBSD.  Some gcc 3.3 instances
(specifically 3.3.3nb1 on NetBSD/alpha) fail one of the configure
tests making it think we don't have sprintf() (and therefore no
varargs) causing unmentionably evil things to be done instead.  This
usually leads to core dumps.

Fix a pointer-to-integer cast warning by casting to long in between.
The actual use case is harmless, but the compiler can't tell that.

Bump PKGREVISION to 1 for the gcc workaround (affects at least
NetBSD/alpha which can now build a better screen).

Addresses PR pkg/25937.
2004-07-15 04:05:40 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.53 2004/07/15 04:05:40 atatat Exp $
DISTNAME= screen-4.0.2
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU:=screen/}
MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/screen/screen.html
COMMENT= Multi-screen window manager
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
INFO_FILES= screen.info
PLIST_SUBST= DISTNAME=${DISTNAME}
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
CONFIGURE_ARGS+= --enable-telnet
.include "../../mk/bsd.prefs.mk"
post-patch:
@for file in etc/etcscreenrc doc/screen.1; do \
${MV} ${WRKSRC}/$$file ${WRKSRC}/$$file.orig; \
${SED} ${FILES_SUBST_SED} \
${WRKSRC}/$$file.orig > ${WRKSRC}/$$file; \
done
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
${PREFIX}/share/examples/screen/screenrc
.if ${OPSYS} == "SunOS"
cd ${WRKSRC}/terminfo && \
${SETENV} TERMINFO=${PREFIX}/share/lib/terminfo \
/usr/5bin/tic screeninfo.src
.endif
.include "../../mk/bsd.pkg.mk"