1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Remove `files/patch-Makefile.in' as it is being unused since there is

pre-generated Makefile already provided
- Unbreak the build on PowerPC by not treating it differently from other
  FreeBSD systems
- Respect CFLAGS in a more sane way than patching ${WRKSRC}/machine.h in
  `_post-configure' target with some cryptic sed(1) regexp
- Factor out docfiles installation into `post-install-DOCS-on' target,
  sanitize it a bit, unmute installation commands, move OPTIONS_DEFINE
  knob lower while I am here
- Avoid use of contraction in the port description text
This commit is contained in:
Alexey Dokuchaev 2015-09-08 17:53:40 +00:00
parent bd53d3e596
commit fb09053ffd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396419
4 changed files with 50 additions and 29 deletions

View File

@ -11,10 +11,10 @@ DISTNAME= FD-${PORTVERSION}
MAINTAINER= knu@FreeBSD.org
COMMENT= CUI-based file and directory management tool
OPTIONS_DEFINE= DOCS
MAKE_ENV= LANG=ja
MAKE_ARGS= CC="${CC}" PREFIX="\$$(DESTDIR)${PREFIX}" CONFDIR="\$$(DESTDIR)${PREFIX}/etc"
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
PREFIX="\$$(DESTDIR)${PREFIX}" \
CONFDIR="\$$(DESTDIR)${PREFIX}/etc" \
DOCS_EN= FAQ.eng \
LICENSES.eng \
@ -28,21 +28,18 @@ DOCS_JA= FAQ \
TECHKNOW \
ToAdmin
BROKEN_powerpc= Does not compile on powerpc: tzfile.h: No such file or directory
post-configure:
${REINPLACE_CMD} -E -e 's|^(#[[:space:]]*define[[:space:]]+EXTENDCCOPT[[:space:]]+"([^"]+ )?)-O(["[:space:]])|\1${CFLAGS}\3|' ${WRKSRC}/machine.h
OPTIONS_DEFINE= DOCS
post-install:
@${INSTALL_DATA} ${WRKSRC}/_fdrc.orig ${STAGEDIR}${PREFIX}/etc/fd2rc.dist
@${INSTALL_DATA} ${WRKSRC}/_fdrc ${STAGEDIR}${PREFIX}/etc/fd2rc.sample
${INSTALL_DATA} ${WRKSRC}/_fdrc.orig \
${STAGEDIR}${PREFIX}/etc/fd2rc.dist
${INSTALL_DATA} ${WRKSRC}/_fdrc ${STAGEDIR}${PREFIX}/etc/fd2rc.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
@for i in ${DOCS_EN}; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${DOCSDIR}; \
done
@for i in ${DOCS_JA}; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}; \
done
${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS_JA:S,^,${WRKSRC}/,} \
${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
.include <bsd.port.mk>

View File

@ -1,13 +0,0 @@
--- Makefile.in.orig Wed Sep 14 00:00:00 2005
+++ Makefile.in Tue Nov 8 11:27:52 2005
@@ -5,8 +5,8 @@
TITLE = FD-
VERMAJ = __VERMAJ__
VERSION = __VERSION__
-PREFIX = __PREFIX__
-CONFDIR = __CONFDIR__
+PREFIX ?= __PREFIX__
+CONFDIR ?= __CONFDIR__
BUILD =
MANSEC = 1
TOPDIR = $(BUILD)$(PREFIX)

View File

@ -0,0 +1,37 @@
--- machine.h.orig 2014-05-05 15:00:00 UTC
+++ machine.h
@@ -584,25 +584,6 @@ typedef long off_t;
#define USEINETATON
#endif
-#if defined (__FreeBSD__) && defined (__powerpc__)
-#define BSD44
-#define OSTYPE "JCCBSD"
-#define CODEEUC
-#define TARUSESPACE
-#define REGEXPLIB "-lcompat"
-#define DECLSIGLIST
-#define DECLERRLIST
-#define USELEAPCNT
-#define USEMOUNTH
-#define USEMNTINFO
-#define USERE_COMP
-#define USESETENV
-#define ULONGIOCTL
-#define USEMKTIME
-#define SIGFNCINT
-#define USEINETATON
-#endif
-
#if defined (__FreeBSD__) && !defined (OSTYPE) && !defined (__BOW__)
#define BSD44
#define OSTYPE "FREEBSD"
@@ -1315,7 +1296,7 @@ typedef unsigned long u_long;
#define CCCOMMAND "cc"
#endif
#ifndef EXTENDCCOPT
-#define EXTENDCCOPT "-O"
+#define EXTENDCCOPT ""
#endif
#ifndef TERMCAPLIB
# ifdef USETERMINFO

View File

@ -3,5 +3,5 @@ allows you to browse and manipulate directories and files with an easy
and intuitive user interface. It also has a built-in Bourne-shell
compatible shell which can be run stand-alone by the name of `fdsh'.
This version is a clone of FD for DOS (AT and PC9801) designed &
This version is a clone of FD for DOS (AT and PC9801) designed and
written by A. Idei (SDI00544@niftyserve.or.jp).