freebsd-ports/mail/freepops/Makefile
Jean-Yves Lefort 740402253f - Update to 0.0.27 [1]
- Refactor patches into reinplaces
- Respect ${PREFIX} and ${LOCALBASE}
- Automatically install the configuration file
- Polish the Makefile and packing list

PR:		ports/80551 [1]
Submitted by:	maintainer
2005-05-03 13:03:22 +00:00

52 lines
1.4 KiB
Makefile

# New ports collection makefile for: freepops
# Date created: 19 Feb 2005
# Whom: Filippo Natali <filippo@widestore.net>
#
# $FreeBSD$
#
PORTNAME= freepops
PORTVERSION= 0.0.27
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= freepops
MAINTAINER= filippo.natali@gmail.com
COMMENT= Extensible webmail to pop3 interface
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 \
curl:${PORTSDIR}/ftp/curl
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
MAN1= freepopsd.1
USE_GMAKE= yes
HAS_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_SCRIPT= configure.sh
CONFIGURE_ARGS= fbsd
post-patch:
@${REINPLACE_CMD} -e \
's|\(WHERE=\)/usr/local|\1${PREFIX}|; \
s|/usr/local|${LOCALBASE}|; \
s|^CC=gcc||; \
s|-O2 -g3|${CFLAGS}|' \
${WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e \
's|$$(PREFIX)|${PREFIX}/|; \
s|share/\(man/man1\)|\1|; \
s|$$(DESTDIR)\(/etc/freepops\)|${PREFIX}\1|; \
s|\(cp config\.lua\) .*|\1 ${PREFIX}/etc/freepops/config.lua.sample|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|\($$(CFLAGS)\)|\1 ${PTHREAD_CFLAGS}|; \
s|\($$(LDFLAGS)\)|\1 ${PTHREAD_LIBS}|' \
${WRKSRC}/modules/src/luafull/Makefile
post-install:
@${CHMOD} ${SHAREMODE} ${DATADIR}/lua/*.lua
@[ -f ${PREFIX}/etc/freepops/config.lua ] || \
${CP} -f ${PREFIX}/etc/freepops/config.lua.sample \
${PREFIX}/etc/freepops/config.lua
.include <bsd.port.mk>