mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
82cd4fd94a
- Convert to new LIB_DEPENDS format - Respect CFLAGS by disabling FDEBUG var in Makefile - Support stage, unmute install commands - Remove Author tag from pkg-descr PR: ports/184378 [1] Submitted by: Timothy Beyer <beyert@cs.ucr.edu> Approved by: maintainer timeout
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fdm
|
|
PORTVERSION= 1.7
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= chifeng@gmail.com
|
|
COMMENT= Fetches and delivers mail
|
|
|
|
LICENSE= ISCL
|
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
|
|
libtdb.so:${PORTSDIR}/databases/tdb
|
|
|
|
PLIST_FILES= bin/fdm man/man1/fdm.1.gz man/man5/fdm.conf.5.gz
|
|
PORTDOCS= CHANGES README MANUAL
|
|
PORTEXAMPLES= n-marriott.conf f-terbeck.conf t-ulmer.conf w-maier.conf g-lando.conf
|
|
MAKE_ARGS= -DPCRE -DDB
|
|
HAS_CONFIGURE= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/*.[ch15]
|
|
@${REINPLACE_CMD} -e 's|/usr/local/include/openssl|/usr/include/openssl|;\
|
|
s|-I-||g; s|-g bin -o root||g; s|^FDEBUG|#&|;\
|
|
s|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${MAKEFILE}
|
|
cd ${WRKSRC} && ${AWK} -f tools/makemanual.awk MANUAL.in > MANUAL
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} \
|
|
${STAGEDIR}${EXAMPLESDIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|