Skip to content

Commit

Permalink
Package: create separate libjpeg package (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Jan 3, 2024
1 parent b5b5ce1 commit 4d0e10d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
3 changes: 2 additions & 1 deletion general/package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/ffmpeg-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/fullhan-osdrv-fh8852v100/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/fullhan-osdrv-fh8852v200/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/gdbserver-lite/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/go2rtc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/goke-osdrv-gk710x/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/goke-osdrv-gk7205v200/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/grainmedia-osdrv-gm8136/Config.in"
Expand Down Expand Up @@ -50,6 +51,7 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/lame-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/libcurl-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/libevent-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/libhv-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/libjpeg-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/libogg-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/libre-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/librem-openipc/Config.in"
Expand Down Expand Up @@ -109,4 +111,3 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/xiongmai-osdrv-xm530/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/xmdp/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/yaml-cli/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/zerotier-one/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/go2rtc/Config.in"
5 changes: 5 additions & 0 deletions general/package/libjpeg-openipc/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config BR2_PACKAGE_LIBJPEG_OPENIPC
bool "libjpeg-openipc"
help
The ubiquitous C library for manipulating JPEG images.
http://www.ijg.org/
24 changes: 24 additions & 0 deletions general/package/libjpeg-openipc/libjpeg-openipc.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
################################################################################
#
# libjpeg-openipc
#
################################################################################

LIBJPEG_OPENIPC_VERSION = 9e
LIBJPEG_OPENIPC_SITE = http://www.ijg.org/files
LIBJPEG_OPENIPC_SOURCE = jpegsrc.v$(LIBJPEG_VERSION).tar.gz

LIBJPEG_OPENIPC_INSTALL_STAGING = YES
LIBJPEG_OPENIPC_LICENSE = IJG
LIBJPEG_OPENIPC_LICENSE_FILES = README

LIBJPEG_OPENIPC_CONF_OPTS = --disable-shared

define LIBJPEG_OPENIPC_REMOVE_BINARIES
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtran rdjpgcom wrjpgcom)
endef

LIBJPEG_OPENIPC_POST_INSTALL_TARGET_HOOKS += LIBJPEG_OPENIPC_REMOVE_BINARIES

$(eval $(autotools-package))
$(eval $(host-autotools-package))
2 changes: 1 addition & 1 deletion general/package/quirc-openipc/Config.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config BR2_PACKAGE_QUIRC_OPENIPC
bool "quirc-openipc"
select BR2_PACKAGE_JPEG
select BR2_PACKAGE_LIBJPEG_OPENIPC
help
QR codes are a type of high-density matrix barcodes, and quirc is a library for extracting and decoding them from images.
https://github.com/dlbeer/quirc
7 changes: 2 additions & 5 deletions general/package/quirc-openipc/quirc-openipc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
QUIRC_OPENIPC_SITE = https://github.com/openipc/quirc/archive
QUIRC_OPENIPC_SOURCE = master.tar.gz

QUIRC_OPENIPC_DEPENDENCIES = libjpeg
LIBJPEG_CONF_OPTS = --disable-shared

QUIRC_OPENIPC_DEPENDENCIES = libjpeg-openipc
QUIRC_OPENIPC_MAKE_OPTS = \
CC=$(TARGET_CC) \
AR=$(TARGET_AR) \
LDFLAGS="-s"
AR=$(TARGET_AR)

define QUIRC_OPENIPC_BUILD_CMDS
$(MAKE) $(QUIRC_OPENIPC_MAKE_OPTS) -C $(@D) all
Expand Down

0 comments on commit 4d0e10d

Please sign in to comment.