aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2006-08-12 21:09:23 +0800
committererwin <erwin@FreeBSD.org>2006-08-12 21:09:23 +0800
commit68cc3ba5804d5241a6050d56818ca92041d8da1c (patch)
tree500a8db4a40a31ca64a3ff8ebb11430cfccbda91 /archivers
parent1224ab3945addafcfa4e0935de8eefd94b865377 (diff)
downloadfreebsd-ports-gnome-68cc3ba5804d5241a6050d56818ca92041d8da1c.tar.gz
freebsd-ports-gnome-68cc3ba5804d5241a6050d56818ca92041d8da1c.tar.zst
freebsd-ports-gnome-68cc3ba5804d5241a6050d56818ca92041d8da1c.zip
- Respect DESTDIR
- Respect CC - Remove an unnecessary .if - Bump PORTREVISION PR: 101806 Submitted by: gabor
Diffstat (limited to 'archivers')
-rw-r--r--archivers/mtf/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/archivers/mtf/Makefile b/archivers/mtf/Makefile
index 0667492350e0..f3dc865762cc 100644
--- a/archivers/mtf/Makefile
+++ b/archivers/mtf/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mtf
PORTVERSION= 0.2.1
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/backup
@@ -16,16 +17,16 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A Unix reader for the Microsoft Tape Format used by NT Backup
ALL_TARGET= # empty
-MAKE_ARGS= CFLAGS="${CFLAGS}"
-
PLIST_FILES= bin/mtf
-
-.if !defined(NOPORTDOCS)
PORTDOCS= README
-.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|CC=|CC?=|" \
+ -e "s|CFLAGS=|CFLAGS?=|" \
+ ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mtf ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mtf ${TARGETDIR}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}