aboutsummaryrefslogtreecommitdiffstats
path: root/mail/eps/Makefile
blob: 99c2e1bc9529dba4a73541d3bf9ab833fb1b88d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: ismail@enderunix.org
# $FreeBSD$

PORTNAME=   eps
PORTVERSION=    1.7
PORTREVISION=   1
CATEGORIES= mail
MASTER_SITES=   SF/${PORTNAME}inter7/${PORTNAME}inter7/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    EPS is a Email Parsing System

OPTIONS_DEFINE= DOCS

USE_CSTD=   gnu89

CFLAGS_amd64=   -fPIC

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 ${STAGEDIR}${PREFIX}/lib
    ${MKDIR} ${STAGEDIR}${PREFIX}/include/eps
    ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/eps
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>