pkgsrc/mail/faces/Makefile
2004-02-14 18:22:56 +00:00

61 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.37 2004/02/14 18:22:56 minskim Exp $
DISTNAME= faces-1.6.1
PKGREVISION= 2
CATEGORIES= mail
MASTER_SITES= ftp://ftp.cs.indiana.edu/pub/faces/faces/faces-1.6.1/
EXTRACT_SUFX= .tar.Z
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= Visual mail, user and print face server
DEPENDS+= netpbm>=9.2:../../graphics/netpbm
CONFLICTS= compface-[0-9]*
LICENSE= limited-redistribution
RESTRICTED= "Distribution not allowed if money exchanged"
WRKSRC= ${WRKDIR}/faces
USE_BUILDLINK3= YES
USE_X11BASE= YES
USE_LIBTOOL= YES
MAKE_FLAGS+= PREFIX="${PREFIX}"
MAKE_FLAGS+= CCOMP="${CFLAGS}"
.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
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
do-configure:
${LN} -sf Makefile.dist ${WRKSRC}/${MAKEFILE}
cd ${WRKSRC}; \
files=" \
x11.c \
scripts/addxface \
scripts/facesall \
scripts/mkfacesindex \
"; \
for FILE in $${files}; do \
${SED} -e "s|@PREFIX@|${PREFIX}|g" \
$${FILE} > $${FILE}.fixed; \
if [ -x $${FILE} ]; then \
${CHMOD} +x $${FILE}.fixed; \
fi; \
${MV} -f $${FILE}.fixed $${FILE}; \
done
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"