pkgsrc/mail/cucipop/Makefile
jmmv 965e8e57a5 Avoid hardcoding /usr/pkg in patch files.
Do the "dynamic" substitution in the pre-configure target instead of post-patch
so that patches can be generated properly after a "make patch".
2003-06-07 17:48:34 +00:00

37 lines
851 B
Makefile

# $NetBSD: Makefile,v 1.9 2003/06/07 17:48:34 jmmv Exp $
#
DISTNAME= cucipop-1.31
CATEGORIES= mail
MASTER_SITES= ftp://ftp.informatik.rwth-aachen.de/pub/packages/cucipop/
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= cucipop-1.31-v6-20010223.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= tech-pkg@netbsd.org
COMMENT= The Cubic Circle POP3 mail server
LICENSE= shareware
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
# to be friendly with pre-1.5 systems
.if defined(USE_INET6) && ${USE_INET6} == "YES"
MAKE_ENV+= CFLAGS_INET6=-DINET6
.endif
.if ${OPSYS} == "SunOS"
LDFLAGS+= -lnsl -lsocket
.endif
pre-configure:
@(cd ${WRKSRC}; \
for f in config.h cucipop.8 makevpopdb.8; do \
${SED} -e 's|@prefix@|${PREFIX}|g' $$f > $$f.fixed && \
${MV} $$f.fixed $$f; \
done)
.include "../../mk/bsd.pkg.mk"