-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from varlog00/varlogs
add tif/tiff support
- Loading branch information
Showing
7 changed files
with
87 additions
and
27 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,36 @@ | ||
VERSION ?= 0.0.0 | ||
BINARY ?= slide | ||
ARCH ?= noarch | ||
|
||
.PHONY: all | ||
all: build | ||
|
||
.PHONY: install-deps-deb | ||
install-deps-deb: | ||
apt install qt5-qmake libexif12 qt5-default libexif-dev qt5-image-formats-plugins | ||
|
||
check-deps-deb: | ||
dpkg -l | grep qt5-qmake | ||
dpkg -l | grep libexif12 | ||
dpkg -l | grep libexif-dev | ||
dpkg -l | grep qt5-default | ||
dpkg -l | grep qt5-image-formats-plugins | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build | ||
|
||
build: | ||
mkdir -p build | ||
qmake src/slide.pro -o build/Makefile | ||
make -C build | ||
|
||
PACKAGE_DIR=build/slide_$(VERSION) | ||
|
||
.PHONY: package | ||
package: clean build | ||
mkdir -p $(PACKAGE_DIR) | ||
cp -r "./build/$(BINARY)" $(PACKAGE_DIR) | ||
cp "INSTALL.md" $(PACKAGE_DIR) | ||
cp "LICENSE" $(PACKAGE_DIR) | ||
cd build && tar cfz slide_$(ARCH)_$(VERSION).tar.gz slide_$(VERSION) |
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,10 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
VERSION=$1 | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
make clean | ||
$DIR/package_remote.sh pi picframe pi $VERSION | ||
$DIR/package_remote.sh pi raspberrypi pi-0 $VERSION | ||
$DIR/package.sh amd64 $VERSION | ||
mv build/slide_amd64_$VERSION.tar.gz . |
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