Skip to content
Permalink
Browse files

new port: pcsc-tools, closes https://trac.macports.org/ticket/42599

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117787 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
neverpanic committed Mar 12, 2014
1 parent ad6d0bf commit 1d1493995c678a56ddb7e81a4062245d458acb03
Showing with 60 additions and 0 deletions.
  1. +39 −0 sysutils/pcsc-tools/Portfile
  2. +21 −0 sysutils/pcsc-tools/files/patch-Makefile.diff
@@ -0,0 +1,39 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0
PortGroup perl5 1.0

name pcsc-tools
version 1.4.22
categories sysutils
platforms darwin
license GPL-2+
maintainers m4x.org:db_macports openmaintainer

description Tools for accessing PC/SC driver, card or reader.
long_description These tools are used to test a PC/SC driver, card or \
reader or send commands in a friendly environment (text \
or graphical user interface).

homepage http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
master_sites ${homepage}

patchfiles patch-Makefile.diff

checksums rmd160 df66c505bfdf6f4f885a3d2d5b09a19ca4aa2823 \
sha256 615592dd56627bd0ff3650608bb7eefe3e9f43cc18ca2d805ebf0bf74d30f307

depends_lib port:p${perl5.major}-pcsc

variant universal {}

use_configure no
destroot.destdir DESTDIR=${destroot}${prefix}
build.args-append CC=${configure.cc} \
CXX=${configure.cxx} \
CPP=${configure.cpp} \
CPPFLAGS="${configure.cppflags}" \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
@@ -0,0 +1,21 @@
--- Makefile.orig 2012-06-16 12:33:32.000000000 +0200
+++ Makefile 2014-02-01 22:37:23.000000000 +0100
@@ -8,13 +8,13 @@
DESTDIR ?= /usr/local

VERSION := $(shell pwd | sed s/.*tools-//)
-CFLAGS := $(CFLAGS) -DVERSION=\"$(VERSION)\" $(PCSC_CFLAGS)
-LDLIBS := $(PCSC_LDLIBS)
+#CFLAGS := $(CFLAGS) -DVERSION=\"$(VERSION)\" $(PCSC_CFLAGS)
+#LDLIBS := $(PCSC_LDLIBS)
# On xBSD systems use
#LDLIBS = -lc_r $(PCSC_LDLIBS)
# on MacOSX
-#CFLAGS = -Wall -O2 -DVERSION=\"$(VERSION)\"
-#LDLIBS = -framework PCSC
+override CFLAGS += -Wall -O2 -DVERSION=\"$(VERSION)\"
+override LDLIBS += -framework PCSC

BIN = pcsc_scan
BIN_SCRIPT = ATR_analysis gscriptor scriptor

0 comments on commit 1d14939

Please sign in to comment.
You can’t perform that action at this time.