Make hmmer honor $MKDIR for cross-platform install.

Addresses pr#26650 from Georg Schwarz.
This commit is contained in:
ben 2004-08-16 02:47:49 +00:00
parent 9482f7b935
commit 3a9380afa6
3 changed files with 44 additions and 10 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2004/04/11 04:06:09 snj Exp $
# $NetBSD: Makefile,v 1.5 2004/08/16 02:47:49 ben Exp $
#
DISTNAME= hmmer-2.3.1
@ -13,4 +13,6 @@ WRKSRC= ${WRKDIR}/hmmer-2.3.1
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
MAKE_FLAGS+= MKDIR="${MKDIR}"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2003/09/26 03:52:47 jschauma Exp $
$NetBSD: distinfo,v 1.2 2004/08/16 02:47:49 ben Exp $
SHA1 (hmmer-2.3.1.tar.gz) = bf6a3ec56c24332d7e66d6ce8865de1d72dce01f
Size (hmmer-2.3.1.tar.gz) = 1023122 bytes
SHA1 (patch-aa) = c5aa41137bb339a584948b6dc88317c98b4ff6fd
SHA1 (patch-aa) = b9b340a6ad48017100196ed78c7deb7374e39ea5

View file

@ -1,8 +1,8 @@
$NetBSD: patch-aa,v 1.1.1.1 2003/09/26 03:52:47 jschauma Exp $
$NetBSD: patch-aa,v 1.2 2004/08/16 02:47:49 ben Exp $
--- Makefile.in.orig 2003-06-13 17:05:13.000000000 -0400
+++ Makefile.in 2003-09-25 23:47:27.000000000 -0400
@@ -30,11 +30,12 @@
--- Makefile.in.orig Fri Jun 13 14:05:13 2003
+++ Makefile.in
@@ -30,11 +30,12 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
BINDIR = @bindir@
MANDIR = @mandir@
@ -16,12 +16,44 @@ $NetBSD: patch-aa,v 1.1.1.1 2003/09/26 03:52:47 jschauma Exp $
MANSUFFIX = 1
# your compiler and compiler flags
@@ -112,7 +113,7 @@
mkdir -p ${BINDIR}
-mkdir -p ${MANDIR}/man${MANSUFFIX}
@@ -109,10 +110,10 @@ src/libhmmer.a:
# installs man pages in MANDIR/man1/ (e.g. if MANSUFFIX is 1)
# Creates these directories if they don't exist.
install:
- mkdir -p ${BINDIR}
- -mkdir -p ${MANDIR}/man${MANSUFFIX}
+ ${MKDIR} -p ${BINDIR}
+ -${MKDIR} -p ${MANDIR}/man${MANSUFFIX}
for file in $(PROGS) $(PVMPROGS); do\
- cp src/$$file $(BINDIR)/;\
+ $(INSTBIN) src/$$file $(BINDIR)/;\
done
-for file in hmmer $(PROGS); do\
$(INSTMAN) documentation/man/$$file.man $(MANDIR)/man$(MANSUFFIX)/$$file.$(MANSUFFIX);\
@@ -133,7 +134,7 @@ uninstall:
# subdir, remove everything but binaries and Makefiles.
#
bindist:
- mkdir binaries
+ ${MKDIR} binaries
for prog in $(PROGS); do\
(cd binaries; ln -s ../src/$$prog .);\
done
@@ -205,7 +206,7 @@ dist:
# in testsuite.
#
cp ssdk/sqc ${BASENAME}-${RELEASE}/testsuite/
- mkdir ${BASENAME}-${RELEASE}/ssdk
+ ${MKDIR} ${BASENAME}-${RELEASE}/ssdk
cp ssdk/rmanprocess.pl ${BASENAME}-${RELEASE}/ssdk/
#
# Make the configure scripts from configure.ac
@@ -293,7 +294,7 @@ dist:
# directory.
#
ftpdist:
- mkdir -p ${FTPDIR}
+ ${MKDIR} -p ${FTPDIR}
cp -f hmmer-$(RELEASE)/00README ${FTPDIR}
cp -f hmmer-$(RELEASE)/COPYRIGHT ${FTPDIR}
cp -f hmmer-$(RELEASE)/INSTALL ${FTPDIR}