1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

. Respect hier(7).

. Use a better ALL_TARGET.  Having check as part of it tried to install
  some files.  Use check-runs to achieve the desired testing without
  doing any installation.
. ${INSTALL_MAN} -> ${INSTALL_DATA} for doc installation (they aren't
  manual pages).
This commit is contained in:
Greg Lewis 2004-12-16 07:08:25 +00:00
parent 4debdfc471
commit 40d510ac4f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124185
3 changed files with 35 additions and 14 deletions

View File

@ -33,14 +33,18 @@ CONFIGURE_ARGS= --with-double
.endif
.endif
USE_REINPLACE= yes
GNU_CONFIGURE= yes
ALL_TARGET= all check
ALL_TARGET= all check-runs
MAN1= ndiff.1
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-patch:
@${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:g" ${WRKSRC}/Makefile.in
post-build:
@${ECHO_MSG} "If there were no errors in the above checks then type"
@${ECHO_MSG}
@ -51,9 +55,9 @@ post-build:
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.pdf ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.ps ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pdf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ps ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,6 +1,16 @@
--- Makefile.in.orig Wed Feb 18 14:17:22 2004
+++ Makefile.in Wed Feb 18 14:19:31 2004
@@ -191,9 +191,9 @@
--- Makefile.in.orig Tue Dec 12 11:11:11 2000
+++ Makefile.in Wed Dec 15 23:53:21 2004
@@ -64,8 +64,7 @@
catdir = $(prefix)/man/cat$(manext)
mandir = $(prefix)/man/man$(manext)
manext = 1
-shrlibdir = $(shrlibtop)/$(PROGNAME)-$(VERSION)
-shrlibtop = $(prefix)/share/lib/$(PROGNAME)
+shrlibdir = %%DATADIR%%
FTPDIR = /u/ftp/pub/misc
@@ -191,9 +190,9 @@
DEFINES = -DVERSION='"@VERSION@"' -DDATE='"@DATE@"' $(XDEFINES)
@ -12,7 +22,7 @@
LIBS = @LIBS@ $(XLIBS)
@@ -602,14 +602,12 @@
@@ -602,14 +601,12 @@
if test -f $(PROGNAME) ; \
then \
$(CP) $(PROGNAME) $(bindir)/$(PROGNAME) ; \
@ -28,7 +38,7 @@
done ; \
fi
@@ -635,7 +633,7 @@
@@ -635,15 +632,13 @@
install-show:
@echo ''
@echo Installed files...
@ -37,7 +47,16 @@
@$(LS) -l $(mandir)/$(PROGNAME).$(manext)
@if test -d $(shrlibdir) ; then $(LS) -lR $(shrlibdir)/* ; fi
@echo ''
@@ -703,7 +701,7 @@
install-shrlib: uninstall-shrlib
- -$(MKDIR) $(shrlibtop)
- @if test -d $(shrlibtop) ; then true ; else echo Cannot create $(shrlibtop) ; exit 1 ; fi
- -$(MKDIR) $(shrlibdir)
+ -$(MKDIR) -p $(shrlibdir)
@if test -d $(shrlibdir) ; then true ; else echo Cannot create $(shrlibdir) ; exit 1 ; fi
for f in $(SHRLIBFILES) ; \
do \
@@ -703,7 +698,7 @@
uninstall-exe:
-for f in $(PROGRAMS) ; \
do \

View File

@ -1,5 +1,3 @@
bin/ndiff
share/lib/ndiff/ndiff-2.00/ndiff.awk
@dirrm share/lib/ndiff/ndiff-2.00
@dirrm share/lib/ndiff
@dirrm share/lib
%%DATADIR%%/ndiff.awk
@dirrm %%DATADIR%%