mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
5458b37534
This allows mail/epstools to properly build with clang. Bump port revision libeps.a has to be regenerated While here: - convert to optionsng - trim header
44 lines
888 B
Makefile
44 lines
888 B
Makefile
# Created by: ismail@enderunix.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= eps
|
|
PORTVERSION= 1.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF/${PORTNAME}inter7/${PORTNAME}inter7/${PORTVERSION}
|
|
|
|
MAINTAINER= ismail@EnderUNIX.org
|
|
COMMENT= EPS is a Email Parsing System
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USE_CSTD= gnu89
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
PORTDOCS= howto
|
|
|
|
MAKE_ENV+= DEFS="${CFLAGS}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^CC =|CC \?=|' \
|
|
-e 's|^DEFS =|DEFS \?=|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/libeps.a ${PREFIX}/lib
|
|
${MKDIR} ${PREFIX}/include/eps
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/eps
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${PORTDOCS} ${DOCSDIR}
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|