Skip to content

Commit

Permalink
libptp2-1.2.0 (rebuild with gcc-12.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 29, 2025
1 parent f0e30e4 commit 26702cd
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 25 deletions.
27 changes: 15 additions & 12 deletions libptp2/README
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ cameras or MP3 players (KODAK mc3). You can download files or tweak camera
properties using ptpcam program boundled with libptp2.

Runtime requirements:
cygwin-2.9.0-3
libptp2-devel-1.2.0-1bl1
libptp2_1-1.2.0-1bl1
pkg-config-0.29.1-1
cygwin-3.5.6-1
libptp2-devel-1.2.0-1bl2
libptp2_1-1.2.0-1bl2
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
autoconf-13-1
automake-10-1
binutils-2.28-3
cygport-0.24.1-1
gcc-core-6.4.0-1
libtool-2.4.6-5
make-4.2.1-2
autoconf-15-2
automake-20240607-1
binutils-2.43.1-1
cygport-0.36.9-1
gcc-core-12.4.0-3
libtool-2.5.4-1
make-4.4.1-2

Canonical website:
http://libptp.sf.net/
https://sourceforge.net/projects/libptp/

Canonical download:
mirror://sourceforge/libptp/libptp2-1.2.0.tar.gz
Expand Down Expand Up @@ -67,6 +67,9 @@ Files included in the binary package:

Port Notes:

----- version 1.2.0-1bl2 -----
Rebuild with gcc-12.4.0

----- version 1.2.0-1bl1 -----
Version bump.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
HOMEPAGE="http://libptp.sf.net/"
HOMEPAGE="https://sourceforge.net/projects/libptp/"
SRC_URI="mirror://sourceforge/libptp/${P}.tar.gz"
PATCH_URI="
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/${PN}/files/${PN}-1.1.10-configure.patch
"

CATEGORY="Libs"
SUMMARY="Library and client for communicating with PTP enabled devices"
DESCRIPTION="libptp2 is a library used to communicate with PTP devices like still imaging
cameras or MP3 players (KODAK mc3). You can download files or tweak camera
properties using ptpcam program boundled with libptp2."

LICENSE="GPL-3.0-or-later"
LICENSE_SPDX="SPDX-License-Identifier: GPL-3.0-or-later"
LICENSE_URI="COPYING"

CYGCONF_ARGS="
--disable-ptpcam
"
Expand All @@ -23,7 +24,7 @@ libptp2_CONTENTS="
usr/share
"
libptp2_1_CONTENTS="
usr/bin/
usr/bin/cyg*-1.dll
"
libptp2_devel_CONTENTS="
usr/include
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- origsrc/libptp2-1.2.0/Makefile.am 2016-01-12 06:04:39.000000000 +0900
+++ src/libptp2-1.2.0/Makefile.am 2017-10-07 00:18:04.481380000 +0900
+++ src/libptp2-1.2.0/Makefile.am 2025-01-29 18:37:10.050628700 +0900
@@ -1,3 +1,7 @@

SUBDIRS = src
Expand All @@ -8,17 +8,28 @@
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libptp2.pc
--- origsrc/libptp2-1.2.0/configure.in 2017-10-07 00:18:03.606341100 +0900
+++ src/libptp2-1.2.0/configure.in 2017-10-07 00:18:04.481380000 +0900
@@ -185,5 +185,6 @@ AC_NEED_STDINT_H(src/libptp-stdint.h)
--- origsrc/libptp2-1.2.0/configure.in 2016-01-12 21:38:39.000000000 +0900
+++ src/libptp2-1.2.0/configure.in 2025-01-29 19:02:49.547516500 +0900
@@ -158,9 +158,8 @@ AC_ARG_WITH([libusbdir],
*** use --disable-ptpcam option to build without ptpcam tool.
])
fi
-
-fi
])
+fi

dnl Create a header file containing NetBSD-style byte swapping macros
AC_NEED_BYTEORDER_H(src/libptp-endian.h)
@@ -171,5 +170,6 @@ AC_NEED_STDINT_H(src/libptp-stdint.h)
AC_CONFIG_FILES([
Makefile
src/Makefile
+libptp2.pc
])
AC_OUTPUT
--- origsrc/libptp2-1.2.0/libptp2.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/libptp2-1.2.0/libptp2.pc.in 2017-10-07 00:18:04.481380000 +0900
+++ src/libptp2-1.2.0/libptp2.pc.in 2025-01-29 18:37:10.050628700 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
Expand All @@ -31,13 +42,13 @@
+Libs: -L${libdir} -lptp2
+Cflags: -I${includedir}
--- origsrc/libptp2-1.2.0/src/Makefile.am 2016-01-12 06:04:39.000000000 +0900
+++ src/libptp2-1.2.0/src/Makefile.am 2017-10-07 00:18:43.323999800 +0900
+++ src/libptp2-1.2.0/src/Makefile.am 2025-01-29 18:37:10.050628700 +0900
@@ -3,7 +3,7 @@ EXTRA_DIST = ptp-pack.c
lib_LTLIBRARIES = libptp2.la

libptp2_la_SOURCES = ptp.c ptp.h properties.c
-libptp2_la_LDFLAGS = -version-info @LIBPTP2_VERSION_INFO@
+libptp2_la_LDFLAGS = -version-info @LIBPTP2_VERSION_INFO@ -no-undefined
+libptp2_la_LDFLAGS = -no-undefined -version-info @LIBPTP2_VERSION_INFO@

libptp2includedir = $(includedir)/libptp2
libptp2include_HEADERS = ptp.h libptp-endian.h libptp-stdint.h
Expand All @@ -51,7 +62,7 @@
ptpcam_CFLAGS = @PTPCAM_CFLAGS@
endif
--- origsrc/libptp2-1.2.0/src/libptp-endian.h 2016-01-12 21:39:24.000000000 +0900
+++ src/libptp2-1.2.0/src/libptp-endian.h 2017-10-07 00:18:04.496970000 +0900
+++ src/libptp2-1.2.0/src/libptp-endian.h 2025-01-29 18:37:10.050628700 +0900
@@ -29,10 +29,18 @@
/* Define aliases for the standard byte swapping macros */
/* Arguments to these macros must be properly aligned on natural word */
Expand Down

0 comments on commit 26702cd

Please sign in to comment.