From 0172d78f4d26e49d826efcf8ed440437a684cf01 Mon Sep 17 00:00:00 2001 From: ak Date: Thu, 24 Oct 2013 16:27:22 +0000 Subject: - Fix build [1] - Support STAGEDIR PR: ports/183023 [1] Submitted by: Stephen Roznowski (maintainer) --- sysutils/copytape/Makefile | 19 +++++++++++-------- sysutils/copytape/files/patch-ab | 11 +++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 sysutils/copytape/files/patch-ab (limited to 'sysutils') diff --git a/sysutils/copytape/Makefile b/sysutils/copytape/Makefile index 69885f59513f..0fdf7758772d 100644 --- a/sysutils/copytape/Makefile +++ b/sysutils/copytape/Makefile @@ -10,7 +10,7 @@ DISTNAME= copytape EXTRACT_SUFX= .Z MAINTAINER= sjroz@verizon.net -COMMENT= A program that is used to duplicate magtapes +COMMENT= Program that is used to duplicate magtapes EXTRACT_DEPENDS= gunshar:${PORTSDIR}/archivers/sharutils @@ -19,16 +19,19 @@ NO_WRKSUBDIR= yes EXTRACT_CMD= zcat EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= | gunshar -d ${WRKDIR} + +CFLAGS+= -Wno-return-type +# XXX upstream puts CFLAGS in CC +MAKE_ARGS+= CC="${CC} ${CFLAGS}" ALL_TARGET= copytape -MAN1= copytape.1 -MAN5= copytape.5 -PLIST_FILES= bin/copytape +PLIST_FILES= bin/copytape \ + man/man1/copytape.1.gz \ + man/man5/copytape.5.gz -NO_STAGE= yes do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/copytape ${PREFIX}/bin/copytape - @${INSTALL_MAN} ${WRKSRC}/copytape.1 ${PREFIX}/man/man1/copytape.1 - @${INSTALL_MAN} ${WRKSRC}/copytape.5 ${PREFIX}/man/man5/copytape.5 + @${INSTALL_PROGRAM} ${WRKSRC}/copytape ${STAGEDIR}${PREFIX}/bin/copytape + @${INSTALL_MAN} ${WRKSRC}/copytape.1 ${STAGEDIR}${PREFIX}/man/man1/copytape.1 + @${INSTALL_MAN} ${WRKSRC}/copytape.5 ${STAGEDIR}${PREFIX}/man/man5/copytape.5 .include diff --git a/sysutils/copytape/files/patch-ab b/sysutils/copytape/files/patch-ab new file mode 100644 index 000000000000..8838843a4939 --- /dev/null +++ b/sysutils/copytape/files/patch-ab @@ -0,0 +1,11 @@ +--- copytape.c.orig 2013-10-16 06:54:00.000000000 -0400 ++++ copytape.c 2013-10-16 06:54:13.000000000 -0400 +@@ -29,6 +29,8 @@ + + + #include ++#include ++#include + #include + #include + #include -- cgit