summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukneet Basuta2010-03-04 18:12:55 -0500
committerSukneet Basuta2010-03-04 18:12:55 -0500
commit323db7710132f74e8c4b0b1da6fdffc3fc4ead12 (patch)
tree60d3ecd4bee87778cebb34a48a964a47a9777405
parentf154aca89d7f900ee070e830c4878d0a2033269a (diff)
parentdcd075e20efb74722911fa6e6e82ed2a6965ed77 (diff)
Merge branch 'master' of ssh://scm.sourcemage.org/smgl/grimoire
-rw-r--r--ChangeLog4
-rwxr-xr-xlibs/libnfc/DEPENDS14
-rwxr-xr-xlibs/libnfc/DETAILS30
-rw-r--r--libs/libnfc/HISTORY3
-rwxr-xr-xlibs/libnfc/PREPARE6
-rwxr-xr-xlibs/libnfc/PRE_BUILD5
6 files changed, 62 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ebfd7caf29..390c67265c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-04 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * libs/libnfc: new spell, a library for communicating with RFID
+ devices
+
2010-03-01 Andraž "ruskie" Levstik <ruskie+f03a580f@codemages.net>
* audio-libs/game-music-emu: new spell, game music emulator lib
diff --git a/libs/libnfc/DEPENDS b/libs/libnfc/DEPENDS
new file mode 100755
index 0000000000..4793d5f05b
--- /dev/null
+++ b/libs/libnfc/DEPENDS
@@ -0,0 +1,14 @@
+depends ccid &&
+optional_depends libusb \
+ "--enable-libusb" \
+ "--disable-libusb" \
+ "for PN531USB and PN533USB support" &&
+optional_depends pcsc-lite \
+ "--enable-pcsc-lite" \
+ "--disable-pcsc-lite" \
+ "for ACR122 support" &&
+if [[ "$LIBNFC_SVN" == "y" ]]; then
+ depends automake &&
+ depends autoconf &&
+ depends libtool
+fi
diff --git a/libs/libnfc/DETAILS b/libs/libnfc/DETAILS
new file mode 100755
index 0000000000..8b463855a9
--- /dev/null
+++ b/libs/libnfc/DETAILS
@@ -0,0 +1,30 @@
+ SPELL=libnfc
+if [[ "$LIBNFC_SVN" == "y" ]]; then
+ if [[ "$LIBNFC_SVN_AUTOUPDATE" == "y" ]]; then
+ VERSION=$(date +%Y%m%d)
+ else
+ VERSION=svn
+ fi
+ SOURCE=$SPELL-svn.tar.bz2
+ FORCE_DOWNLOAD=on
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-svn
+ SOURCE_URL[0]=svn_http://libnfc.googlecode.com/svn/trunk:libnfc
+ SOURCE_IGNORE=volatile
+else
+ VERSION=1.3.3
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+ SOURCE_URL[0]=http://${SPELL}.googlecode.com/files/${SOURCE}
+ SOURCE_HASH=sha512:7c6e9a26893d37e43f4e4d90ed21ed3857ed9e7869a169030daf7c90c7b27a428a9e1d8457f4aeb323caab24c7a9d9b59331e70a9b1316694449c81256199206
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+fi
+ WEB_SITE="http://www.libnfc.org"
+ LICENSE[0]=GPL
+ ENTERED=20100304
+ SHORT="a library for communicating with near field communication devices (RFID)"
+cat << EOF
+libnfc is the first free NFC SDK and Programmers API released under the
+GNU Lesser General Public License. It provides complete transparency and
+royalty-free use for everyone. Since the RFID market is spoiled by proprietary
+hard and software we want to contribute constructively by distributing a
+free library which can be used for various RFID and NFC applications.
+EOF
diff --git a/libs/libnfc/HISTORY b/libs/libnfc/HISTORY
new file mode 100644
index 0000000000..861284a426
--- /dev/null
+++ b/libs/libnfc/HISTORY
@@ -0,0 +1,3 @@
+2010-03-04 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * DEPENDS, DETAILS, PRE_BUILD, PREPARE: spell created
+
diff --git a/libs/libnfc/PREPARE b/libs/libnfc/PREPARE
new file mode 100755
index 0000000000..87cc771248
--- /dev/null
+++ b/libs/libnfc/PREPARE
@@ -0,0 +1,6 @@
+config_query LIBNFC_SVN "Build SCM (subversion) version?" y &&
+
+if [ "$LIBNFC_SVN" == "y" ]; then
+ config_query LIBNFC_SVN_AUTOUPDATE \
+ "Automatically update on every system update?" n
+fi
diff --git a/libs/libnfc/PRE_BUILD b/libs/libnfc/PRE_BUILD
new file mode 100755
index 0000000000..e50d31fbe1
--- /dev/null
+++ b/libs/libnfc/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+if [[ "$LIBNFC_SVN" == "y" ]]; then
+ cd ${SOURCE_DIRECTORY} &&
+ NOCONFIGURE=yes ./autogen.sh
+fi