aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-pcsc-lite/Makefile
blob: 398479b50510f873c01d4cf9e00ae5f925b40408 (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
42
43
44
45
46
47
# New ports collection makefile for:    PCSC-ruby
# Date created:     27 Dec 2001
# Whom:         Toni Andjelkovic <toni@soth.at>
#
# $FreeBSD$
#

PORTNAME=   pcsc-lite
PORTVERSION=    0.8
PORTREVISION=   1
CATEGORIES= devel ruby
MASTER_SITES=   http://soth.at/PCSC-ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   PCSC-ruby-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= toni@soth.at
COMMENT=    Ruby extension for the UNIX PC/SC Lite API (MUSCLE)

LIB_DEPENDS=    pcsclite.1:${PORTSDIR}/devel/pcsc-lite

BROKEN=     "Does not compile with new pcsc-lite. Port will be updated soon."

USE_RUBY=   yes
RUBY_VER=   1.8
CONFIGURE_ARGS+=    --with-pcsclite-dir="${PREFIX}"
USE_RUBY_EXTCONF=   yes
RUBY_SETUP= install.rb

WRKSRC=     ${WRKDIR}/PCSC-ruby

DOCS=       README.txt
EXAMPLES=   examples/test.rb examples/pcsclient.rb

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}/
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${EXAMPLES}
    ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
.endif

.include <bsd.port.mk>