summaryrefslogtreecommitdiff
path: root/sysutils/9base/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/9base/Makefile')
-rw-r--r--sysutils/9base/Makefile37
1 files changed, 30 insertions, 7 deletions
diff --git a/sysutils/9base/Makefile b/sysutils/9base/Makefile
index 8ea1d2d2472..2c81d083ade 100644
--- a/sysutils/9base/Makefile
+++ b/sysutils/9base/Makefile
@@ -1,14 +1,15 @@
-# $NetBSD: Makefile,v 1.11 2010/05/07 12:02:45 jmmv Exp $
+# $NetBSD: Makefile,v 1.12 2011/10/25 16:28:17 ryoon Exp $
#
-DISTNAME= 9base-20051114
-PKGREVISION= 1
+DISTNAME= 9base-6
+PKGNAME= 9base-20100604
CATEGORIES= sysutils shells
-MASTER_SITES= http://www.suckless.org/download/
+MASTER_SITES= http://dl.suckless.org/tools/
MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.suckless.org/wiki/wmii/download
+HOMEPAGE= http://tools.suckless.org/9base
COMMENT= Port of various original plan9 tools
+#LICENSE= lucent-public-v1.02 AND mit
PKG_DESTDIR_SUPPORT= user-destdir
@@ -21,17 +22,39 @@ PKG_SHELL= bin/rc
.include "../../mk/bsd.prefs.mk"
# Darwin doesn't support static link.
-# See http://developer.apple.com/qa/qa2001/qa1118.html
-.if ${OPSYS} != "Darwin"
+# See http://developer.apple.com/library/mac/#qa/qa1118/_index.html
+.if ${OPSYS} == "Darwin"
+BUILDLINK_TRANSFORM+= rm:-static
+.else
LDFLAGS+= -static
.endif
+#XXX see http://gnats.netbsd.org/43228
+.if !empty(MACHINE_PLATFORM:MNetBSD-5.1*)
+BUILDLINK_TRANSFORM+= rm:-static
+.endif
+
.if ${GNU_PROGRAM_PREFIX} == ""
CONFLICTS+= coreutils-[0-9]*
CONFLICTS+= grep-[0-9]*
CONFLICTS+= gsed-[0-9]*
.endif
+MAKE_FLAGS+= PREFIX=${PREFIX} \
+ MANPREFIX=${PREFIX}/${PKGMANDIR}
+
+SUBST_CLASSES+= shebang
+SUBST_STAGE.shebang= pre-configure
+SUBST_MESSAGE.shebang= Fixing shebang
+SUBST_FILES.shebang= troff/tmac/sendcover
+SUBST_FILES.shebang+= troff/font/devutf/mkMAP
+SUBST_SED.shebang= -e 's,/bin/rc,${PREFIX}/bin/rc,'
+
+INSTALLATION_DIRS= ${PREFIX}/share/examples/9base
+
+EGDIR= ${PREFIX}/share/examples/9base
+CONF_FILES= ${EGDIR}/rcmain ${PKG_SYSCONFDIR}/rcmain
+
post-extract:
${LN} -s getcallerpc-x86_64.c ${WRKSRC}/lib9/getcallerpc-amd64.c