Skip to content

Commit

Permalink
libam7xxx-0.1.6 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Mar 13, 2016
1 parent 64b79f8 commit 4a401f9
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 60 deletions.
47 changes: 26 additions & 21 deletions libam7xxx/README
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ a few, and on non-PC platforms like for instance mobile phones, tablets or
game consoles.

Runtime requirements:
cygwin-1.7.33-1
libam7xxx-devel-0.1.5-1bl1
libam7xxx0.1-0.1.5-1bl1
libssp0-4.9.2-1
libusb1.0-1.0.19-1
libusb1.0-devel-1.0.19-1
cygwin-2.4.1-1
libam7xxx-devel-0.1.6-1bl1
libam7xxx0.1-0.1.6-1bl1
libssp0-5.3.0-3
libusb1.0-1.0.20-1
libusb1.0-devel-1.0.20-1
pkg-config-0.29-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.24.51-6
cmake-2.8.12.2-3
cygport-0.17.1-1
gcc-core-4.9.2-1
make-4.0-2
binutils-2.25-4
cmake-3.3.2-1
cygport-0.21.0-1
gcc-core-5.3.0-3
make-4.1-1

Canonical website:
http://git.ao2.it/libam7xxx.git/
Expand All @@ -33,17 +34,17 @@ Canonical download:
-------------------------------------------

Build instructions:
unpack libam7xxx-0.1.5-X-src.tar.xz
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
cd /usr/src
cygport ./libam7xxx-0.1.5-X.cygport all
1. unpack libam7xxx-0.1.6-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./libam7xxx-0.1.6-X.cygport all

This will create:
/usr/src/libam7xxx-0.1.5-X-src.tar.xz
/usr/src/libam7xxx-0.1.5-X.tar.xz
/usr/src/libam7xxx0.1-0.1.5-X.tar.xz
/usr/src/libam7xxx-devel-0.1.5-X.tar.xz
/usr/src/libam7xxx-0.1.6-X-src.tar.xz
/usr/src/libam7xxx-0.1.6-X.tar.xz
/usr/src/libam7xxx0.1-0.1.6-X.tar.xz
/usr/src/libam7xxx-devel-0.1.6-X.tar.xz

-------------------------------------------

Expand All @@ -54,7 +55,9 @@ Files included in the binary package:
/usr/bin/picoproj.exe
/usr/share/doc/Cygwin/libam7xxx.README
/usr/share/doc/libam7xxx/ChangeLog
/usr/share/doc/libam7xxx/HACKING.asciidoc
/usr/share/doc/libam7xxx/NEWS
/usr/share/doc/libam7xxx/README.asciidoc
/usr/share/doc/libam7xxx/TODO

(libam7xxx0.1)
Expand All @@ -69,6 +72,8 @@ Files included in the binary package:

Port Notes:

----- version 0.1.6-1bl1 -----
Version bump.

----- version 0.1.5-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>

38 changes: 0 additions & 38 deletions libam7xxx/libam7xxx-0.1.5-1bl1.src.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ CYGCMAKE_ARGS="
-DENABLE_DOXYGEN:BOOL=OFF
"

DOCS="
*.asciidoc
"

PKG_NAMES="
${PN}
${PN}0.1
Expand All @@ -36,7 +40,6 @@ libam7xxx_devel_CONTENTS="
usr/include
usr/lib
"

libam7xxx_SUMMARY="${SUMMARY} (utilities)"
libam7xxx0_1_SUMMARY="${SUMMARY} (runtime)"
libam7xxx_devel_SUMMARY="${SUMMARY} (development)"
55 changes: 55 additions & 0 deletions libam7xxx/libam7xxx-0.1.6-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
--- origsrc/libam7xxx/doc/CMakeLists.txt 2016-03-13 13:08:40.000000000 +0900
+++ src/libam7xxx/doc/CMakeLists.txt 2016-03-13 13:11:29.912745700 +0900
@@ -1,6 +1,7 @@
# add a target to generate API documentation with Doxygen
+option(ENABLE_DOXYGEN "enable doxygen" OFF)
find_package(Doxygen)
-if(DOXYGEN_FOUND)
+if(ENABLE_DOXYGEN AND DOXYGEN_FOUND)
configure_file("Doxyfile.in" "Doxyfile" @ONLY IMMEDIATE)

add_custom_target(doc
--- origsrc/libam7xxx/doc/man/CMakeLists.txt 2016-03-13 13:08:40.000000000 +0900
+++ src/libam7xxx/doc/man/CMakeLists.txt 2016-03-13 13:13:15.549796800 +0900
@@ -1,6 +1,7 @@
# add a target to generate man pages with asciidoc
+option(ENABLE_ASCIIDOC "enable asciidoc" OFF)
find_package(Asciidoc)
-if(ASCIIDOC_FOUND)
+if(ENABLE_ASCIIDOC AND ASCIIDOC_FOUND)
add_custom_target(manpages
${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/am7xxx-play.1.txt -D ${DOC_OUTPUT_PATH}/man
COMMAND ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/am7xxx-modeswitch.1.txt -D ${DOC_OUTPUT_PATH}/man
--- origsrc/libam7xxx/src/CMakeLists.txt 2016-03-13 13:08:40.000000000 +0900
+++ src/libam7xxx/src/CMakeLists.txt 2016-03-13 13:13:57.719513900 +0900
@@ -13,8 +13,11 @@ set_target_properties(am7xxx PROPERTIES
VERSION ${PROJECT_VER}
SOVERSION ${PROJECT_APIVER})
install(TARGETS am7xxx
- DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib)

+option(ENABLE_STATIC "enable static" OFF)
+if(ENABLE_STATIC)
add_library(am7xxx-static STATIC ${SRC})
set_target_properties(am7xxx-static PROPERTIES OUTPUT_NAME am7xxx)
if(UNIX AND NOT APPLE)
@@ -22,6 +25,7 @@ if(UNIX AND NOT APPLE)
endif()
install(TARGETS am7xxx-static
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
+endif()

if(NOT WIN32)
find_library(MATH_LIB m)
@@ -31,7 +35,9 @@ else()
endif()

target_link_libraries(am7xxx ${MATH_LIB} ${LIBUSB_1_LIBRARIES})
+if(ENABLE_STATIC)
target_link_libraries(am7xxx-static ${MATH_LIB} ${LIBUSB_1_LIBRARIES})
+endif()

# Install the header files
install(FILES "am7xxx.h"

0 comments on commit 4a401f9

Please sign in to comment.