openbsd-ports/misc/calentool/patches/patch-01
espie 18728429f7 Some patchy work-around since XView installs under /usr/X11R6 right now,
and we want all the calentool files under the same suffix.

Sane manpage install rules, decent PLIST...
and Fake, of course.
2000-04-03 00:03:08 +00:00

52 lines
1.7 KiB
Plaintext

--- Imakefile.orig Wed Sep 30 04:38:28 1998
+++ Imakefile Mon Apr 3 01:51:07 2000
@@ -115,10 +115,10 @@ NR_WEEKDAYS = 5
START_HOUR = 8
END_HOUR = 18
N_NOTESLOTS = 6
-START_YEAR = 90
+START_YEAR = 98
NR_YEARS = 5
UPDATE_RATE = minute
-MAILPROG = /usr/ucb/mail
+MAILPROG = /usr/bin/mail
HOUR_24 = 0
MON_FIRST = 0
APPT_CHECK_LIMIT = n_slots
@@ -130,10 +130,10 @@ APPT_CHECK_LIMIT = n_slots
#NO_HOLIDAYS = -DNO_HOLIDAYS
#NO_SUN_MOON = -DNO_SUN_MOON
#NEED_CUSERID = -DNEED_CUSERID
-#NEED_DYSIZE = -DNEED_DYSIZE
+NEED_DYSIZE = -DNEED_DYSIZE
#SVR4 = -DSVR4
-NEEDS_EXTRA_PROTOS = -DNEEDS_EXTRA_PROTOS
-NEEDS_GETTIMEOFDAY_PROTO = -DNEEDS_GETTIMEOFDAY_PROTO
+#NEEDS_EXTRA_PROTOS = -DNEEDS_EXTRA_PROTOS
+#NEEDS_GETTIMEOFDAY_PROTO = -DNEEDS_GETTIMEOFDAY_PROTO
#HAS_STRFTIME = -DHAS_STRFTIME
LOCATION= -DLONG_DEGREES=121. -DLONG_MINUTES=08. -DLONG_SECONDS=56. \
-DLAT_DEGREES=44. -DLAT_MINUTES=15. -DLAT_SECONDS=15.
@@ -255,17 +255,14 @@ InstallProgram(month2ct,$(BINDIR))
InstallProgram(cal2ct,$(BINDIR))
#
# special man page rules for duplicate man pages
-install.man::
- $(RM) $(MANDIR)/month2ct.$(MANSUFFIX)
- ln -s $(MANDIR)/mt2ct.$(MANSUFFIX) $(MANDIR)/month2ct.$(MANSUFFIX)
- $(RM) $(MANDIR)/cal2ct.$(MANSUFFIX)
- ln -s $(MANDIR)/mt2ct.$(MANSUFFIX) $(MANDIR)/cal2ct.$(MANSUFFIX)
+InstallManPageAliases(mt2ct,$(MANDIR),month2ct cal2ct)
+
#
# special rules for date file installation
install::
- $(MKDIRHIER) $(DATELIB_DIR)
+ $(MKDIRHIER) $(DESTDIR)$(DATELIB_DIR)
for i in $(DATEFILES); do \
- ($(INSTALL) -c $(INSTDATFLAGS) $$i $(DATELIB_DIR)); \
+ ($(INSTALL) -c $(INSTDATFLAGS) $$i $(DESTDIR)$(DATELIB_DIR)); \
done
#
# special rules for files that compile differently for different programs