summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjs <bjs>2008-09-06 22:44:18 +0000
committerbjs <bjs>2008-09-06 22:44:18 +0000
commite2b62b114c59e5f9b64be0dec3a034532873565c (patch)
treeb590743cdce0c468447bef6ded8fa993920f2e24
parent35fdcea09e13f372456e8cf248496e97631f83c9 (diff)
downloadpkgsrc-e2b62b114c59e5f9b64be0dec3a034532873565c.tar.gz
Add DESTDIR support and BUILDLINK_TRANSFORM+= opt:-O3:${CFLAGS}.
Do installation in pkgsrc Makefile. Bump pkgrevision (due to change to sane optimization).
-rw-r--r--sysutils/rename/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/sysutils/rename/Makefile b/sysutils/rename/Makefile
index 1414cd05221..b86e5544786 100644
--- a/sysutils/rename/Makefile
+++ b/sysutils/rename/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/11/05 15:56:34 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2008/09/06 22:44:18 bjs Exp $
DISTNAME= rename-1.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rename/}
@@ -9,7 +9,17 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://rename.sourceforge.net/
COMMENT= Rename recursively with regex patterns
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
+BUILDLINK_TRANSFORM+= opt:-O3:${CFLAGS}
+
+do-install:
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin && \
+ ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \
+ ${INSTALL_PROGRAM} ${WRKSRC}/rename ${DESTDIR}${PREFIX}/bin && \
+ ${INSTALL_MAN} ${WRKSRC}/rename.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
.include "../../mk/bsd.pkg.mk"