-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile_gs
32 lines (23 loc) · 957 Bytes
/
Makefile_gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# what to tell Ghostscript where it will expect to run from
TARGET_DIR ?= /opt/
.ONESHELL:
## dev tool istallation
init:
## GHOSTSCRIPT (https://www.ghostscript.com/)
## https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/ghostscript-9.27.tar.gz
## -------------------------------------------------------------------------------------------------------
GHOSTSCRIPT_VERSION=9.27
GHOSTSCRIPT_VERSION_DIR=gs$(subst .,,$(GHOSTSCRIPT_VERSION))
GHOSTSCRIPT_SRC_FILE=ghostscript-${GHOSTSCRIPT_VERSION}.tar.gz
GHOSTSCRIPT_SRC_DIR=$(subst .tar.gz,,$(GHOSTSCRIPT_SRC_FILE))
$(GHOSTSCRIPT_SRC_FILE):
curl -OL https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/${GHOSTSCRIPT_VERSION_DIR}/${GHOSTSCRIPT_SRC_FILE}
gs $(TARGET_DIR)bin/gs: $(GHOSTSCRIPT_SRC_FILE)
tar -zxf $<
cd ${GHOSTSCRIPT_SRC_DIR}
./configure \
--without-luratech \
--prefix=$(TARGET_DIR)
make all
make install
all: $(TARGET_DIR)bin/gs