28 # Except as contained in this notice, the name of a copyright holder |
28 # Except as contained in this notice, the name of a copyright holder |
29 # shall not be used in advertising or otherwise to promote the sale, use |
29 # shall not be used in advertising or otherwise to promote the sale, use |
30 # or other dealings in this Software without prior written authorization |
30 # or other dealings in this Software without prior written authorization |
31 # of the copyright holder. |
31 # of the copyright holder. |
32 # |
32 # |
33 # @(#)Makefile 1.91 08/03/20 |
33 # @(#)Makefile 1.93 08/03/24 |
34 # |
34 # |
35 |
35 |
36 PWD:sh=pwd |
36 PWD:sh=pwd |
37 TOP=$(PWD)/../.. |
37 TOP=$(PWD)/../.. |
38 |
38 |
39 # Version number (used in path names) |
39 # Version number (used in path names) |
40 XSCREENSAVER_VERS=5.01 |
40 XSCREENSAVER_VERS=5.01 |
41 |
41 |
42 # Source tarball |
42 # Source tarball |
43 SOURCE_TARBALL_NAME=xscreensaver-$(XSCREENSAVER_VERS).tar.gz |
43 SOURCE_TARBALL_NAME=xscreensaver-$(XSCREENSAVER_VERS).tar.bz2 |
44 |
44 |
45 # Download site for source - master site no longer carries 5.01 so we use |
45 # Download site for source - master site no longer carries 5.01 so we use |
46 # a mirror site until we upgrade to a newer version |
46 # a mirror site until we upgrade to a newer version |
47 #SOURCE_URL=http://www.jwz.org/xscreensaver/$(SOURCE_TARBALL_NAME) |
47 #SOURCE_URL=http://www.jwz.org/xscreensaver/$(SOURCE_TARBALL_NAME) |
48 SOURCE_URL=http://ftp.osuosl.org/pub/FreeBSD/distfiles/$(SOURCE_TARBALL_NAME) |
48 SOURCE_URL=http://www.genunix.org/distributions/belenix_site/binfiles/$(SOURCE_TARBALL_NAME) |
49 SOURCE_URL_SET=yes |
49 SOURCE_URL_SET=yes |
50 SOURCE_UNCOMPRESS=gzcat |
50 SOURCE_UNCOMPRESS=bzcat |
51 |
51 |
52 # Patches to apply to source after unpacking, in order |
52 # Patches to apply to source after unpacking, in order |
53 SOURCE_PATCHES = \ |
53 SOURCE_PATCHES = \ |
54 Sun.app-defaults.patch \ |
54 Sun.app-defaults.patch \ |
55 GNOME-desktop.patch \ |
55 GNOME-desktop.patch \ |
119 --libexecdir='$${prefix}/lib/xscreensaver/bin' \ |
119 --libexecdir='$${prefix}/lib/xscreensaver/bin' \ |
120 --with-hackdir='$${prefix}/lib/xscreensaver/hacks' \ |
120 --with-hackdir='$${prefix}/lib/xscreensaver/hacks' \ |
121 --with-configdir=/usr/X11/lib/xscreensaver/config/control-center-2.0 \ |
121 --with-configdir=/usr/X11/lib/xscreensaver/config/control-center-2.0 \ |
122 --with-image-directory=/usr/share/pixmaps/backgrounds \ |
122 --with-image-directory=/usr/share/pixmaps/backgrounds \ |
123 --with-text-file=/etc/motd \ |
123 --with-text-file=/etc/motd \ |
124 --with-x-app-defaults=/usr/X11/lib/X11/app-defaults |
124 --with-x-app-defaults=/usr/X11/lib/X11/app-defaults \ |
|
125 LDFLAGS="$(PROG_LDFLAGS) -L$(PROTODIR)/usr/X11/lib -R/usr/X11/lib" |
125 |
126 |
126 # BINARY built in tree |
127 # BINARY built in tree |
127 XS_BIN=$(SOURCE_DIR)/xscreensaver |
128 XS_BIN=$(SOURCE_DIR)/xscreensaver |
128 |
129 |
129 # Messages for translation |
130 # Messages for translation |
137 |
138 |
138 # Man pages |
139 # Man pages |
139 XS_MAN=$(SOURCE_DIR)/driver/xscreensaver.man.orig |
140 XS_MAN=$(SOURCE_DIR)/driver/xscreensaver.man.orig |
140 |
141 |
141 # Include Paths |
142 # Include Paths |
142 INCLUDES=-I/usr/X11/include |
143 INCLUDES=-I$(PROTODIR)/usr/X11/include -I/usr/X11/include |
143 |
144 |
144 # Additional optimization flags, to make the hacks show off the hardware |
145 # Additional optimization flags, to make the hacks show off the hardware |
145 # better and we can get away with optimizations not allowed in the core X code |
146 # better and we can get away with optimizations not allowed in the core X code |
146 XS_CFLAGS=$(CFLAGS) -fsimple=2 -nofstore -xprefetch $(XS_ARCH_FLAGS) -xstrconst |
147 XS_CFLAGS=$(CFLAGS) -fsimple=2 -nofstore -xprefetch $(XS_ARCH_FLAGS) -xstrconst |
147 XS_ARCH_FLAGS=$(XS_ARCH_FLAGS_$(MACH)) |
148 XS_ARCH_FLAGS=$(XS_ARCH_FLAGS_$(MACH)) |
153 # as required by Sun rules for using the bundled version of perl |
154 # as required by Sun rules for using the bundled version of perl |
154 # /opt/sfw/bin must be ahead of /usr/bin to make sure we get GNU xgettext |
155 # /opt/sfw/bin must be ahead of /usr/bin to make sure we get GNU xgettext |
155 # since intltool-update doesn't work with Solaris xgettext (see bugs |
156 # since intltool-update doesn't work with Solaris xgettext (see bugs |
156 # 4812320 & 4826523) |
157 # 4812320 & 4826523) |
157 XS_CNFG_ENV=CC=$(CC) CFLAGS="$(XS_CFLAGS) $(INCLUDES)" CPPFLAGS="$(INCLUDES)" \ |
158 XS_CNFG_ENV=CC=$(CC) CFLAGS="$(XS_CFLAGS) $(INCLUDES)" CPPFLAGS="$(INCLUDES)" \ |
158 PATH=/usr/perl5/bin:/usr/sfw/bin:/opt/sfw/bin:$(PATH) \ |
159 PATH=/usr/perl5/bin:/usr/sfw/bin:/opt/jdsbld/bin:/opt/sfw/bin:$(PATH) \ |
159 GNOME_DATADIR='$${prefix}/lib/xscreensaver/config' \ |
160 GNOME_DATADIR='$${prefix}/lib/xscreensaver/config' \ |
160 GLADE_DATADIR='$${prefix}/lib/xscreensaver/config' \ |
161 GLADE_DATADIR='$${prefix}/lib/xscreensaver/config' \ |
161 LDFLAGS="$(PROG_LDFLAGS) -L/usr/X11/lib -R/usr/X11/lib" \ |
|
162 PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR) \ |
162 PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR) \ |
163 PERL=/usr/perl5/bin/perl |
163 PERL=/usr/perl5/bin/perl |
164 XS_MAKE_ENV=install_prefix=$(PROTODIR) |
164 XS_MAKE_ENV=install_prefix=$(PROTODIR) |
165 |
165 |
166 build_gen: $(XS_BIN) $(XS_MAN) $(XS_POT) |
166 build_gen: $(XS_BIN) $(XS_MAN) $(XS_POT) |
175 (cd $(SOURCE_DIR) ; chmod a+x install-sh ; \ |
175 (cd $(SOURCE_DIR) ; chmod a+x install-sh ; \ |
176 $(MAKE) $(MFLAGS) -e $(XS_MAKE_ENV)) |
176 $(MAKE) $(MFLAGS) -e $(XS_MAKE_ENV)) |
177 |
177 |
178 $(XS_POT): $(SOURCE_DIR)/Makefile |
178 $(XS_POT): $(SOURCE_DIR)/Makefile |
179 (cd $(SOURCE_DIR)/po ; \ |
179 (cd $(SOURCE_DIR)/po ; \ |
180 PATH=/opt/sfw/bin:$(PATH) $(MAKE) -e $(XS_MAKE_ENV) generate_potfiles_in ; \ |
180 PATH=/opt/jdsbld/bin:/opt/sfw/bin:$(PATH) ; export PATH ; \ |
181 PATH=/opt/sfw/bin:$(PATH) $(MAKE) -e $(XS_MAKE_ENV) POTFILES ; \ |
181 $(MAKE) -e $(XS_MAKE_ENV) generate_potfiles_in ; \ |
182 PATH=/opt/sfw/bin:$(PATH) $(MAKE) -e $(XS_MAKE_ENV) xscreensaver.pot ) |
182 $(MAKE) -e $(XS_MAKE_ENV) POTFILES ; \ |
|
183 $(MAKE) -e $(XS_MAKE_ENV) xscreensaver.pot ) |
183 |
184 |
184 # Add Sun attributes section to man pages |
185 # Add Sun attributes section to man pages |
185 $(XS_MAN): |
186 $(XS_MAN): |
186 /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \ |
187 /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \ |
187 -a '{Availability, SUNWxscreensaver} {Interface Stability, Volatile}' \ |
188 -a '{Availability, SUNWxscreensaver} {Interface Stability, Volatile}' \ |