jhead: new package
PATCH 1/1 jhead: new package
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/Config.in | 1 + package/jhead/Config.in | 11 +++++++++++ package/jhead/jhead-use-ldflags.patch | 16 ++++++++++++++++ package/jhead/jhead.mk | 21 +++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 package/jhead/Config.in create mode 100644 package/jhead/jhead-use-ldflags.patch create mode 100644 package/jhead/jhead.mk
package/Config.in +1 -0
@@ -107,6 +107,7 @@ menu "Graphic libraries and applications (graphic/text)" comment "Graphic applications" source "package/gnuplot/Config.in" +source "package/jhead/Config.in" source "package/rrdtool/Config.in" comment "graphic libraries"
package/jhead/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_JHEAD + bool "jhead" + depends on BR2_USE_WCHAR + help + Jhead is a program for manipulating settings and thumbnails + in Exif jpeg headers used by most Digital Cameras. + + http://www.sentex.net/~mwandel/jhead/ + +comment "jhead requires a toolchain with WCHAR support" + depends on !BR2_USE_WCHAR
package/jhead/jhead-use-ldflags.patch new file +16 -0
@@ -0,0 +1,16 @@ +Make jhead use LDFLAGS for the final link. + +Signed-off-by: Gustavo Zacarias <[email protected]> + +diff -Nura jhead-2.97.orig/makefile jhead-2.97/makefile +--- jhead-2.97.orig/makefile 2013-03-27 09:22:38.759966389 -0300 ++++ jhead-2.97/makefile 2013-03-27 09:25:06.290691745 -0300 +@@ -14,7 +14,7 @@ + ${CC} $(CFLAGS) -c $< -o $@ + + jhead: $(objs) jhead.h +- ${CC} -o jhead $(objs) -lm ++ ${CC} $(LDFLAGS) -o jhead $(objs) -lm + + clean: + rm -f $(objs) jhead
package/jhead/jhead.mk new file +21 -0
@@ -0,0 +1,21 @@ +############################################################# +# +# jhead +# +############################################################# + +JHEAD_VERSION = 2.97 +JHEAD_SITE = http://www.sentex.net/~mwandel/jhead +JHEAD_LICENSE = Public Domain +JHEAD_LICENSE_FILES = readme.txt + +define JHEAD_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" CC="$(TARGET_CC)" -C $(@D) +endef + +define JHEAD_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/jhead $(TARGET_DIR)/usr/bin/jhead +endef + +$(eval $(generic-package))
Signature · 1 line
1.8.1.5
PATCH 1/1 jhead: new package
Dear Gustavo Zacarias,
package/jhead/jhead.mk line 14
Quoted 3 lines · Gustavo Zacarias
package/jhead/jhead.mk new file +3
-0+define JHEAD_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" CC="$(TARGET_CC)" -C $(@D)
$(TARGET_CONFIGURE_OPTS) ?
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 jhead: new package
Quoted 1 line · Thomas Petazzoni
$(TARGET_CONFIGURE_OPTS) ?
Damn flu drugs, sending v2 :)
Thanks.