diff options
author | ak <ak@FreeBSD.org> | 2013-10-25 00:27:22 +0800 |
---|---|---|
committer | ak <ak@FreeBSD.org> | 2013-10-25 00:27:22 +0800 |
commit | 0172d78f4d26e49d826efcf8ed440437a684cf01 (patch) | |
tree | 8f465df559a4e185c9ec5ec5be96418dd7d3ac94 /sysutils/copytape | |
parent | 62fe600240a813e0937c1308a5a559da3d07e304 (diff) | |
download | freebsd-ports-gnome-0172d78f4d26e49d826efcf8ed440437a684cf01.tar.gz freebsd-ports-gnome-0172d78f4d26e49d826efcf8ed440437a684cf01.tar.zst freebsd-ports-gnome-0172d78f4d26e49d826efcf8ed440437a684cf01.zip |
- Fix build [1]
- Support STAGEDIR
PR: ports/183023 [1]
Submitted by: Stephen Roznowski <sjroz@verizon.net> (maintainer)
Diffstat (limited to 'sysutils/copytape')
-rw-r--r-- | sysutils/copytape/Makefile | 19 | ||||
-rw-r--r-- | sysutils/copytape/files/patch-ab | 11 |
2 files changed, 22 insertions, 8 deletions
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 <bsd.port.mk> 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 <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #include <sys/types.h> + #include <sys/ioctl.h> + #include <sys/mtio.h> |