First working version of autotools scripts

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@136 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
oepen
2010-06-08 08:08:35 +00:00
parent 275514919d
commit 25146f0397
5 changed files with 18 additions and 3528 deletions

3507
pace-gui/configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -23,5 +23,6 @@ AC_SUBST(PYGTK_LIBS)
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile])
src/Makefile
src/pinpad_globals.py])
AC_OUTPUT

View File

@@ -1,21 +1,14 @@
EXTRA_DIST = pinpad.in
bin_SCRIPTS = pinpad.py
pinpaddir = $(prefix)/bin
pinpad_PYTHON = \
pinpad_globals.py
uidir = $(datadir)/pinpad
ui_DATA = pinpad.glade
all-local:
perl -ne "s|PYTHONDIR|$(pythondir)| ; print" $(srcdir)/pinpad.in > tmp
perl -ne "s|PYTHONBIN|$(PYTHON)| ; print" tmp > pinpad
rm -f tmp
install-exec-local: all-local
$(mkinstalldirs) $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) pinpad $(DESTDIR)$(bindir)/pinpad
uninstall-local:
rm -f $(DESTDIR)$(bindir)/pinpad
clean-local:
rm -f pinpad
EXTRA_DIST = \
$(bin_SCRIPTS) \
$(pinpad_PYTHON) \
$(ui_DATA)

View File

@@ -2,7 +2,6 @@
import sys, os
import subprocess
import time
try:
import pygtk
pygtk.require("2.0")
@@ -14,8 +13,8 @@ try:
except:
sys.exit(1)
#GUITARGET is set by the build system
PATH = GUITARGET
#glade_dir is set by the build system
from pinpad_globals import glade_dir
class PinpadGTK:
"""This a simple GTK based GUI to enter a PIN"""
@@ -30,7 +29,7 @@ class PinpadGTK:
self.pin = ""
#Set the Glade file
self.gladefile = PATH+"pinpad.glade"
self.gladefile = glade_dir + "/pinpad.glade"
self.builder = gtk.Builder()
self.builder.add_from_file(self.gladefile)

View File

@@ -0,0 +1,4 @@
name = "pinpad"
version = "@VERSION@"
image_dir = "@prefix@/share/pixmaps"
glade_dir = "@prefix@/share/" + name