openbsd-ports/chinese/cless/patches/patch-aa
2001-06-12 07:24:15 +00:00

48 lines
1.9 KiB
Plaintext

--- Makefile.in.orig Tue Apr 25 02:41:39 1995
+++ Makefile.in Tue Jun 12 09:01:41 2001
@@ -25,7 +25,7 @@
binprefix =
# Where the help file goes.
-datadir = ${prefix}/share
+datadir = ${prefix}/share/doc/cless
mandir = ${prefix}/man/man${manext}
manext = 1
@@ -73,24 +73,24 @@
${OBJ}: less.h defines.h funcs.h
filename.${O}: filename.c
- ${CC} -c -DHELPFILE=\"${datadir}/less.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
+ ${CC} -c -DHELPFILE=\"${datadir}/cless.gb\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
install: all less.hlp less.bg5 less.gb less.nro installdirs
- ${INSTALL_PROGRAM} less ${bindir}/${binprefix}less
- ${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}lesskey
- ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp
- ${INSTALL_DATA} ${srcdir}/less.bg5 ${datadir}/less.bg5
- ${INSTALL_DATA} ${srcdir}/less.gb ${datadir}/less.gb
- ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext}
- ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext}
+ ${INSTALL_PROGRAM} less ${bindir}/${binprefix}cless
+ ${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}clesskey
+ ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/cless.hlp
+ ${INSTALL_DATA} ${srcdir}/less.bg5 ${datadir}/cless.bg5
+ ${INSTALL_DATA} ${srcdir}/less.gb ${datadir}/cless.gb
+ ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}cless.${manext}
+ ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}clesskey.${manext}
installdirs: mkinstalldirs
${srcdir}/mkinstalldirs ${bindir} ${datadir} ${mandir}
uninstall:
- rm -f ${bindir}/${binprefix}less ${bindir}/${binprefix}lesskey
- rm -f ${datadir}/less.hlp ${datadir}/less.bg5 ${datadir}/less.gb
- rm -f ${mandir}/less.${manext} ${mandir}/lesskey.${manext}
+ rm -f ${bindir}/${binprefix}cless ${bindir}/${binprefix}clesskey
+ rm -f ${datadir}/cless.hlp ${datadir}/cless.bg5 ${datadir}/cless.gb
+ rm -f ${mandir}/cless.${manext} ${mandir}/clesskey.${manext}
info:
install-info: