Switch to new package format
This commit is contained in:
+3
-1
@@ -1,7 +1,7 @@
|
|||||||
name: mupdf
|
name: mupdf
|
||||||
description: Lightweight PDF and XPS viewer
|
description: Lightweight PDF and XPS viewer
|
||||||
version: 1.27.2
|
version: 1.27.2
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://mupdf.com/
|
url: https://mupdf.com/
|
||||||
license: AGPL3-or-later
|
license: AGPL3-or-later
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -17,6 +17,7 @@ make_depends:
|
|||||||
- freetype2
|
- freetype2
|
||||||
- glu
|
- glu
|
||||||
- harfbuzz
|
- harfbuzz
|
||||||
|
- jbig2dec
|
||||||
- libjpeg-turbo
|
- libjpeg-turbo
|
||||||
- libx11
|
- libx11
|
||||||
- libxext
|
- libxext
|
||||||
@@ -67,6 +68,7 @@ split_packages:
|
|||||||
- gcc-libs
|
- gcc-libs
|
||||||
- glibc
|
- glibc
|
||||||
- harfbuzz
|
- harfbuzz
|
||||||
|
- jbig2dec
|
||||||
- libjpeg-turbo
|
- libjpeg-turbo
|
||||||
- openjpeg
|
- openjpeg
|
||||||
- zlib
|
- zlib
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
@@ -6,17 +6,16 @@
|
|||||||
# This function is used for putting downloaded files to the correct location or applying patches
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
# Apply patch for additional install targets
|
|
||||||
patch -Np1 -i "$BPM_WORKDIR"/mupdf-install-targets.patch
|
|
||||||
|
|
||||||
# Setup make configuration
|
# Setup make configuration
|
||||||
cat > user.make <<-EOF
|
cat > user.make <<-EOF
|
||||||
|
LINUX_OR_OPENBSD := yes
|
||||||
USE_SYSTEM_LIBS := yes
|
USE_SYSTEM_LIBS := yes
|
||||||
USE_SYSTEM_FREETYPE := yes
|
USE_SYSTEM_FREETYPE := yes
|
||||||
USE_SYSTEM_HARFBUZZ := yes
|
USE_SYSTEM_HARFBUZZ := yes
|
||||||
USE_SYSTEM_JBIG2DEC := no
|
USE_SYSTEM_JBIG2DEC := yes
|
||||||
USE_SYSTEM_JPEGXR := no
|
USE_SYSTEM_JPEGXR := yes
|
||||||
USE_SYSTEM_LCMS2 := no
|
USE_SYSTEM_LCMS2 := yes
|
||||||
USE_SYSTEM_LIBJPEG := yes
|
USE_SYSTEM_LIBJPEG := yes
|
||||||
USE_SYSTEM_MUJS := no
|
USE_SYSTEM_MUJS := no
|
||||||
USE_SYSTEM_OPENJPEG := yes
|
USE_SYSTEM_OPENJPEG := yes
|
||||||
@@ -24,15 +23,17 @@ USE_SYSTEM_ZLIB := yes
|
|||||||
USE_SYSTEM_GLUT := yes
|
USE_SYSTEM_GLUT := yes
|
||||||
USE_SYSTEM_CURL := yes
|
USE_SYSTEM_CURL := yes
|
||||||
USE_SYSTEM_GUMBO := no
|
USE_SYSTEM_GUMBO := no
|
||||||
|
USE_SYSTEM_ZXINGCPP := yes
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
export XCFLAGS=-fPIC
|
export XCFLAGS="-fPIC"
|
||||||
|
export XCXXFLAGS="-fPIC"
|
||||||
|
|
||||||
make -j1 VENV_FLAG= shared=yes verbose=yes build=release libs apps extra-apps c++ python
|
make -j1 VENV_FLAG= shared=yes verbose=yes build=release libs apps extra-apps
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 7b04ff5cd..8d16d98b0 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -635,18 +635,17 @@ endif
|
|
||||||
|
|
||||||
install-shared-c: install-shared-check install-libs install-headers
|
|
||||||
|
|
||||||
-install-shared-c++: install-shared-c c++
|
|
||||||
- install -m 644 platform/c++/include/mupdf/*.h $(DESTDIR)$(incdir)/mupdf
|
|
||||||
- install -m $(SO_INSTALL_MODE) $(OUT)/libmupdfcpp.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/
|
|
||||||
+install-shared-c++: install-shared-check
|
|
||||||
+ install -vDm 644 platform/c++/include/mupdf/*.h -t $(DESTDIR)$(incdir)/mupdf
|
|
||||||
+ install -vDm $(SO_INSTALL_MODE) $(OUT)/libmupdfcpp.$(SO)$(SO_VERSION) -t $(DESTDIR)$(libdir)/
|
|
||||||
ifneq ($(OS),OpenBSD)
|
|
||||||
ln -sf libmupdfcpp.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/libmupdfcpp.$(SO)
|
|
||||||
ln -sf libmupdfcpp.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/libmupdfcpp.$(SO)$(SO_VERSION_MAJOR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
-install-shared-python: install-shared-c++ python
|
|
||||||
- install -d $(DESTDIR)$(pydir)/mupdf
|
|
||||||
- install -m $(SO_INSTALL_MODE) $(OUT)/_mupdf.$(SO) $(DESTDIR)$(pydir)/mupdf
|
|
||||||
- install -m 644 $(OUT)/mupdf.py $(DESTDIR)$(pydir)/mupdf/__init__.py
|
|
||||||
+install-shared-python:
|
|
||||||
+ install -vDm $(SO_INSTALL_MODE) $(OUT)/_mupdf.$(SO) -t $(DESTDIR)$(pydir)/mupdf
|
|
||||||
+ install -vDm 644 $(OUT)/mupdf.py $(DESTDIR)$(pydir)/mupdf/__init__.py
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user