summaryrefslogtreecommitdiff
path: root/mail/faces/Makefile
blob: 971a3070534e8733b0659370c4f0db416d9696a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $NetBSD: Makefile,v 1.62 2015/06/12 10:50:19 wiz Exp $

DISTNAME=	faces-1.6.1
PKGREVISION=	9
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}
MAKE_FLAGS+=	MANDIR=${PREFIX:Q}/${PKGMANDIR: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:Q}${PREFIX:Q}	\
			MANDIR=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}

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"