File:  [cvs.NetBSD.org] / pkgsrc / mail / faces / Makefile
Revision 1.58: download - view: text, annotated - select for diffs
Mon Oct 8 12:19:11 2012 UTC (12 years ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.58 2012/10/08 12:19:11 asau Exp $

DISTNAME=	faces-1.6.1
PKGREVISION=	6
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.cs.indiana.edu/pub/faces/faces/faces-1.6.1/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Visual mail, user and print face server
LICENSE=	faces-license

RESTRICTED=	Distribution not allowed if money exchanged
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

DEPENDS+=	netpbm>=9.2:../../graphics/netpbm

CONFLICTS=	compface-[0-9]*

WRKSRC=			${WRKDIR}/faces
USE_X11BASE=		YES
USE_LIBTOOL=		YES
USE_TOOLS+=		perl:run yacc

MAKE_FLAGS+=	PREFIX=${PREFIX:Q}
MAKE_FLAGS+=	CCOMP=${CFLAGS:M*:Q}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
MAKE_ENV+=	SVR4LIBS="-lnsl -lsocket -lgen"
MAKE_ENV+=	SYSV=-DSYSV32
MAKE_ENV+=	CC=gcc
MAKE_ENV+=	CPPFLAGS=
.endif

.if ${OPSYS} != "Interix"
MAKE_ENV+=	NISLOOKUP=-DNISLOOKUP
.endif

INSTALL_MAKE_FLAGS+=	PREFIX=${DESTDIR}${PREFIX}

INSTALLATION_DIRS+=	bin lib include ${PKGMANDIR}/man1 ${PKGMANDIR}/man3

REPLACE_PERL=	scripts/addxface scripts/deepen scripts/facesaddr \
		scripts/facesall scripts/from.faces scripts/lpqall.faces \
		scripts/mailq.faces scripts/mailqto scripts/mailqto.faces \
		scripts/mkfacesindex scripts/newscheck.faces \
		scripts/newsfrom.faces scripts/rotary.faces

post-extract:
	${LN} -sf Makefile.dist ${WRKSRC}/${MAKE_FILE}

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	pre-configure
SUBST_FILES.prefix=							\
		x11.c							\
		scripts/addxface					\
		scripts/facesall					\
		scripts/mkfacesindex
SUBST_VARS.prefix=	PREFIX

.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>