46 SOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz |
46 SOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz |
47 SOURCE_TARBALL_NAME_SET=yes |
47 SOURCE_TARBALL_NAME_SET=yes |
48 SOURCE_UNCOMPRESS=gzcat |
48 SOURCE_UNCOMPRESS=gzcat |
49 |
49 |
50 # Patches to apply to source after unpacking, in order |
50 # Patches to apply to source after unpacking, in order |
51 SOURCE_PATCHES = \ |
51 SOURCE_PATCHES = |
52 4251073.patch |
|
53 |
52 |
54 # Man pages to apply Sun footer to & attributes to list |
53 # Man pages to apply Sun footer to & attributes to list |
55 SUNTOUCHED_MANPAGES=*.man |
54 SUNTOUCHED_MANPAGES=*.man |
56 SUN_PACKAGE=SUNWxwopt |
55 SUN_PACKAGE=SUNWxwplt |
57 MODULE_STABILITY=Committed |
56 MODULE_STABILITY=Committed |
58 |
57 |
59 # Paths to find Xft/fontconfig/freetype headers libraries at build time |
58 # Paths to find Xft/fontconfig/freetype headers libraries at build time |
60 # and run time |
59 # and run time |
61 FT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2 |
60 FT_CFLAGS= -I$(PROTODIR)/usr/include -I$(PROTODIR)/usr/include/freetype2 |
63 -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig |
62 -L$(PROTODIR)/usr/lib$(LIBSUBDIR) -R/usr/lib$(LIBSUBDIR) -lXft -lfontconfig |
64 |
63 |
65 # Additional flags to pass to configure script |
64 # Additional flags to pass to configure script |
66 MODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \ |
65 MODULE_CONFIG_OPTS = --enable-256-color --enable-88-color --enable-wide-chars \ |
67 --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \ |
66 --with-freetype-cflags="$(FT_CFLAGS)" --with-freetype-libs="$(FT_LIBS)" \ |
68 --disable-setuid --disable-setgid --enable-luit \ |
67 --disable-setuid --disable-setgid --enable-luit --disable-imake \ |
69 --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \ |
68 --x-includes=$(PROTODIR)$(X11_INCLUDES_DIR) --x-libraries=$(X11_LIB_DIR) \ |
70 --with-app-defaults=/usr/share/X11/app-defaults \ |
69 --with-app-defaults=/usr/share/X11/app-defaults \ |
71 --with-icondir=/usr/share/pixmaps --enable-logging |
70 --with-icondir=/usr/share/pixmaps --enable-logging |
72 |
71 |
|
72 # Sort-of emulate automake silent rules - run make configure V=1 to see |
|
73 # full compiler flags |
|
74 MODULE_CONFIG_OPTS_VERBOSE_0 = --disable-echo |
|
75 MODULE_CONFIG_OPTS_VERBOSE_1 = --enable-echo |
|
76 MODULE_CONFIG_OPTS_VERBOSE_ = $(MODULE_CONFIG_OPTS_VERBOSE_0) |
|
77 MODULE_CONFIG_OPTS += $(MODULE_CONFIG_OPTS_VERBOSE_$(V)) |
|
78 |
73 # Tell configure where to find luit binary |
79 # Tell configure where to find luit binary |
74 MODULE_CONFIG_ENV = LUIT=$(X11_BIN_DIR)/luit |
80 MODULE_CONFIG_ENV = LUIT=$(X11_BIN_DIR)/luit |
75 |
81 |
|
82 MODULE_ADD_BUILD_TARGETS=fix_manpages |
|
83 MODULE_ADD_INSTALL_TARGETS=install_docs |
|
84 |
76 include ../Makefile.inc |
85 include ../Makefile.inc |
|
86 |
|
87 # Fix man page footers to not say "Last changed: X Window System" |
|
88 XORGRELSTRING = $(MODULE_NAME) $(MODULE_VERSION) |
|
89 XORGMANNAME = X Version 11 |
|
90 XVENDORVERS = "$(XORGRELSTRING)" "$(XORGMANNAME)" |
|
91 |
|
92 fix_manpages: $(UNPACK_TARGET) |
|
93 /usr/perl5/bin/perl -i -p -e 's{__vendorversion__}{$(XVENDORVERS)}g' \ |
|
94 $(SOURCE_DIR)/*.man |
|
95 |
|
96 # Install documentation of xterm control sequences for packaging |
|
97 MODULE_DOCDIR=/usr/share/doc/xterm |
|
98 |
|
99 install_docs: $(UNPACK_TARGET) |
|
100 mkdir -p $(PROTODIR)$(MODULE_DOCDIR) |
|
101 rm -f $(PROTODIR)$(MODULE_DOCDIR)/ctlseqs.txt |
|
102 cp -pf $(SOURCE_DIR)/ctlseqs.txt $(PROTODIR)$(MODULE_DOCDIR)/ |