|
|
# (if the include and lib directory do not match your installation, | # (if the include and lib directory do not match your installation, |
# modify them), also uncomment LIBS_FT | # modify them), also uncomment LIBS_FT |
# | # |
#CFLAGS_FT = -DUSE_FREETYPE -I/usr/local/include/freetype2 -I/usr/local/include |
CFLAGS_FT = -DUSE_FREETYPE -I/usr/include/freetype2 |
| |
# | # |
# The FreeType-2 library flags (disabled by default) | # The FreeType-2 library flags (disabled by default) |
| |
LIBS_FT= |
#LIBS_FT= |
| |
# To enable use of the FreeType-2 library | # To enable use of the FreeType-2 library |
# (if the include and lib directory do not match your installation, | # (if the include and lib directory do not match your installation, |
# modify them), also uncomment CFLAGS_FT | # modify them), also uncomment CFLAGS_FT |
# | # |
#LIBS_FT= -L/usr/local/lib -lfreetype |
LIBS_FT= -L/usr/lib -lfreetype |
| |
# | # |
# The flags for C compiler for the Autotrace library (disabled by default). | # The flags for C compiler for the Autotrace library (disabled by default). |
|
|
# Preference of front-ends if multiple parsers match a file | # Preference of front-ends if multiple parsers match a file |
# (by default the build-in front-end takes preference over FreeType) | # (by default the build-in front-end takes preference over FreeType) |
| |
CFLAGS_PREF= |
#CFLAGS_PREF= |
| |
# To prefer FreeType (if enabled): | # To prefer FreeType (if enabled): |
# | # |
#CFLAGS_PREF= -DPREFER_FREETYPE |
CFLAGS_PREF= -DPREFER_FREETYPE |
| |
# Uncomment the second line to not compile t1asm into ttf2pt1 | # Uncomment the second line to not compile t1asm into ttf2pt1 |
CFLAGS_EXTT1ASM= | CFLAGS_EXTT1ASM= |
#CFLAGS_EXTT1ASM= -DEXTERNAL_T1ASM | #CFLAGS_EXTT1ASM= -DEXTERNAL_T1ASM |
| |
CFLAGS= $(CFLAGS_SYS) $(CFLAGS_FT) $(CFLAGS_AT) $(CFLAGS_PREF) |
CFLAGS += $(CFLAGS_SYS) $(CFLAGS_FT) $(CFLAGS_AT) $(CFLAGS_PREF) |
LIBS= $(LIBS_SYS) $(LIBS_FT) $(LIBS_AT) |
LIBS += $(LIBS_SYS) $(LIBS_FT) $(LIBS_AT) |
| |
# Installation-related stuff | # Installation-related stuff |
# | # |
# The base dir for installation and subdirs in it | # The base dir for installation and subdirs in it |
INSTDIR = /usr/local |
INSTDIR = /usr |
# for binaries | # for binaries |
BINDIR = $(INSTDIR)/bin | BINDIR = $(INSTDIR)/bin |
# for binaries of little general interest | # for binaries of little general interest |
LIBXDIR = $(INSTDIR)/libexec/ttf2pt1 |
LIBXDIR = $(INSTDIR)/lib/ttf2pt1 |
# for scripts, maps/encodings etc. | # for scripts, maps/encodings etc. |
SHAREDIR = $(INSTDIR)/share/ttf2pt1 | SHAREDIR = $(INSTDIR)/share/ttf2pt1 |
MANDIR = $(INSTDIR)/man |
MANDIR = $(INSTDIR)/share/man |
| |
# owner and group of installed files | # owner and group of installed files |
OWNER = root | OWNER = root |
GROUP = bin |
GROUP = root |
| |
# After you have configured the Makefile, comment out the following | # After you have configured the Makefile, comment out the following |
# definition: | # definition: |
|
|
chmod -R go-w $(SHAREDIR) | chmod -R go-w $(SHAREDIR) |
scripts/inst_file ttf2pt1 $(BINDIR)/ttf2pt1 $(OWNER) $(GROUP) 0755 | scripts/inst_file ttf2pt1 $(BINDIR)/ttf2pt1 $(OWNER) $(GROUP) 0755 |
[ -f $(BINDIR)/t1asm ] || scripts/inst_file t1asm $(LIBXDIR)/t1asm $(OWNER) $(GROUP) 0755 | [ -f $(BINDIR)/t1asm ] || scripts/inst_file t1asm $(LIBXDIR)/t1asm $(OWNER) $(GROUP) 0755 |
sed 's|^TTF2PT1_BINDIR=$$|TTF2PT1_BINDIR=$(BINDIR)|;\ |
sed -e 's|^TTF2PT1_BINDIR=$$|TTF2PT1_BINDIR=$(BINDIR)|' \ |
s|^TTF2PT1_LIBXDIR=$$|TTF2PT1_LIBXDIR=$(LIBXDIR)|;\ |
-e 's|^TTF2PT1_LIBXDIR=$$|TTF2PT1_LIBXDIR=$(LIBXDIR)|' \ |
s|^TTF2PT1_SHAREDIR=$$|TTF2PT1_SHAREDIR=$(SHAREDIR)|;' <scripts/convert >cvt.tmp |
-e 's|^TTF2PT1_SHAREDIR=$$|TTF2PT1_SHAREDIR=$(SHAREDIR)|' <scripts/convert >cvt.tmp |
scripts/inst_file cvt.tmp $(BINDIR)/ttf2pt1_convert $(OWNER) $(GROUP) 0755 | scripts/inst_file cvt.tmp $(BINDIR)/ttf2pt1_convert $(OWNER) $(GROUP) 0755 |
scripts/inst_file cvt.tmp $(SHAREDIR)/scripts/convert $(OWNER) $(GROUP) 0755 | scripts/inst_file cvt.tmp $(SHAREDIR)/scripts/convert $(OWNER) $(GROUP) 0755 |
rm cvt.tmp | rm cvt.tmp |
scripts/inst_file scripts/x2gs $(BINDIR)/ttf2pt1_x2gs $(OWNER) $(GROUP) 0755 | scripts/inst_file scripts/x2gs $(BINDIR)/ttf2pt1_x2gs $(OWNER) $(GROUP) 0755 |
for i in $(MANS1); do { \ | for i in $(MANS1); do { \ |
sed 's|TTF2PT1_BINDIR|$(BINDIR)|;\ |
sed -e 's|TTF2PT1_BINDIR|$(BINDIR)|' \ |
s|TTF2PT1_LIBXDIR|$(LIBXDIR)|;\ |
-e 's|TTF2PT1_LIBXDIR|$(LIBXDIR)|' \ |
s|TTF2PT1_SHAREDIR|$(SHAREDIR)|;' <$$i >$(MANDIR)/man1/$$i \ |
-e 's|TTF2PT1_SHAREDIR|$(SHAREDIR)|' <$$i >$(MANDIR)/man1/$$i \ |
&& chown $(OWNER) $(MANDIR)/man1/$$i \ | && chown $(OWNER) $(MANDIR)/man1/$$i \ |
&& chgrp $(GROUP) $(MANDIR)/man1/$$i \ | && chgrp $(GROUP) $(MANDIR)/man1/$$i \ |
&& chmod 0644 $(MANDIR)/man1/$$i \ | && chmod 0644 $(MANDIR)/man1/$$i \ |