-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix some x packages * Add libtst
- Loading branch information
Showing
6 changed files
with
128 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Package: libxtst-dev | ||
Version: @DEB_LIBXTST_V@ | ||
Architecture: @DEB_ARCH@ | ||
Maintainer: @DEB_MAINTAINER@ | ||
Section: Development | ||
Priority: optional | ||
Depends: libxtst6 (= @DEB_LIBXTST_V@), libx11-dev, libxext-dev, libxi-dev | ||
Description: X11 Record extension library (development headers) | ||
libXtst provides an X Window System client interface to the Record | ||
extension to the X protocol. | ||
. | ||
The Record extension allows X clients to synthesise input events, which | ||
is useful for automated testing. | ||
. | ||
This package contains the development headers for the library found in | ||
libxtst6. Non-developers likely have little use for this package. | ||
. | ||
More information about X.Org can be found at: | ||
<URL:https://www.X.org> | ||
. | ||
This module can be found at | ||
git://anongit.freedesktop.org/git/xorg/lib/libXtst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Package: libxtst-doc | ||
Version: @DEB_LIBXTST_V@ | ||
Architecture: @DEB_ARCH@ | ||
Maintainer: @DEB_MAINTAINER@ | ||
Section: X_Window | ||
Priority: optional | ||
Depends: libxtst-dev (= @DEB_LIBXTST_V@) | ||
Description: X11 Record extension library (documentation) | ||
libXtst provides an X Window System client interface to the Record | ||
extension to the X protocol. | ||
. | ||
The Record extension allows X clients to synthesise input events, which | ||
is useful for automated testing. | ||
. | ||
This package contains the API documentation for the X Record and XTEST | ||
extension libraries. Non-developers likely have little use for this package. | ||
. | ||
More information about X.Org can be found at: | ||
<URL:https://www.X.org> | ||
. | ||
This module can be found at | ||
git://anongit.freedesktop.org/git/xorg/lib/libXtst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Package: libxtst6 | ||
Version: @DEB_LIBXTST_V@ | ||
Architecture: @DEB_ARCH@ | ||
Maintainer: @DEB_MAINTAINER@ | ||
Section: Libraries | ||
Priority: optional | ||
Depends: libx11-6, libxext6, libxi6 | ||
Description: X11 Testing -- Record extension library | ||
libXtst provides an X Window System client interface to the Record | ||
extension to the X protocol. | ||
. | ||
The Record extension allows X clients to synthesise input events, which | ||
is useful for automated testing. | ||
. | ||
More information about X.Org can be found at: | ||
<URL:https://www.X.org> | ||
. | ||
This module can be found at | ||
git://anongit.freedesktop.org/git/xorg/lib/libXtst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
ifneq ($(PROCURSUS),1) | ||
$(error Use the main Makefile) | ||
endif | ||
|
||
SUBPROJECTS += libxtst | ||
LIBXTST_VERSION := 1.2.3 | ||
DEB_LIBXTST_V ?= $(LIBXTST_VERSION) | ||
|
||
libxtst-setup: setup | ||
wget -q -nc -P $(BUILD_SOURCE) https://xorg.freedesktop.org/archive/individual/lib/libXtst-$(LIBXTST_VERSION).tar.gz{,.sig} | ||
$(call PGP_VERIFY,libXtst-$(LIBXTST_VERSION).tar.gz) | ||
$(call EXTRACT_TAR,libXtst-$(LIBXTST_VERSION).tar.gz,libXtst-$(LIBXTST_VERSION),libxtst) | ||
|
||
ifneq ($(wildcard $(BUILD_WORK)/libxtst/.build_complete),) | ||
libxtst: | ||
@echo "Using previously built libxtst." | ||
else | ||
libxtst: libxtst-setup xorgproto libx11 libxi | ||
cd $(BUILD_WORK)/libxtst && ./configure -C \ | ||
--host=$(GNU_HOST_TRIPLE) \ | ||
--prefix=/usr \ | ||
--sysconfdir=/etc \ | ||
--localstatedir=/var | ||
+$(MAKE) -C $(BUILD_WORK)/libxtst | ||
+$(MAKE) -C $(BUILD_WORK)/libxtst install \ | ||
DESTDIR=$(BUILD_STAGE)/libxtst | ||
+$(MAKE) -C $(BUILD_WORK)/libxtst install \ | ||
DESTDIR=$(BUILD_BASE) | ||
touch $(BUILD_WORK)/libxtst/.build_complete | ||
endif | ||
|
||
libxtst-package: libxtst-stage | ||
# libxtst.mk Package Structure | ||
rm -rf $(BUILD_DIST)/libxtst{6,-dev,-doc} | ||
mkdir -p $(BUILD_DIST)/libxtst6/usr/lib \ | ||
$(BUILD_DIST)/libxtst-dev/usr/lib \ | ||
$(BUILD_DIST)/libxtst-doc/usr | ||
|
||
# libxtst.mk Prep libxtst6 | ||
cp -a $(BUILD_STAGE)/libxtst/usr/lib/libXtst.6.dylib $(BUILD_DIST)/libxtst6/usr/lib | ||
|
||
# libxtst.mk Prep libxtst-dev | ||
cp -a $(BUILD_STAGE)/libxtst/usr/lib/{libXtst{.a,.dylib},pkgconfig} $(BUILD_DIST)/libxtst-dev/usr/lib | ||
cp -a $(BUILD_STAGE)/libxtst/usr/include $(BUILD_DIST)/libxtst-dev/usr | ||
|
||
# libxtst.mk Prep libxtst-doc | ||
cp -a $(BUILD_STAGE)/libxtst/usr/share $(BUILD_DIST)/libxtst-doc/usr | ||
|
||
# libxtst.mk Sign | ||
$(call SIGN,libxtst6,general.xml) | ||
|
||
# libxtst.mk Make .debs | ||
$(call PACK,libxtst6,DEB_LIBXTST_V) | ||
$(call PACK,libxtst-dev,DEB_LIBXTST_V) | ||
$(call PACK,libxtst-doc,DEB_LIBXTST_V) | ||
|
||
# libxtst.mk Build cleanup | ||
rm -rf $(BUILD_DIST)/libxtst{6,-dev,-doc} | ||
|
||
.PHONY: libxtst libxtst-package |