Skip to content

Commit

Permalink
Add libcups
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Apr 12, 2024
1 parent 04cff23 commit 45c4bc8
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,13 @@
url = https://gitlab.freedesktop.org/xorg/lib/libxfixes.git
ignore = dirty
shallow = true
[submodule "ext/libcups"]
path = ext/libcups
url = https://github.com/OpenPrinting/libcups.git
ignore = dirty
shallow = true
[submodule "ext/linux-pam"]
path = ext/linux-pam
url = https://github.com/linux-pam/linux-pam.git
ignore = dirty
shallow = true
1 change: 1 addition & 0 deletions ext/libcups
Submodule libcups added at c8cb64
1 change: 1 addition & 0 deletions ext/linux-pam
Submodule linux-pam added at 3b77a7
2 changes: 2 additions & 0 deletions linux/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ crosstool-ng
*/libxtst
*/libxfixes
*/libxext
*/linux-pam
*/libcups
64 changes: 64 additions & 0 deletions linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ then
--host=$SDK_TARGET \
--target=$SDK_TARGET \
--prefix="" \
--libdir="/lib" \
--with-sysroot=$dist \
$SDK_LIBFFI_ARGS
make
Expand Down Expand Up @@ -777,6 +778,69 @@ then
popd
fi

## build linux-pam
#if [ ! -f $home/linux-pam/stamp ]
#then
# pushd $ext/linux-pam
# NOCONFIGURE=1 ./autogen.sh --prefix=$dist
# popd

# mkdir -p $home/linux-pam
# pushd $home/linux-pam
# PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
# PKG_CONFIG_SYSROOT_DIR=$dist \
# LDFLAGS="--sysroot=$dist" \
# $ext/linux-pam/configure \
# --host=$SDK_TARGET \
# --target=$SDK_TARGET \
# --prefix="" \
# --with-sysroot=$dist \
# --disable-selinux \
# --disable-nis \
# --disable-regenerate-docu \
# $SDK_LINUX_PAM_ARGS
# make
# make DESTDIR=$dist install
# touch stamp
# popd
#fi

# build libcups
if [ ! -f $home/libcups/stamp ]
then
pushd $ext/libcups
git clean -xdf
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=$dist \
CFLAGS="--sysroot=$dist -I$dist/include" \
CPPFLAGS="--sysroot=$dist -I$dist/include" \
LDFLAGS="--sysroot=$dist -L$dist/lib" \
DSOFLAGS="--sysroot=$dist -L$dist/lib" \
LIBRARY_PATH="$dist/lib" \
$ext/libcups/configure \
--host=$SDK_TARGET \
--target=$SDK_TARGET \
--prefix="" \
--libdir="/lib" \
--without-perl \
--without-java \
--without-php \
--without-python \
--disable-gnutls \
--disable-gssapi \
--disable-dbus \
--disable-pam \
$SDK_LIBCUPS_ARGS
make SHELL='sh -x'
make BUILDROOT=$dist install
popd

mkdir -p $home/libcups
pushd $home/libcups
touch stamp
popd
fi

# adjust symlinks to relative paths
symlinks -cr $dist

Expand Down

0 comments on commit 45c4bc8

Please sign in to comment.