head 1.14; access; symbols pkgsrc-2026Q1:1.14.0.134 pkgsrc-2026Q1-base:1.14 pkgsrc-2025Q4:1.14.0.132 pkgsrc-2025Q4-base:1.14 pkgsrc-2025Q3:1.14.0.130 pkgsrc-2025Q3-base:1.14 pkgsrc-2025Q2:1.14.0.128 pkgsrc-2025Q2-base:1.14 pkgsrc-2025Q1:1.14.0.126 pkgsrc-2025Q1-base:1.14 pkgsrc-2024Q4:1.14.0.124 pkgsrc-2024Q4-base:1.14 pkgsrc-2024Q3:1.14.0.122 pkgsrc-2024Q3-base:1.14 pkgsrc-2024Q2:1.14.0.120 pkgsrc-2024Q2-base:1.14 pkgsrc-2024Q1:1.14.0.118 pkgsrc-2024Q1-base:1.14 pkgsrc-2023Q4:1.14.0.116 pkgsrc-2023Q4-base:1.14 pkgsrc-2023Q3:1.14.0.114 pkgsrc-2023Q3-base:1.14 pkgsrc-2023Q2:1.14.0.112 pkgsrc-2023Q2-base:1.14 pkgsrc-2023Q1:1.14.0.110 pkgsrc-2023Q1-base:1.14 pkgsrc-2022Q4:1.14.0.108 pkgsrc-2022Q4-base:1.14 pkgsrc-2022Q3:1.14.0.106 pkgsrc-2022Q3-base:1.14 pkgsrc-2022Q2:1.14.0.104 pkgsrc-2022Q2-base:1.14 pkgsrc-2022Q1:1.14.0.102 pkgsrc-2022Q1-base:1.14 pkgsrc-2021Q4:1.14.0.100 pkgsrc-2021Q4-base:1.14 pkgsrc-2021Q3:1.14.0.98 pkgsrc-2021Q3-base:1.14 pkgsrc-2021Q2:1.14.0.96 pkgsrc-2021Q2-base:1.14 pkgsrc-2021Q1:1.14.0.94 pkgsrc-2021Q1-base:1.14 pkgsrc-2020Q4:1.14.0.92 pkgsrc-2020Q4-base:1.14 pkgsrc-2020Q3:1.14.0.90 pkgsrc-2020Q3-base:1.14 pkgsrc-2020Q2:1.14.0.86 pkgsrc-2020Q2-base:1.14 pkgsrc-2020Q1:1.14.0.66 pkgsrc-2020Q1-base:1.14 pkgsrc-2019Q4:1.14.0.88 pkgsrc-2019Q4-base:1.14 pkgsrc-2019Q3:1.14.0.84 pkgsrc-2019Q3-base:1.14 pkgsrc-2019Q2:1.14.0.82 pkgsrc-2019Q2-base:1.14 pkgsrc-2019Q1:1.14.0.80 pkgsrc-2019Q1-base:1.14 pkgsrc-2018Q4:1.14.0.78 pkgsrc-2018Q4-base:1.14 pkgsrc-2018Q3:1.14.0.76 pkgsrc-2018Q3-base:1.14 pkgsrc-2018Q2:1.14.0.74 pkgsrc-2018Q2-base:1.14 pkgsrc-2018Q1:1.14.0.72 pkgsrc-2018Q1-base:1.14 pkgsrc-2017Q4:1.14.0.70 pkgsrc-2017Q4-base:1.14 pkgsrc-2017Q3:1.14.0.68 pkgsrc-2017Q3-base:1.14 pkgsrc-2017Q2:1.14.0.64 pkgsrc-2017Q2-base:1.14 pkgsrc-2017Q1:1.14.0.62 pkgsrc-2017Q1-base:1.14 pkgsrc-2016Q4:1.14.0.60 pkgsrc-2016Q4-base:1.14 pkgsrc-2016Q3:1.14.0.58 pkgsrc-2016Q3-base:1.14 pkgsrc-2016Q2:1.14.0.56 pkgsrc-2016Q2-base:1.14 pkgsrc-2016Q1:1.14.0.54 pkgsrc-2016Q1-base:1.14 pkgsrc-2015Q4:1.14.0.52 pkgsrc-2015Q4-base:1.14 pkgsrc-2015Q3:1.14.0.50 pkgsrc-2015Q3-base:1.14 pkgsrc-2015Q2:1.14.0.48 pkgsrc-2015Q2-base:1.14 pkgsrc-2015Q1:1.14.0.46 pkgsrc-2015Q1-base:1.14 pkgsrc-2014Q4:1.14.0.44 pkgsrc-2014Q4-base:1.14 pkgsrc-2014Q3:1.14.0.42 pkgsrc-2014Q3-base:1.14 pkgsrc-2014Q2:1.14.0.40 pkgsrc-2014Q2-base:1.14 pkgsrc-2014Q1:1.14.0.38 pkgsrc-2014Q1-base:1.14 pkgsrc-2013Q4:1.14.0.36 pkgsrc-2013Q4-base:1.14 pkgsrc-2013Q3:1.14.0.34 pkgsrc-2013Q3-base:1.14 pkgsrc-2013Q2:1.14.0.32 pkgsrc-2013Q2-base:1.14 pkgsrc-2013Q1:1.14.0.30 pkgsrc-2013Q1-base:1.14 pkgsrc-2012Q4:1.14.0.28 pkgsrc-2012Q4-base:1.14 pkgsrc-2012Q3:1.14.0.26 pkgsrc-2012Q3-base:1.14 pkgsrc-2012Q2:1.14.0.24 pkgsrc-2012Q2-base:1.14 pkgsrc-2012Q1:1.14.0.22 pkgsrc-2012Q1-base:1.14 pkgsrc-2011Q4:1.14.0.20 pkgsrc-2011Q4-base:1.14 pkgsrc-2011Q3:1.14.0.18 pkgsrc-2011Q3-base:1.14 pkgsrc-2011Q2:1.14.0.16 pkgsrc-2011Q2-base:1.14 pkgsrc-2011Q1:1.14.0.14 pkgsrc-2011Q1-base:1.14 pkgsrc-2010Q4:1.14.0.12 pkgsrc-2010Q4-base:1.14 pkgsrc-2010Q3:1.14.0.10 pkgsrc-2010Q3-base:1.14 pkgsrc-2010Q2:1.14.0.8 pkgsrc-2010Q2-base:1.14 pkgsrc-2010Q1:1.14.0.6 pkgsrc-2010Q1-base:1.14 pkgsrc-2009Q4:1.14.0.4 pkgsrc-2009Q4-base:1.14 pkgsrc-2009Q3:1.14.0.2 pkgsrc-2009Q3-base:1.14 pkgsrc-2009Q2:1.13.0.32 pkgsrc-2009Q2-base:1.13 pkgsrc-2009Q1:1.13.0.30 pkgsrc-2009Q1-base:1.13 pkgsrc-2008Q4:1.13.0.28 pkgsrc-2008Q4-base:1.13 pkgsrc-2008Q3:1.13.0.26 pkgsrc-2008Q3-base:1.13 cube-native-xorg:1.13.0.24 cube-native-xorg-base:1.13 pkgsrc-2008Q2:1.13.0.22 pkgsrc-2008Q2-base:1.13 cwrapper:1.13.0.20 pkgsrc-2008Q1:1.13.0.18 pkgsrc-2008Q1-base:1.13 pkgsrc-2007Q4:1.13.0.16 pkgsrc-2007Q4-base:1.13 pkgsrc-2007Q3:1.13.0.14 pkgsrc-2007Q3-base:1.13 pkgsrc-2007Q2:1.13.0.12 pkgsrc-2007Q2-base:1.13 pkgsrc-2007Q1:1.13.0.10 pkgsrc-2007Q1-base:1.13 pkgsrc-2006Q4:1.13.0.8 pkgsrc-2006Q4-base:1.13 pkgsrc-2006Q3:1.13.0.6 pkgsrc-2006Q3-base:1.13 pkgsrc-2006Q2:1.13.0.4 pkgsrc-2006Q2-base:1.13 pkgsrc-2006Q1:1.13.0.2 pkgsrc-2006Q1-base:1.13 pkgsrc-2005Q4:1.12.0.8 pkgsrc-2005Q4-base:1.12 pkgsrc-2005Q3:1.12.0.6 pkgsrc-2005Q3-base:1.12 pkgsrc-2005Q2:1.12.0.4 pkgsrc-2005Q2-base:1.12 pkgsrc-2005Q1:1.12.0.2 pkgsrc-2005Q1-base:1.12 pkgsrc-2004Q4:1.11.0.12 pkgsrc-2004Q4-base:1.11 pkgsrc-2004Q3:1.11.0.10 pkgsrc-2004Q3-base:1.11 pkgsrc-2004Q2:1.11.0.8 pkgsrc-2004Q2-base:1.11 pkgsrc-2004Q1:1.11.0.6 pkgsrc-2004Q1-base:1.11 pkgsrc-2003Q4:1.11.0.4 pkgsrc-2003Q4-base:1.11 netbsd-1-6-1:1.11.0.2 netbsd-1-6-1-base:1.11 netbsd-1-6:1.10.0.8 netbsd-1-6-RELEASE-base:1.10 pkgviews:1.10.0.4 pkgviews-base:1.10 buildlink2:1.10.0.2 buildlink2-base:1.10 netbsd-1-5-PATCH003:1.10 netbsd-1-5-PATCH001:1.8 netbsd-1-5-RELEASE:1.8 netbsd-1-4-PATCH003:1.8 netbsd-1-4-PATCH002:1.4 comdex-fall-1999:1.4 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2 netbsd-1-3-PATCH002:1.1.1.1 FreeBSD-current-1998-02-25:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.14 date 2009.10.07.17.41.35; author joerg; state Exp; branches; next 1.13; 1.13 date 2006.01.08.14.30.01; author tron; state Exp; branches; next 1.12; 1.12 date 2005.03.15.03.59.38; author tv; state Exp; branches; next 1.11; 1.11 date 2002.09.21.12.13.44; author jlam; state Exp; branches; next 1.10; 1.10 date 2001.11.30.16.29.28; author jlam; state Exp; branches; next 1.9; 1.9 date 2001.11.29.18.00.32; author wiz; state Exp; branches; next 1.8; 1.8 date 2000.09.04.11.29.36; author tron; state Exp; branches; next 1.7; 1.7 date 2000.07.11.09.53.11; author agc; state Exp; branches; next 1.6; 1.6 date 2000.07.08.12.47.04; author tron; state Exp; branches; next 1.5; 1.5 date 2000.05.24.09.15.58; author agc; state Exp; branches; next 1.4; 1.4 date 99.10.01.07.49.19; author simonb; state Exp; branches; next 1.3; 1.3 date 99.10.01.05.09.14; author simonb; state Exp; branches; next 1.2; 1.2 date 98.08.07.11.09.35; author agc; state Exp; branches; next 1.1; 1.1 date 98.02.25.16.01.26; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 98.02.25.16.01.26; author agc; state Exp; branches; next ; desc @@ 1.14 log @Provide --mode arguments for libtool. @ text @$NetBSD: patch-ab,v 1.13 2006/01/08 14:30:01 tron Exp $ --- Makefile.dist.orig 1991-11-24 23:55:28.000000000 +0000 +++ Makefile.dist 2006-01-08 14:13:23.000000000 +0000 @@@@ -22,15 +22,18 @@@@ # uncommented and set accordingly, if needed. # #======================================================================== +# Installation prefix. +#PREFIX ?=/usr/local +#------------------------------------------------------------------------ # If you want audio support, then the following line should be uncommented. # -#AUDIO_SUPPORT = -DAUDIO_SUPPORT +AUDIO_SUPPORT = -DAUDIO_SUPPORT #======================================================================== # There is a default command (/usr/demo/SOUND/play), which is used to # play audio files. Alternatively you can specify your own custom # command here. Uncomment the following line and set appropriately. # -#AUDIO_CMD = -DAUDIO_CMD=\"/usr/local/bin/play\" +AUDIO_CMD = -DAUDIO_CMD=\"$(LOCALBASE)/bin/rplay\" #======================================================================== # Faces displays a background pattern in its' window. When the window # is not completely full, this gives the appearance of trying to blend @@@@ -38,7 +41,7 @@@@ # can specify the name of a file containing an alternate pattern to use. # Uncomment the next two lines and set appropriately. # -#BACKNAME = /usr/local/sample-background +#BACKNAME = $(PREFIX)/sample-background #BACKGROUND = -DBACKGROUND=\"$(BACKNAME)\" #------------------------------------------------------------------------ # Uncomment the following two lines to use the Domain Name Service to @@@@ -54,8 +57,8 @@@@ # NOTE that for this to work you must have at least a minimal # /etc/resolv.conf file containing a valid nameserver entry. # -#DNSLOOKUP = -DDNSLOOKUP -#DNSLIB = -lresolv +DNSLOOKUP = -DDNSLOOKUP +DNSLIB = #------------------------------------------------------------------------ # If you do not want to show the number of messages on the face icon, # then uncomment the next line. @@@@ -72,12 +75,12 @@@@ # #DONTSHOWUSER = -DDONTSHOWUSER #------------------------------------------------------------------------ -# By default, faces looks for the face images in /usr/local/faces. If +# By default, faces looks for the face images in $(PREFIX)/faces. If # you wish to specify an alternate location, then these two lines should # be uncommented and set appropriately. Note that the value must be # a single directory name, not a colon separated list of paths. # -FACEDIR = /usr/local/faces +FACEDIR = $(PREFIX)/share/faces CFACEDIR = -DFACEDIR=\"$(FACEDIR)\" #------------------------------------------------------------------------ # It is possible to determine what type of monitoring faces does at @@@@ -188,7 +191,7 @@@@ # to the select call are different, and this definition should be # uncommented. You need to uncomment this for SunOS v3.x. # -#SELTYPE = -DNO_43SELECT +SELTYPE = -DNO_43SELECT #------------------------------------------------------------------------ # If you are building faces on a Silicon Graphics machine, then you will # need to uncomment the following two definitions. @@@@ -199,7 +202,7 @@@@ # If the pending mail for users is in a different directory than # /usr/spool/mail, uncomment the following and set appropriately. # -#SPOOLDIR = -DSPOOLDIR=\"/usr/mail\" +SPOOLDIR = -DSPOOLDIR=\"/var/mail\" #------------------------------------------------------------------------ # If faces is setup to monitor mail, then the name of the default # spoolfile is /usr/spool/mail/username. An alternative spoolfile name @@@@ -258,8 +261,8 @@@@ # library files are not in a standard place, then the following # two lines should be uncommented, and set appropriately. # -#X11INCDIR = -I$(OPENWINHOME)/include -#X11LIBDIR = -L$(OPENWINHOME)/lib +X11INCDIR = -I${X11BASE}/include +X11LIBDIR = -L${X11BASE}/lib #------------------------------------------------------------------------ # If you are compiling the XView version, then the following two lines # should be uncommented, and set appropriately. @@@@ -272,17 +275,19 @@@@ # Default locations where faces files will be installed. # You might wish to alter these values. # -BINDIR = /usr/local/bin -LIBDIR = /usr/local/lib -MANDIR = /usr/man -MANSECT = l +BINDIR = $(PREFIX)/bin +LIBDIR = $(PREFIX)/lib +INCDIR = $(PREFIX)/include +MANDIR = $(PREFIX)/man +MANSECT = 1 # # Options for submakes # MAKEOPTS = $(MFLAGS) BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) \ - MANDIR=$(MANDIR) CC=$(CC) \ - NOINDEX=$(NOINDEX) SYSV=$(SYSV) + INCDIR=$(INCDIR) MANDIR=$(MANDIR) CC="$(CC)" \ + NOINDEX=$(NOINDEX) SYSV=$(SYSV) PREFIX=$(PREFIX) \ + CCOMP="$(CCOMP)" # # Override DEBUG on the command line as `DEBUG=-DDEBUG' to enable various @@@@ -302,7 +307,7 @@@@ $(SELTYPE) $(SGIDEF) $(SPOOLDIR) $(SPOOLFILE) $(SYSV) \ $(TTEXT) $(TOPIX) $(UPDATE) $(USE_BZERO) $(USE_GETWD) \ $(X11R3) $(X11INCDIR) $(XVIEWINCDIR) $(DEBUG) -CCOMP = -O +CCOMP = -g CFLAGS = $(CCOMP) $(CDEFS) # #======================================================================= @@@@ -311,12 +316,9 @@@@ BINARIES = psfaces svfaces xfaces xvfaces -CC = cc -MAKE = make - STDSRCS = address.c get.c main.c mon.c parsefrom.c rec.c STDOBJS = address.o get.o main.o mon.o parsefrom.o rec.o -STDLIBS = compface/libcompface.a $(DNSLIB) $(SGILIBS) +STDLIBS = $(LDFLAGS) compface/libcompface.la $(DNSLIB) $(SGILIBS) COMPFACE = compface FACES = facedir @@@@ -357,25 +359,25 @@@@ # Dell Unix (Interactive 386/ix): $(X11LIBDIR) -lX11 -linet # AT&T's XWIN: $(X11LIBDIR) -lX11_s -lc_s -lnsl_s -lpt # -X11LIBS = $(X11LIBDIR) -lX11 +X11LIBS = -lX11 XVIEWLIBS = $(XVIEWLIBDIR) -lxview -lolgx -lX11 help: @@echo @@echo "You need to specify one of the following options:" @@echo - @@echo " make sunview - to make the SunView version." - @@echo " make news - to make the NeWS version." - @@echo " make x11 - to make the X11 version." - @@echo " make xview - to make the XView version." + @@echo " ${MAKE} sunview - to make the SunView version." + @@echo " ${MAKE} news - to make the NeWS version." + @@echo " ${MAKE} x11 - to make the X11 version." + @@echo " ${MAKE} xview - to make the XView version." @@echo @@echo "This should be followed by:" @@echo - @@echo " make install" - @@echo " make clean" + @@echo " ${MAKE} install" + @@echo " ${MAKE} clean" @@echo -all: $(BINARIES) +all: x11 news: $(STDOBJS) news.o faces_cps.h (cd compface; $(MAKE) $(MAKEOPTS)) @@@@ -394,9 +396,8 @@@@ x11: $(STDOBJS) x11.o (cd compface; $(MAKE) $(MAKEOPTS)) (cd filters; $(MAKE) $(MAKEOPTS)) - $(CC) -o xfaces $(CFLAGS) $(STDOBJS) x11.o \ + $(LIBTOOL) --mode=link $(CC) -o faces $(CFLAGS) $(STDOBJS) x11.o \ $(STDLIBS) $(X11LIBS) $(SVR4LIBS) - -cp xfaces faces xview: $(STDOBJS) xview.o (cd compface; $(MAKE) $(MAKEOPTS)) @@@@ -406,21 +407,24 @@@@ -cp xvfaces faces tables: - -mkdir $(FACEDIR) - -install -c -m 644 machine.tab $(FACEDIR) - -install -c -m 644 people.tab $(FACEDIR) + ${BSD_INSTALL_DATA_DIR} $(FACEDIR) + ${BSD_INSTALL_DATA} machine.tab $(FACEDIR) + ${BSD_INSTALL_DATA} people.tab $(FACEDIR) install: + ${MAKE} tables (cd compface; $(MAKE) $(MAKEOPTS) install) (cd filters; $(MAKE) $(MAKEOPTS) install) (cd scripts; $(MAKE) $(MAKEOPTS) install) - install -s -m 751 faces $(BINDIR) - install -c -m 755 face_update $(BINDIR) - install -c -m 755 faces.sendmail $(BINDIR) - install -c -m 644 faces.man \ + $(LIBTOOL) --mode=install ${BSD_INSTALL_PROGRAM} faces $(BINDIR) + ${BSD_INSTALL_SCRIPT} face_update $(BINDIR) + ${BSD_INSTALL_SCRIPT} faces.sendmail $(BINDIR) + ${BSD_INSTALL_MAN} faces.man \ $(MANDIR)/man$(MANSECT)/faces.$(MANSECT) - install -c -m 644 face_update.1 \ + ${BSD_INSTALL_MAN} face_update.1 \ $(MANDIR)/man$(MANSECT)/face_update.$(MANSECT) + ${BSD_INSTALL_DATA_DIR} $(PREFIX)/lib/X11/app-defaults + ${BSD_INSTALL_DATA} Faces.ad $(PREFIX)/lib/X11/app-defaults/Faces clean: (cd compface; $(MAKE) $(MAKEOPTS) clean) @ 1.13 log @Revert last change. Using GNU make under Darwin didn't fix the problem, it only masked it. Switch back to BSD make and fix real problems. This results in a complete installation of the package under Darwin. @ text @d1 1 a1 1 $NetBSD$ d178 1 a178 1 + $(LIBTOOL) $(CC) -o faces $(CFLAGS) $(STDOBJS) x11.o \ d204 1 a204 1 + $(LIBTOOL) ${BSD_INSTALL_PROGRAM} faces $(BINDIR) @ 1.12 log @Make build on Interix. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.11 2002/09/21 12:13:44 jlam Exp $ d3 2 a4 2 --- Makefile.dist.orig Sun Nov 24 18:55:28 1991 +++ Makefile.dist d110 1 a110 1 + INCDIR=$(INCDIR) MANDIR=$(MANDIR) CC=$(CC) \ @ 1.11 log @buildlink1 -> buildlink2, and note conflict with compfaces. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.10 2001/11/30 16:29:28 jlam Exp $ a60 9 @@@@ -123,7 +126,7 @@@@ # Note that the domain name will be converted to lower case before # attempting to match in the machines file, or create an icon filename. # -#NISLOOKUP = -DNISLOOKUP +NISLOOKUP = -DNISLOOKUP #------------------------------------------------------------------------ # If you don't want faces to use full domain names for extracting face # icons, then you should uncomment the NODOMAINS definition below. @ 1.10 log @Update mail/faces to 1.6.1nb1. Changes from version 1.6.1 are moving the package under ${X11PREFIX} instead of trying to dual-install under both ${LOCALBASE} and ${X11BASE}, and strongly buildlink'fiying. @ text @d1 1 a1 1 $NetBSD$ d94 2 a95 2 +X11INCDIR = -I${BUILDLINK_X11_DIR}/include +X11LIBDIR = -L${BUILDLINK_X11_DIR}/lib @ 1.9 log @Misc fixes: Remove a dead MASTER_SITE. Use PLIST_SUBST instead of local hack. Create app-defaults dir if missing (solves pkg/13179). Don't hardwire incorrect app-defaults path in patch-at. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.8 2000/09/04 11:29:36 tron Exp $ d3 6 a8 27 --- Makefile.orig Mon Sep 4 10:37:54 2000 +++ Makefile Mon Sep 4 10:55:54 2000 @@@@ -0,0 +1,476 @@@@ +# +# Makefile for faces, an icon face server, plus associated software. +# +# Graphical versions for NeWS, SunView, X11 and XView. +# +# @@(#)Makefile.dist 1.10 91/11/19 +# +# Copyright (c) Rich Burridge. +# Sun Microsystems, Australia - All rights reserved. +# +# Permission is given to distribute these sources, as long as the +# copyright messages are not removed, and no monies are exchanged. +# +# No responsibility is taken for any errors inherent either +# to the comments or the code of this program, but if reported +# to me then an attempt will be made to fix them. +# +#======================================================================== +# +# There are various small changes needed when compiling faces on +# different systems. These have been isolated here, and should be +# uncommented and set accordingly, if needed. +# +#======================================================================== d12 3 a14 2 +# If you want audio support, then the following line should be uncommented. +# d16 15 a30 13 +#======================================================================== +# There is a default command (/usr/demo/SOUND/play), which is used to +# play audio files. Alternatively you can specify your own custom +# command here. Uncomment the following line and set appropriately. +# +AUDIO_CMD = -DAUDIO_CMD=\"$(PREFIX)/bin/rplay\" +#======================================================================== +# Faces displays a background pattern in its' window. When the window +# is not completely full, this gives the appearance of trying to blend +# in with the background. By default, this is a root gray color, but you +# can specify the name of a file containing an alternate pattern to use. +# Uncomment the next two lines and set appropriately. +# d32 9 a40 15 +#BACKGROUND = -DBACKGROUND=\"$(BACKNAME)\" +#------------------------------------------------------------------------ +# Uncomment the following two lines to use the Domain Name Service to +# attempt to convert unqualified hostnames, or hostnames with partial +# domains to fully qualified domain names. +# +# When used with NISLOOKUP, DNSLOOKUP will take precedance. +# +# NOTE that the domain name returned by DNS will be converted to lower +# case before attempting a machines.tab match, or constructing an icon +# file name. +# +# NOTE that for this to work you must have at least a minimal +# /etc/resolv.conf file containing a valid nameserver entry. +# d43 8 a50 16 +#------------------------------------------------------------------------ +# If you do not want to show the number of messages on the face icon, +# then uncomment the next line. +# +#DONTSHOWNO = -DDONTSHOWNO +#------------------------------------------------------------------------ +# If you do not want to show the timestamp on the face icon, then +# uncomment the next line. +# +#DONTSHOWTIME = -DDONTSHOWTIME +#------------------------------------------------------------------------ +# If you do not want to show the username on the face icon, then +# uncomment the next line. +# +#DONTSHOWUSER = -DDONTSHOWUSER +#------------------------------------------------------------------------ d52 5 a56 4 +# you wish to specify an alternate location, then these two lines should +# be uncommented and set appropriately. Note that the value must be +# a single directory name, not a colon separated list of paths. +# d58 8 a65 45 +CFACEDIR = -DFACEDIR=\"$(FACEDIR)\" +#------------------------------------------------------------------------ +# It is possible to determine what type of monitoring faces does at +# run time with different command line options, but it is also possible +# to define it at compile time. +# +# Monitor type (0 = mail (new), 1 = mail (all), 2 = print queue). +# 3 = custom prog, 4 = users). +# +#FMONTYPE = -DFMONTYPE=0 +#------------------------------------------------------------------------ +# If you have the poll(2) system call, then uncomment the following +# definition. Note that you will also have to uncomment the NOSELECT +# definition. This is needed for SVR4 machines. +# +#HASPOLL = -DHASPOLL +#------------------------------------------------------------------------ +# Some users on monochrome screens display everything in reverse video. +# If you would like faces to do the same, then this line needs to be +# uncommented. +# +#INVERT = -DINVERT +#------------------------------------------------------------------------ +# When no icon is found for a given user, the unknown icon may be displayed +# either with the user name, or labeled as `unknown'. The former case +# provides the most information, the latter allows all unknown users +# within a given community to be lumped into a single image. To select +# the latter case uncomment the following line. +# +#NAMEUNKNOWN = -DNAMEUNKNOWN +#------------------------------------------------------------------------ +# If you are compiling the NeWS version, then the following two lines +# should be uncommented, and set appropriately. +# +#NEWSINCDIR = -I$(OPENWINHOME)/include +#NEWSLIBDIR = -L$(OPENWINHOME)/lib +#------------------------------------------------------------------------ +# Uncomment the following line to use the Sun Network Information +# Services (NIS, formerly YP) to look for hosts which do not explicitly +# appear in the machines.tab file. When used with DNSLOOKUP, DNSLOOKUP +# takes precedance. +# +# Note that the domain name will be converted to lower case before +# attempting to match in the machines file, or create an icon filename. +# d67 8 a74 64 +#------------------------------------------------------------------------ +# If you don't want faces to use full domain names for extracting face +# icons, then you should uncomment the NODOMAINS definition below. +# +#NODOMAINS = -DNODOMAINS +#------------------------------------------------------------------------ +# If your system doesn't have the gethostname() system call, then this +# might be a useful alternative. This is needed for SVR4 machines. +# +#NOGETHOSTNAME = -DNOGETHOSTNAME +#------------------------------------------------------------------------ +# By default, faces will check the "From " line first for username and +# hostname, and then the "From:" line. +# Not all machines have the index() string library function. If you +# don't have this function then you should uncomment the NOINDEX +# definition below. +# +#NOINDEX = -DNOINDEX +#-------------------------------------------------------------------------- +# It appears that not every Unix system defines MAXPATHLEN, which indicates +# the maximum length of a Unix pathname. If your system doesn't, then +# you need to uncomment this definition. +# +#NOMAXPATHLEN = -DNOMAXPATHLEN +#-------------------------------------------------------------------------- +# Not every version of Unix (in particular System V derivitives) has the +# select() system call. If your machine doesn't have this call, then you +# need to uncomment the following definition. +# +#NOSELECT = -DNOSELECT +#-------------------------------------------------------------------------- +# If your system lacks the utime() library call and definition, then +# uncomment the following definition. +# +#NOUTIME = -DNOUTIME +#-------------------------------------------------------------------------- +# By default, faces rechecks for new mail or print jobs every sixty +# seconds. If you would like to specify an alternate period, then uncomment +# the following line and set appropriately. +# +#PERIOD = -DPERIOD=30 +#------------------------------------------------------------------------ +# By default, faces will examine printer queues a la Berkeley Style. +# Alternatively, if you have the PLP printer spooling system running, then +# uncomment the next line. +# +#PLP = -DPLP +#------------------------------------------------------------------------- +# If you are using the RAND mailer which uses four ^A characters to mark +# the beginning and end of messages, then you will need to uncomment the +# following line. +# +#RAND = -DRAND +#------------------------------------------------------------------------- +# Faces is designed to work on a big-endian machine by default. If you +# are compiling for a little-endian machine (such as the Sun 386i), then +# you need to uncomment the following line. +# +#REVORDER = -DREVORDER +#------------------------------------------------------------------------ +# If you not running under a BSD4.3 derived system, the parameters +# to the select call are different, and this definition should be +# uncommented. You need to uncomment this for SunOS v3.x. +# d76 8 a83 10 +#------------------------------------------------------------------------ +# If you are building faces on a Silicon Graphics machine, then you will +# need to uncomment the following two definitions. +# +#SGIDEF = -Umips +#SGILIBS = -lsun -lc_s +#------------------------------------------------------------------------ +# If the pending mail for users is in a different directory than +# /usr/spool/mail, uncomment the following and set appropriately. +# d85 22 a106 72 +#------------------------------------------------------------------------ +# If faces is setup to monitor mail, then the name of the default +# spoolfile is /usr/spool/mail/username. An alternative spoolfile name +# can be given by uncommenting the following line and setting +# appropriately. +# +#SPOOLFILE = -DSPOOLFILE=\"/usr/richb/Mail/pending\" +#-------------------------------------------------------------------------- +# If you are trying to build faces on an SVR4 machine, then you should +# uncomment the following entry, and set SVR4LIBS to the list of SVR4 +# specific libraries needed to link reve. +# +#SVR4LIBS = -lnsl -lsocket -lgen +#-------------------------------------------------------------------------- +# If you are running on a Unix System V machine, then you should uncomment +# the next definition. +# +#SYSV = -DSYSV32 +#-------------------------------------------------------------------------- +# If you are running SunOS v3.x, then pr_ttext doesn't exist, and +# you must uncomment this definition. +# +#TTEXT = -DNO_PR_TTEXT +#------------------------------------------------------------------------ +# Uncomment if building faces under Sequoia's operating system. +# +#TOPIX = -DTOPIX +#-------------------------------------------------------------------------- +# If the -U command line option is given to faces, then mail is sent to +# a special mail alias. This alias is really a shell script, which will +# take the given information, and try to update the faces database. By +# default that alias is called "facemaker", but it is possible to give an +# alternative alias here. This might be useful if a collection of machines +# were remotely mounting the faces database from a file server. +# +#UPDATE = -DUPDATE=\"facemaker@@fileserver\" +#------------------------------------------------------------------------ +# If your system does not have the memset() library call, but instead +# uses the bzero() library call, then the following definition needs to +# be uncommented. +# +#USE_BZERO = -DUSE_BZERO +#------------------------------------------------------------------------ +# If your system does not have the getcwd() library call, but instead +# uses the getwd() library call, then the following definition needs to +# be uncommented. +# +#USE_GETWD = -DUSE_GETWD +#------------------------------------------------------------------------ +# If you are compiling the X11 version under MIT X11R3, you will need to +# uncomment the following definition: +# +#X11R3 = -DX11R3 +#------------------------------------------------------------------------ +# If you are compiling the X11 version and the X11 include and +# library files are not in a standard place, then the following +# two lines should be uncommented, and set appropriately. +# +X11INCDIR = -I$(X11BASE)/include +X11LIBDIR = -L$(X11BASE)/lib +#------------------------------------------------------------------------ +# If you are compiling the XView version, then the following two lines +# should be uncommented, and set appropriately. +# +#XVIEWINCDIR = -I$(OPENWINHOME)/include +#XVIEWLIBDIR = -L$(OPENWINHOME)/lib +# +#======================================================================= +# +# Default locations where faces files will be installed. +# You might wish to alter these values. +# d112 7 a118 5 + +# +# Options for submakes +# +MAKEOPTS = $(MFLAGS) BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) \ d120 44 a163 79 + NOINDEX=$(NOINDEX) SYSV=$(SYSV) + +# +# Override DEBUG on the command line as `DEBUG=-DDEBUG' to enable various +# additional checking diagnostic output options. +# +DEBUG = + +# +# Compilation flags and standard macro definitions. +# +CDEFS = $(AUDIO_SUPPORT) $(AUDIO_CMD) $(BACKGROUND) \ + $(DNSLOOKUP) $(DONTSHOWNO) $(DONTSHOWTIME) $(DONTSHOWUSER) \ + $(CFACEDIR) $(FMONTYPE) $(HASPOLL) $(INVERT) \ + $(NAMEUNKNOWN) $(NEWSINCDIR) $(NISLOOKUP) $(NODOMAINS) \ + $(NOGETHOSTNAME) $(NOINDEX) $(NOMAXPATHLEN) $(NOSELECT) \ + $(NOUTIME) $(PERIOD) $(PLP) $(RAND) $(REVORDER) \ + $(SELTYPE) $(SGIDEF) $(SPOOLDIR) $(SPOOLFILE) $(SYSV) \ + $(TTEXT) $(TOPIX) $(UPDATE) $(USE_BZERO) $(USE_GETWD) \ + $(X11R3) $(X11INCDIR) $(XVIEWINCDIR) $(DEBUG) +CCOMP = -pipe -O2 +CFLAGS = $(CCOMP) $(CDEFS) +# +#======================================================================= + +.KEEP_STATE: + +BINARIES = psfaces svfaces xfaces xvfaces + +STDSRCS = address.c get.c main.c mon.c parsefrom.c rec.c +STDOBJS = address.o get.o main.o mon.o parsefrom.o rec.o +STDLIBS = -L./compface -Wl,-R@@localbase@@/lib -lcompface $(DNSLIB) $(SGILIBS) + +COMPFACE = compface +FACES = facedir +FILTERS = filters +SCRIPTS = scripts +GSRCS = news.c sunview.c x11.c xview.c +HDRS = addr.h extern.h faces.h patchlevel.h +IMAGES = noface.xbm nomail.xbm noprint.xbm \ + nopaper.xbm nothing.xbm nousers.xbm +OTHERS = CHANGES CHANGES-v1.4 README TODO MANIFEST FILES \ + faces.man.text faces.man face_update.1 faces_cps.cps \ + Faces.ad Makefile.dist face_update +XFACE = xface + +SFILES1 = mon.c rec.c +SFILES2 = main.c parsefrom.c +SFILES3 = get.c news.c sunview.c +SFILES4 = x11.c $(HDRS) +SFILES5 = xview.c +SFILES6 = CHANGES-v1.4 +SFILES7 = CHANGES README TODO +SFILES8 = MANIFEST FILES Makefile.dist faces_cps.cps face_update \ + faces.sendmail +SFILES9 = faces.man face_update.1 $(IMAGES) +SFILES10 = faces.man.text Faces.ad +SFILES11 = $(FACES) +SFILES12 = $(COMPFACE) +SFILES13 = $(FILTERS) +SFILES14 = $(SCRIPTS) +SFILES15 = address.y $(XFACE) + +NEWSLIBS = $(NEWSLIBDIR) -lcps +SVIEWLIBS = -lsuntool -lsunwindow -lpixrect +# +# The following definition can vary. Here are a few examples: +# +# Sun/MIT X11R4: $(X11LIBDIR) -lX11 +# Dell Unix (Interactive 386/ix): $(X11LIBDIR) -lX11 -linet +# AT&T's XWIN: $(X11LIBDIR) -lX11_s -lc_s -lnsl_s -lpt +# +X11LIBS = -L@@x11base@@/lib -Wl,-R@@x11base@@/lib -lX11 +XVIEWLIBS = $(XVIEWLIBDIR) -lxview -lolgx -lX11 + +help: + @@echo + @@echo "You need to specify one of the following options:" + @@echo d168 5 a172 3 + @@echo + @@echo "This should be followed by:" + @@echo d175 3 a177 2 + @@echo + d179 26 a204 35 + +news: $(STDOBJS) news.o faces_cps.h + (cd compface; $(MAKE) $(MAKEOPTS)) + (cd filters; $(MAKE) $(MAKEOPTS)) + $(CC) -o psfaces $(CFLAGS) $(STDOBJS) news.o \ + $(STDLIBS) $(NEWSLIBS) + -cp psfaces faces + +sunview: $(STDOBJS) sunview.o + (cd compface; $(MAKE) $(MAKEOPTS)) + (cd filters; $(MAKE) $(MAKEOPTS)) + $(CC) -o svfaces $(CFLAGS) $(STDOBJS) sunview.o \ + $(STDLIBS) $(SVIEWLIBS) + -cp svfaces faces + +x11: $(STDOBJS) x11.o + (cd compface; $(MAKE) $(MAKEOPTS)) + (cd filters; $(MAKE) $(MAKEOPTS)) + $(CC) -o xfaces $(CFLAGS) $(STDOBJS) x11.o \ + $(STDLIBS) $(X11LIBS) $(SVR4LIBS) + -cp xfaces faces + +xview: $(STDOBJS) xview.o + (cd compface; $(MAKE) $(MAKEOPTS)) + (cd filters; $(MAKE) $(MAKEOPTS)) + $(CC) -o xvfaces $(CFLAGS) $(STDOBJS) xview.o \ + $(STDLIBS) $(XVIEWLIBS) $(SVR4LIBS) + -cp xvfaces faces + +tables: + -mkdir $(FACEDIR) + -install -c -m 644 machine.tab $(FACEDIR) + -install -c -m 644 people.tab $(FACEDIR) + +install: d206 20 a225 61 + (cd compface; $(MAKE) $(MAKEOPTS) install) + (cd filters; $(MAKE) $(MAKEOPTS) install) + (cd scripts; $(MAKE) $(MAKEOPTS) install) + install -c -s -m 751 faces $(BINDIR) + install -c -m 755 face_update $(BINDIR) + install -c -m 755 faces.sendmail $(BINDIR) + install -c -m 644 faces.man \ + $(MANDIR)/man$(MANSECT)/faces.$(MANSECT) + install -c -m 444 face_update.1 \ + $(MANDIR)/man$(MANSECT)/face_update.$(MANSECT) + install -d -m 444 @@x11prefix@@/lib/X11/app-defaults + install -c -m 444 -o bin Faces.ad @@x11prefix@@/lib/X11/app-defaults/Faces + +clean: + (cd compface; $(MAKE) $(MAKEOPTS) clean) + (cd filters; $(MAKE) $(MAKEOPTS) clean) + rm -f *.o Part* *~ $(BINARIES) faces core + +saber: + #load $(CDEFS) $(STDSRCS) x11.c $(STDLIBS) $(X11LIBS) + +lint: lint-news lint-sunview lint-x11 lint-xview +lint-news:; lint $(CDEFS) $(STDSRCS) news.c $(NEWSLIBS) +lint-sunview:; lint $(CDEFS) $(STDSRCS) sunview.c $(SVIEWLIBS) +lint-x11:; lint $(CDEFS) $(STDSRCS) x11.c +lint-xview:; lint $(CDEFS) $(STDSRCS) xview.c + +shar:; shar.script $(SFILES1) > faces.part1 + shar.script $(SFILES2) > faces.part2 + shar.script $(SFILES3) > faces.part3 + shar.script $(SFILES4) > faces.part4 + shar.script $(SFILES5) > faces.part5 + shar.script $(SFILES6) > faces.part6 + shar.script $(SFILES7) > faces.part7 + shar.script $(SFILES8) > faces.part8 + shar.script $(SFILES9) > faces.part9 + shar.script $(SFILES10) > faces.part10 + shar.script $(SFILES11) > faces.part11 + shar.script $(SFILES12) > faces.part12 + shar.script $(SFILES13) > faces.part13 + shar.script $(SFILES14) > faces.part14 + shar.script $(SFILES15) > faces.part15 + +create: SCCS + -sccs create $(STDSRCS) $(GSRCS) $(HDRS) $(IMAGES) $(OTHERS) + +SCCS: + mkdir SCCS + chmod 755 SCCS + +faces_cps.h: faces_cps.cps + cps $< + +get.o: get.c faces.h extern.h patchlevel.h +main.o: main.c faces.h $(IMAGES) +mon.o: mon.c faces.h extern.h +news.o: news.c faces.h extern.h faces_cps.h +rec.o: rec.c faces.h extern.h +sunview.o: sunview.c faces.h extern.h +x11.o: x11.c faces.h extern.h +xview.o: xview.c faces.h extern.h @ 1.8 log @Fix this package to pass the shared library test in the "check-shlibs" target. These patches created by Alistair Crooks. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -0,0 +1,475 @@@@ d431 1 @ 1.7 log @Attempt to differentiate between X11BASE (where X11 is installed) and X11PREFIX (where the app defaults file is to be installed, and which will be X11BASE, or LOCALBASE if xpkgwedge is installed). @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.6 2000/07/08 12:47:04 tron Exp $ d3 2 a4 2 --- Makefile.orig Sat Jul 8 14:25:27 2000 +++ Makefile Sat Jul 8 14:28:16 2000 d325 1 a325 1 +STDLIBS = -L./compface -lcompface $(DNSLIB) $(SGILIBS) d366 1 a366 1 +X11LIBS = -L@@x11base@@/lib -lX11 @ 1.6 log @Replace "/usr/local" by "${LOCALBASE}". Fixes PR pkg/10360, pkg/10465 and pkg/10529. @ text @d1 1 a1 1 $NetBSD$ d366 1 a366 1 +X11LIBS = -L/usr/X11R6/lib -lX11 d431 1 a431 1 + install -c -m 444 -o bin Faces.ad /usr/X11R6/lib/X11/app-defaults/Faces @ 1.5 log @More changes for Solaris - make this compile on Solaris systems where the BSD make program is called "bmake". @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 1999/10/01 07:49:19 simonb Exp $ d3 2 a4 2 --- /dev/null Wed May 24 10:07:55 2000 +++ Makefile Wed May 24 10:11:02 2000 d31 1 a31 1 +PREFIX ?=/usr/local d41 1 a41 1 +AUDIO_CMD = -DAUDIO_CMD=\"/usr/local/bin/rplay\" d49 1 a49 1 +#BACKNAME = /usr/local/sample-background d83 1 a83 1 +# By default, faces looks for the face images in /usr/local/faces. If d88 1 a88 1 +FACEDIR = /usr/local/share/faces @ 1.4 log @Oops, forgot them RCS ids... @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 4 diff -ur ../faces-DIST/Makefile ./Makefile --- ../faces-DIST/Makefile Fri Oct 1 14:36:38 1999 +++ ./Makefile Fri Oct 1 14:32:03 1999 @@@@ -0,0 +1,478 @@@@ d31 1 a31 1 +PREFIX ?=@@localbase@@ d41 1 a41 1 +AUDIO_CMD = -DAUDIO_CMD=\"@@localbase@@/bin/rplay\" d49 1 a49 1 +#BACKNAME = @@localbase@@/sample-background d83 1 a83 1 +# By default, faces looks for the face images in @@localbase@@/faces. If d88 1 a88 1 +FACEDIR = @@localbase@@/share/faces a322 3 +CC = cc +MAKE = make + d373 4 a376 4 + @@echo " make sunview - to make the SunView version." + @@echo " make news - to make the NeWS version." + @@echo " make x11 - to make the X11 version." + @@echo " make xview - to make the XView version." d380 2 a381 2 + @@echo " make install" + @@echo " make clean" d420 1 a420 1 + make tables @ 1.3 log @Spilt patches into one-file-per-patch-file, and make this work on the pmax (and other mips ports) - all the world is not IRIX... @ text @d1 2 @ 1.2 log @Add NetBSD RCS Ids. @ text @d1 482 a482 324 $NetBSD$ *** compface/Makefile.orig Thu Oct 24 11:28:06 1991 --- compface/Makefile Sat May 17 23:23:52 1997 *************** *** 19,80 **** # #SYSV = -DSYSV32 #-------------------------------------------------------------------------- ! # BINDIR, LIBDIR, and MANDIR are expected to be overridden by the # calling Makefile BINDIR = /usr/local/bin LIBDIR = /usr/local/lib ! MANDIR = /usr/manl NAME = compface UNNAME = uncompface EXECUTABLE = $(BINDIR)/$(NAME) UNEXECUTABLE = $(BINDIR)/$(UNNAME) LIBNAME = lib$(NAME).a ! LIBRARY = $(LIBDIR)/$(LIBNAME) MAN1DIR = $(MANDIR)/man1 MAN3DIR = $(MANDIR)/man3 OBJECTS = arith.o file.o compress.o gen.o uncompface.o SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \ cmain.c uncmain.c HDRS = compface.h data.h OTHERS = README $(NAME).1 $(NAME).3 Makefile CC = cc CDEFS = $(SYSV) ! CCOMP = -g CFLAGS = $(CDEFS) $(CCOMP) ! all: $(NAME) $(UNNAME) ! $(NAME) : cmain.o compface.o $(LIBNAME) ! $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o $(LIBNAME) $(UNNAME) : uncmain.o $(LIBNAME) ! $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o $(LIBNAME) ! ! $(LIBNAME) : $(OBJECTS) ! ar rc $(LIBNAME) $(OBJECTS) ! -ranlib $(LIBNAME) lint : lint -abchx $(SOURCES) clean : ! rm -f *.o *.a *.sh core a.out $(NAME) $(UNNAME) install : $(NAME) $(UNNAME) $(LIBNAME) ! -cp $(NAME) $(EXECUTABLE) ! strip $(EXECUTABLE) ! -cp $(UNNAME) $(UNEXECUTABLE) ! strip $(UNEXECUTABLE) ! -cp $(NAME).1 $(MAN1DIR) ! rm -f $(MAN1DIR)/$(UNNAME).1 ! -ln $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1 ! -cp $(LIBNAME) $(LIBRARY) ! -cp $(NAME).3 $(MAN3DIR) ! rm -f $(MAN3DIR)/$(UNNAME).3 ! -ln $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3 shar : shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh --- 19,82 ---- # #SYSV = -DSYSV32 #-------------------------------------------------------------------------- ! # BINDIR, LIBDIR, INCDIR and MANDIR are expected to be overridden by the # calling Makefile BINDIR = /usr/local/bin LIBDIR = /usr/local/lib ! INCDIR = /usr/local/include ! MANDIR = /usr/local/man NAME = compface UNNAME = uncompface EXECUTABLE = $(BINDIR)/$(NAME) UNEXECUTABLE = $(BINDIR)/$(UNNAME) LIBNAME = lib$(NAME).a ! SHLIB_MAJOR = 1 ! SHLIB_MINOR = 0 ! LIB = $(NAME) ! NOPROFILE = '' ! LIBRARY = $(LIBDIR) MAN1DIR = $(MANDIR)/man1 MAN3DIR = $(MANDIR)/man3 OBJECTS = arith.o file.o compress.o gen.o uncompface.o SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \ cmain.c uncmain.c + SRCS = arith.c file.c compress.c gen.c uncompface.c HDRS = compface.h data.h OTHERS = README $(NAME).1 $(NAME).3 Makefile CC = cc CDEFS = $(SYSV) ! CCOMP = -pipe -O2 CFLAGS = $(CDEFS) $(CCOMP) ! all: lib$(NAME).a lib$(NAME).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) $(NAME) $(UNNAME) ! $(NAME) : cmain.o compface.o ! $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o -L./ -lcompface $(UNNAME) : uncmain.o $(LIBNAME) ! $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o -L./ -lcompface lint : lint -abchx $(SOURCES) clean : ! rm -f *.o *po *so *.a *.so.* *.sh core a.out $(NAME) $(UNNAME) install : $(NAME) $(UNNAME) $(LIBNAME) ! install -c -s -o bin -m 755 $(NAME) $(EXECUTABLE) ! install -c -s -o bin -m 755 $(UNNAME) $(UNEXECUTABLE) ! install -c -g bin -o bin -m 444 $(NAME).1 $(MAN1DIR) ! -rm -f $(MAN1DIR)/$(UNNAME).1* ! ln -fs $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1 ! install -c -o bin -m 444 $(LIBNAME) $(LIBRARY) ! install -c -o bin -m 444 lib$(NAME).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) $(LIBRARY) ! install -c -g bin -o bin -m 444 $(NAME).3 $(MAN3DIR) ! rm -f $(MAN3DIR)/$(UNNAME).3* ! ln -fs $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3 ! install -m 444 -o bin -g bin -c compface.h $(INCDIR) shar : shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh *************** *** 88,90 **** --- 90,94 ---- gen.o: gen.c compface.h data.h uncmain.o: uncmain.c compface.h data.h uncompface.o: uncompface.c compface.h data.h + + .include diff -c -N ../faces/compface/compface.1 ./compface/compface.1 *** ../faces/compface/compface.1 Fri Mar 15 06:10:29 1991 --- ./compface/compface.1 Tue Dec 10 17:28:10 1996 *************** *** 12,17 **** --- 12,19 ---- .LP .B uncompface [ + .B \-X + ] [ .I infile [ .I outfile *************** *** 25,31 **** face image files. .I uncompface is an inverse filter which performs an inverse transformation with no ! loss of data. The algorithm used is highly tuned for its purpose and achieves better than a five to one compression ratio on average. Arguments operate identically for both programmes. --- 27,33 ---- face image files. .I uncompface is an inverse filter which performs an inverse transformation with no ! loss of data. The algorithm used is highly tuned for its purpose and achieves better than a five to one compression ratio on average. Arguments operate identically for both programmes. *************** *** 56,61 **** --- 58,69 ---- .I compface averages less than 200 characters. The average number of output lines is three. + .SH OPTIONS + .TP 12 + .B \-X + The same as + .I uncompface + | ikon2xbm. Usefull for exmh! .SH DIAGNOSTICS Exit status is normally 0. Possible errors include IO errors when opening, reading or writing diff -c -N ../faces/compface/file.c ./compface/file.c *** ../faces/compface/file.c Wed Jun 19 08:29:13 1991 --- ./compface/file.c Wed Dec 11 09:25:17 1996 *************** *** 15,20 **** --- 15,22 ---- #include "compface.h" + int xbitmap=0; + void BigRead(fbuf) register char *fbuf; *************** *** 127,136 **** --- 129,147 ---- { register char *s, *t; register int i, bits, digits, words; + extern int xbitmap; + int digsperword = DIGSPERWORD; + int wordsperline = WORDSPERLINE; s = F; t = fbuf; bits = digits = words = i = 0; + if (xbitmap) { + sprintf(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n "); + while (*t) t++; + digsperword = 2; + wordsperline = 15; + } while (s < F + PIXELS) { if ((bits == 0) && (digits == 0)) *************** *** 138,162 **** *(t++) = '0'; *(t++) = 'x'; } ! if (*(s++)) ! i = i * 2 + 1; ! else ! i *= 2; if (++bits == BITSPERDIG) { ! *(t++) = *(i + HexDigits); bits = i = 0; ! if (++digits == DIGSPERWORD) { *(t++) = ','; digits = 0; ! if (++words == WORDSPERLINE) { *(t++) = '\n'; words = 0; } } } } *(t++) = '\0'; } --- 149,191 ---- *(t++) = '0'; *(t++) = 'x'; } ! if (xbitmap) { ! if (*(s++)) ! i = (i >> 1) | 0x8; ! else ! i >>= 1; ! } ! else { ! if (*(s++)) ! i = i * 2 + 1; ! else ! i *= 2; ! } if (++bits == BITSPERDIG) { ! if (xbitmap) { ! t++; ! t[-(digits & 1) * 2] = *(i + HexDigits); ! } ! else *(t++) = *(i + HexDigits); bits = i = 0; ! if (++digits == digsperword) { + if (xbitmap && (s >= F + PIXELS)) break; *(t++) = ','; digits = 0; ! if (++words == wordsperline) { *(t++) = '\n'; + if (xbitmap) *(t++) = ' '; words = 0; } } } + } + if (xbitmap) { + sprintf(t, "}\n"); + while (*t) t++; } *(t++) = '\0'; } diff -c -N ../faces/compface/uncmain.c ./compface/uncmain.c *** ../faces/compface/uncmain.c Thu Oct 24 03:28:07 1991 --- ./compface/uncmain.c Wed Dec 11 09:27:47 1996 *************** *** 18,23 **** --- 18,25 ---- #include #include "compface.h" + extern int xbitmap; + /* the buffer is longer than needed to handle sparse input formats */ #define FACEBUFLEN 2048 char fbuf[FACEBUFLEN]; *************** *** 59,64 **** --- 61,73 ---- while (**argv) if (*((*argv)++) == '/') cmdname = *argv; /* find the command's basename */ + + if (argc > 1 && !strcmp(argv[1], "-X")) + { + xbitmap++; + argc--; + argv++; + } if (argc > 3) { @ 1.1 log @Initial revision @ text @d1 2 @ 1.1.1.1 log @Initial import of faces-1.6.1, utilities for manipulating face bitmaps and icons, into the NetBSD packages collection, from the FreeBSD port. @ text @@