Skip to content

Commit

Permalink
Add pkg-config.pc to fontforge 20200314 and 20230101
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Nov 15, 2023
1 parent 00a60a8 commit c307d71
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
27 changes: 24 additions & 3 deletions fontforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ val portVersion = when(project.findProperty("packageVersion")) {
"20170731"
}
"20200314" -> {
version = "20200314-beta-4"
version = "20200314-beta-5"
"20200314"
}
else /* "20230101" */ -> {
version = "20230101-beta-4"
version = "20230101-beta-5"
"20230101"
}
}
Expand Down Expand Up @@ -279,14 +279,24 @@ when (portVersion) {
}
"20200314" -> {
tasks.register<CMakePortTask>("buildPort") {
val generatedDependencies = prefabGenerated.get().asFile
cmake {
args(
"-DENABLE_GUI=OFF",
"-DENABLE_PYTHON_SCRIPTING=OFF",
"-DENABLE_PYTHON_EXTENSION=OFF",
)
}
doLast {
val pkgconfig = projectDir.resolve("patches/$portVersion/libfontforge.pc")
com.android.ndkports.Abi.values().forEach { abi ->
pkgconfig.copyTo(
target = installDirectoryFor(abi)
.resolve("lib/pkgconfig").apply { mkdir() }
.resolve("libfontforge.pc"),
overwrite = true
)
}
}
}
}
else -> /* "20230101" */ {
Expand All @@ -298,6 +308,17 @@ when (portVersion) {
"-DENABLE_PYTHON_EXTENSION=OFF",
)
}
doLast {
val pkgconfig = projectDir.resolve("patches/$portVersion/libfontforge.pc")
com.android.ndkports.Abi.values().forEach { abi ->
pkgconfig.copyTo(
target = installDirectoryFor(abi)
.resolve("lib/pkgconfig").apply { mkdir() }
.resolve("libfontforge.pc"),
overwrite = true
)
}
}
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions fontforge/patches/20200314/libfontforge.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=/__PREFAB__PACKAGE__PATH__
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libfontforge
Description: a font manipulation library.
Version: 20200314
Requires: libturbojpeg libpng16 libspiro libuninameslist freetype2 intl gio-2.0 libxml-2.0 pango libtiff-4
Requires.private: cairo zlib
Libs: -L${exec_prefix}/lib -lfontforge
Libs.private: -L${libdir} -lltdl -lm
Cflags: -I${includedir}
12 changes: 12 additions & 0 deletions fontforge/patches/20230101/libfontforge.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=/__PREFAB__PACKAGE__PATH__
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libfontforge
Description: a font manipulation library.
Version: 20230101
Requires: libturbojpeg libpng16 libspiro libuninameslist freetype2 intl gio-2.0 libxml-2.0 pango libtiff-4
Requires.private: cairo zlib
Libs: -L${exec_prefix}/lib -lfontforge
Libs.private: -L${libdir} -lltdl -lm
Cflags: -I${includedir}
2 changes: 1 addition & 1 deletion pdf2htmlEX/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
implementation("com.viliussutkus89.ndk.thirdparty:poppler${ndkVersionSuffix}-static:0.81.0-beta-3")
}
"0.18.8.rc1" -> {
implementation("com.viliussutkus89.ndk.thirdparty:fontforge${ndkVersionSuffix}-static:20200314-beta-4")
implementation("com.viliussutkus89.ndk.thirdparty:fontforge${ndkVersionSuffix}-static:20200314-beta-5")
implementation("com.viliussutkus89.ndk.thirdparty:poppler${ndkVersionSuffix}-static:0.89.0-beta-3")
}
}
Expand Down

0 comments on commit c307d71

Please sign in to comment.