aboutsummaryrefslogtreecommitdiffstats
path: root/security/libsectok/Makefile
blob: 6dfabb1fee76964bf82f5471499d3e8b6cbfa34d (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
39
40
41
# Created by: Bruce M Simpson <bms@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libsectok
PORTVERSION=    20030619
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://www.citi.umich.edu/projects/smartcard/

MAINTAINER= ports@FreeBSD.org
COMMENT=    ISO 7816 Smartcard API Library

USE_OPENSSL=    yes
USE_LDCONFIG=   yes

PLIST_FILES=    include/sectok.h lib/libsectok.a lib/libsectok.so \
        lib/libsectok.so.3 man/man3/sectok.3.gz

post-patch:
    @${REINPLACE_CMD} -e \
        '/^VERSION/s|3.1|3| ; \
         s|^CFLAGS=|CFLAGS+=| ; \
         s|-g |$${CPPFLAGS} | ; \
         s|^LDFLAGS=|LDFLAGS+=| ; \
         s|-x .* -shared|-shared| ; \
         s|^CC=|CC?=| ; \
         /^LD/s|ld|$$(CC)| ; \
         s|-fpic|-fPIC|' ${WRKSRC}/Makefile

do-install:
    (cd ${WRKSRC} && ${INSTALL_DATA} sectok.h \
        ${STAGEDIR}${PREFIX}/include)
    (cd ${WRKSRC} && ${INSTALL_DATA} libsectok.a \
        ${STAGEDIR}${PREFIX}/lib)
    (cd ${WRKSRC} && ${INSTALL_LIB} libsectok.so.3 \
        ${STAGEDIR}${PREFIX}/lib)
    ${LN} -s libsectok.so.3 ${STAGEDIR}${PREFIX}/lib/libsectok.so
    (cd ${WRKSRC} && ${INSTALL_MAN} sectok.3 \
        ${STAGEDIR}${MANPREFIX}/man/man3)

.include <bsd.port.mk>