aboutsummaryrefslogtreecommitdiff
path: root/devel/ftnchek
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-06-14 14:15:58 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-06-14 14:15:58 +0000
commitbc99d4c0e32d1d831360238621bb72718cad9188 (patch)
tree65bd3d961e64162d17f2f62abb5a998c56763f7d /devel/ftnchek
parentb21d503d6a84f22ed11c82733ffbf9e6d64aa76a (diff)
downloadports-bc99d4c0e32d1d831360238621bb72718cad9188.tar.gz
ports-bc99d4c0e32d1d831360238621bb72718cad9188.zip
Notes
Diffstat (limited to 'devel/ftnchek')
-rw-r--r--devel/ftnchek/Makefile3
-rw-r--r--devel/ftnchek/files/patch-Makefile.in76
-rw-r--r--devel/ftnchek/pkg-plist2
3 files changed, 78 insertions, 3 deletions
diff --git a/devel/ftnchek/Makefile b/devel/ftnchek/Makefile
index e7e549a10afe..857939c4465e 100644
--- a/devel/ftnchek/Makefile
+++ b/devel/ftnchek/Makefile
@@ -15,12 +15,9 @@ LICENSE= MIT
PORTSCOUT= skipv:3.3.a,3.3.b,3.3.c
-MAN1= dcl2inc.1 ftnchek.1
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CONFIGURE_ENV= ac_cv_path_CC="${CC}" ac_cv_path_EMACS="${TRUE}"
MAKE_ARGS= OPT="${CFLAGS}"
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/devel/ftnchek/files/patch-Makefile.in b/devel/ftnchek/files/patch-Makefile.in
new file mode 100644
index 000000000000..d3f8dec1e39f
--- /dev/null
+++ b/devel/ftnchek/files/patch-Makefile.in
@@ -0,0 +1,76 @@
+--- Makefile.in.orig 2014-06-14 22:09:43.102302676 +0800
++++ Makefile.in 2014-06-14 22:11:35.750296619 +0800
+@@ -491,31 +491,31 @@ average.out: ftnchek.h
+ install: install-exe @INSTALL_MAN@ install-lisp
+
+ install-exe: ftnchek$(EXE) dcl2inc$(CMD)
+- -$(RM) $(bindir)/ftnchek$(EXE)
+- -$(MKDIR) -p $(bindir)
+- $(CP) ftnchek$(EXE) $(bindir)
+- -$(STRIP) $(bindir)/ftnchek$(EXE)
+- $(CHMOD) 755 $(bindir)/ftnchek$(EXE)
+- -$(MKDIR) -p $(libdir)
+- $(CP) dcl2inc.awk $(libdir)/dcl2inc.awk
+- $(CHMOD) 644 $(libdir)/dcl2inc.awk
+- $(CP) dcl2inc$(CMD) $(bindir)/dcl2inc$(CMD)
+- $(CHMOD) 755 $(bindir)/dcl2inc$(CMD)
+- -$(RM) $(bindir)/fcl2vcg
++ -$(RM) $(DESTDIR)$(bindir)/ftnchek$(EXE)
++ -$(MKDIR) -p $(DESTDIR)$(bindir)
++ $(CP) ftnchek$(EXE) $(DESTDIR)$(bindir)
++ -$(STRIP) $(DESTDIR)$(bindir)/ftnchek$(EXE)
++ $(CHMOD) 755 $(DESTDIR)$(bindir)/ftnchek$(EXE)
++ -$(MKDIR) -p $(DESTDIR)$(libdir)
++ $(CP) dcl2inc.awk $(DESTDIR)$(libdir)/dcl2inc.awk
++ $(CHMOD) 644 $(DESTDIR)$(libdir)/dcl2inc.awk
++ $(CP) dcl2inc$(CMD) $(DESTDIR)$(bindir)/dcl2inc$(CMD)
++ $(CHMOD) 755 $(DESTDIR)$(bindir)/dcl2inc$(CMD)
++ -$(RM) $(DESTDIR)$(bindir)/fcl2vcg
+
+ # Install man pages, taking care to remove old formatted ones, because
+ # many man implentations fail to compare time stamps of raw and
+ # formatted files, and will show out-of-date formatted files.
+ install-man: ftnchek$(manext)
+- -$(MKDIR) -p $(mandir)/man1
+- $(CP) dcl2inc.man $(mandir)/man1/dcl2inc$(manext)
+- -$(RM) $(mandir)/cat1/dcl2inc$(manext)
+- $(CHMOD) 644 $(mandir)/man1/dcl2inc$(manext)
+- $(CP) ftnchek$(manext) $(mandir)/man1/ftnchek$(manext)
+- -$(RM) $(mandir)/cat1/ftnchek$(manext)
+- $(CHMOD) 644 $(mandir)/man1/ftnchek$(manext)
+- -$(RM) $(mandir)/man1/fcl2vcg$(manext)
+- -$(RM) $(mandir)/cat1/fcl2vcg$(manext)
++ -$(MKDIR) -p $(DESTDIR)$(mandir)/man1
++ $(CP) dcl2inc.man $(DESTDIR)$(mandir)/man1/dcl2inc$(manext)
++ -$(RM) $(DESTDIR)$(mandir)/cat1/dcl2inc$(manext)
++ $(CHMOD) 644 $(DESTDIR)$(mandir)/man1/dcl2inc$(manext)
++ $(CP) ftnchek$(manext) $(DESTDIR)$(mandir)/man1/ftnchek$(manext)
++ -$(RM) $(DESTDIR)$(mandir)/cat1/ftnchek$(manext)
++ $(CHMOD) 644 $(DESTDIR)$(mandir)/man1/ftnchek$(manext)
++ -$(RM) $(DESTDIR)$(mandir)/man1/fcl2vcg$(manext)
++ -$(RM) $(DESTDIR)$(mandir)/cat1/fcl2vcg$(manext)
+
+ # IRIX uses pre-formatted, packed man pages and nroff is not bundled with it.
+ install-man-sgi: catman
+@@ -558,16 +558,16 @@ catman: dcl2inc.cat ftnchek.cat
+ # The emacs lisp file will be installed only if lispdir exists. It will
+ # be byte-compiled if emacs is present.
+ install-lisp:
+- @if test -d "$(lispdir)" ; \
++ @if test -d "$(DESTDIR)$(lispdir)" ; \
+ then \
+- echo $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \
+- if $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \
++ echo $(CP) ftnchek.el $(DESTDIR)$(lispdir)/ftnchek.el ; \
++ if $(CP) ftnchek.el $(DESTDIR)$(lispdir)/ftnchek.el ; \
+ then \
+ if test -x "$(EMACS)" ; \
+ then \
+- $(EMACS) -batch -f batch-byte-compile $(lispdir)/ftnchek.el ; \
++ $(EMACS) -batch -f batch-byte-compile $(DESTDIR)$(lispdir)/ftnchek.el ; \
+ else \
+- echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"; \
++ echo "If desired, use emacs to byte-compile $(DESTDIR)$(lispdir)/ftnchek.el"; \
+ fi \
+ fi \
+ else \
diff --git a/devel/ftnchek/pkg-plist b/devel/ftnchek/pkg-plist
index 1719f931f293..e7aeb7ef0a80 100644
--- a/devel/ftnchek/pkg-plist
+++ b/devel/ftnchek/pkg-plist
@@ -1,5 +1,7 @@
bin/dcl2inc
bin/ftnchek
+man/man1/dcl2inc.1.gz
+man/man1/ftnchek.1.gz
share/emacs/site-lisp/ftnchek.el
%%DATADIR%%/dcl2inc.awk
@dirrm %%DATADIR%%