Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
pcsc-acr38
ACR38_LINUX_100709-automake-cleanup.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ACR38_LINUX_100709-automake-cleanup.patch of Package pcsc-acr38
--- Makefile.am +++ Makefile.am @@ -6,3 +6,5 @@ # -- Top-level Makefile.am -- SUBDIRS = src/controllib src/driver + +DISTCHECK_CONFIGURE_FLAGS = --enable-usbdropdir=$$dc_install_base/pcsc/drivers --- configure.ac +++ configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.52) -AC_INIT([ACR38UDriver], [1.0.7.5], edward.cheung@acs.com.hk) +AC_INIT([ACR38UDriver], [1.7.9], edward.cheung@acs.com.hk) AC_CONFIG_SRCDIR([src/driver/AdmHndlr.c]) AC_CONFIG_AUX_DIR(build) AC_CONFIG_HEADER([config.h]) @@ -73,23 +73,8 @@ fi fi -# removed by ZETES -# AC_SUBST([PKG_PCSC_CONFIG_PATH],[$pcscdropdir/lib/pkgconfig]) -# removed by ZETES -# AC_SUBST([PKG_PCSCLITE],[$pcscdropdir/lib/pkgconfig/libpcsclite.pc]) - -# added by ZETES ... -PKG_PCSCLITE="libpcsclite" -# ... added by ZETES - # Check if pkg-config exists -AC_CHECK_PROG([PKGCONFIG], [pkg-config], [yes]) -if test "$PKGCONFIG" = "yes"; then - if ! `pkg-config --print-errors --atleast-version=1.2.0 $PKG_PCSCLITE` - then - AC_MSG_ERROR([install pcsc-lite 1.2.0 or later]) - fi -fi +PKG_CHECK_MODULES([PCSCLITE], [libpcsclite >= 1.2.0]) # --enable-usbdropdir=DIR AC_ARG_ENABLE([usbdropdir], @@ -99,20 +84,8 @@ [usbdropdir=false]) if test "${usbdropdir}" = false ; then - if test "$PKGCONFIG" = yes ; then - usbdropdir=`pkg-config $PKG_PCSCLITE --variable=usbdropdir` - else - usbdropdir="" - fi - if test -z "$usbdropdir" ; then - if test "$prefix" = NONE ; then - usbdropdir="$ac_default_prefix/pcsc/drivers" - else - usbdropdir="$prefix/pcsc/drivers" - fi - fi + usbdropdir=`$PKG_CONFIG libpcsclite --variable=usbdropdir` fi - AC_SUBST(usbdropdir) AC_MSG_RESULT([USB drop directory : $usbdropdir]) @@ -134,38 +107,11 @@ AC_PROG_CC AC_PROG_LIBTOOL -# Checks for libraries. -# FIXME: Replace `main' with a function in `-lpcsclite': -#AC_CHECK_LIB([pcsclite], [main]) -# FIXME: Replace `main' with a function in `-lpthread': -#AC_CHECK_LIB([pthread], [main]) - # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h limits.h malloc.h memory.h stdlib.h string.h sys/ioctl.h syslog.h unistd.h]) -# Test if pcsclite-1.2.9betaX is installed -#if test -d $pcsclite_inc/PCSC; then -# echo "PCSCLITE-1.2.9 or above is installed" -# pcsclite_inc="$pcsclite_inc/PCSC" -#else -# echo "PCSCLITE-1.2.0 is installed" -#fi - -# Setup the compiler and linker flag -OLD_CFLAGS=$CFLAGS -CFLAGS="$CFLAGS `pkg-config --cflags $PKG_PCSCLITE`" - -# Check for pcsclite header files -# removed by ZETES NO_PCSC_MSG="Please install PCSCLITE 1.2.0 or later before building the driver!!" -# removed by ZETES AC_CHECK_HEADER([pcsclite.h],,[AC_MSG_ERROR([$NO_PCSC_MSG])],[#include <pcsclite.h>]) - -# removed by ZETES CFLAGS=$OLD_CFLAGS - -AC_SUBST(LIBPCSCLITE) -LIBPCSCLITE=`pkg-config --libs $PKG_PCSCLITE` - # Select OS specific versions of source files. AC_SUBST(BUNDLE_HOST) AC_SUBST(DYN_LIB_EXT) @@ -205,6 +151,7 @@ AC_CONFIG_FILES([Makefile src/driver/Makefile src/controllib/Makefile - src/controllib/libacr38ucontrol.pc]) + src/controllib/libacr38ucontrol.pc + src/driver/Info.plist]) AC_OUTPUT --- src/controllib/Makefile.am +++ src/controllib/Makefile.am @@ -4,9 +4,7 @@ # # Process this file with automake to produce a Makefile.in script. -ACR38_CONTROLLIB = libacr38ucontrol.$(DYN_LIB_EXT) - -AM_CPPFLAGS = -I../driver `pkg-config libpcsclite --cflags` +AM_CPPFLAGS = -I $(top_srcdir)/src/driver $(PCSCLITE_CFLAGS) lib_LTLIBRARIES = libacr38ucontrol.la include_HEADERS = ACS38DrvTools.h @@ -16,8 +14,6 @@ ACS38DrvTools.h libacr38ucontrol_la_SOURCES = $(SRC_CONTROLLIB) -libacr38ucontrol_la_CFLAGS = `pkg-config libpcsclite --cflags` -#pcdir= $(PKG_PCSC_CONFIG_PATH) -pcdir= @prefix@/lib/pkgconfig -pc_DATA = libacr38ucontrol.pc +pkgconfigdir= $(libdir)/pkgconfig +pkgconfig_DATA = libacr38ucontrol.pc --- src/driver/Info.plist.in +++ src/driver/Info.plist.in @@ -5,7 +5,7 @@ <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> - <string>ACR38UDriver</string> + <string>ACR38UDriver.@DYN_LIB_EXT@</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundlePackageType</key> --- src/driver/Makefile.am +++ src/driver/Makefile.am @@ -5,15 +5,16 @@ # Process this file with automake to produce a Makefile.in script. DRIVER_NAME = ACR38UDriver -DRIVER_LIB_NAME = lib$(DRIVER_NAME).$(DYN_LIB_EXT) DRIVER_BUNDLE_DIR = $(DRIVER_NAME).bundle -DRIVER_INSTALL_HOME_DIR = pcsc/drivers/$(DRIVER_LIB_NAME).bundle/Contents/Linux -AM_CPPFLAGS = `pkg-config libpcsclite --cflags` +driverdir=$(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST) -EXTRA_DIST = Info.plist +AM_CPPFLAGS = $(PCSCLITE_CFLAGS) -lib_LTLIBRARIES = libACR38UDriver.la +plistdir=$(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents +plist_DATA=Info.plist + +driver_LTLIBRARIES = ACR38UDriver.la SRC_DRV = ACR38IOCtrl.h \ AdmHndlr.c \ @@ -21,6 +22,7 @@ ctapi.h \ MCU_ATR.c \ SysConfig.c \ + SysConfig.h \ usbserial_linux.c \ usbserial_linux.h \ AdmHndlr.h \ @@ -37,14 +39,6 @@ SRC_USB = usblinux.c \ usblinux.h -libACR38UDriver_la_SOURCES = $(SRC_DRV) $(SRC_USB) -libACR38UDriver_la_LIBADD = @LIBPCSCLITE@ @COREFOUNDATION@ @IOKIT@ - -install: libACR38UDriver.la - $(mkinstalldirs) $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/ - $(INSTALL) .libs/$(DRIVER_LIB_NAME) $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/$(DRIVER_NAME) - $(INSTALL) Info.plist $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents -# chmod 755 $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/$(DRIVER_LIB_NAME) - -uninstall: - rm -rf $(usbdropdir)/$(DRIVER_BUNDLE_DIR) +ACR38UDriver_la_SOURCES = $(SRC_DRV) $(SRC_USB) +ACR38UDriver_la_LIBADD = $(PCSCLITE_LIBS) $(COREFOUNDATION) $(IOKIT) +ACR38UDriver_la_LDFLAGS = -module -avoid-version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor