aboutsummaryrefslogtreecommitdiffstats
path: root/security/idea/Makefile
blob: 12e733c49724c2e96119fc1b99c852c84d5aad8a (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
36
37
38
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   idea
PORTVERSION=    1.2
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://www.de-moliner.ch/richard/downloads/ \
        CRITICAL
DISTNAME=   ${PORTNAME}.V${PORTVERSION}
EXTRACT_SUFX=   .tar.Z

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Command-line IDEA encryption and decryption utility

WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

do-build:
    ${CC} ${WRKSRC}/idea.c ${WRKSRC}/idea_cmd.c ${CFLAGS} \
        -o ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_MAN} ${WRKSRC}/manl/idea.l ${STAGEDIR}${PREFIX}/man/manl
    ${INSTALL_PROGRAM} -m 0555 ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/Examples ${STAGEDIR}${EXAMPLESDIR}

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/byte_ord.ps ${WRKSRC}/idea_cmd.txt \
        ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>