pkgsrc/x11/wmweather/patches/patch-aa
dholland cfc35bf0a1 Use BSD_INSTALL_* as suggested by cube to work around install problems on
old Solaris. Fixes PR 32296 Jake Kupersmith.

While here, add patch comment and use <ctype.h> correctly.
2016-06-23 18:24:07 +00:00

33 lines
1.4 KiB
Text

$NetBSD: patch-aa,v 1.7 2016/06/23 18:24:07 dholland Exp $
- Configure for pkgsrc
- Use BSD_INSTALL_* to avoid problems on old Solaris (PR 32296)
- Handle config file the pkgsrc way
--- Makefile.in.orig 2007-05-13 17:27:21.000000000 +0000
+++ Makefile.in
@@ -2,5 +2,4 @@
# @configure_input@
-DESTDIR =
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -28,10 +27,12 @@ wmgeneral.o: wmgeneral.c wmgeneral.h
install: wmweather wmweather.1
- ${INSTALL} -d ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1 ${DESTDIR}${sysconfdir}
- ${INSTALL_PROGRAM} wmweather ${DESTDIR}${bindir}
- ${INSTALL_DATA} wmweather.1 ${DESTDIR}${mandir}/man1
- ${LN_S} wmweather ${DESTDIR}${bindir}/wmWeather
- ${LN_S} wmweather.1 ${DESTDIR}${mandir}/man1/wmWeather.1
- test -e ${DESTDIR}${sysconfdir}/${sysconffile} || ${INSTALL_DATA} wmweather.conf ${DESTDIR}${sysconfdir}/${sysconffile}
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${bindir}
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${mandir}/man1 ${DESTDIR}${sysconfdir}
+ ${BSD_INSTALL_PROGRAM} wmweather ${DESTDIR}${bindir}
+ ${BSD_INSTALL_DATA} wmweather.1 ${DESTDIR}${mandir}/man1
+ ${LN_S} -f wmweather ${DESTDIR}${bindir}/wmWeather
+ ${LN_S} -f wmweather.1 ${DESTDIR}${mandir}/man1/wmWeather.1
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${prefix}/share/examples/wmweather
+ ${BSD_INSTALL_DATA} wmweather.conf ${DESTDIR}${prefix}/share/examples/wmweather/
uninstall: