blob: 2926889a1a69c62d7637a125351451382ebca141 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $NetBSD: Makefile,v 1.15 2012/05/29 22:58:52 cheusov Exp $
#
DISTNAME= 9base-6
PKGREVISION= 1
PKGNAME= 9base-20100604
CATEGORIES= sysutils shells
MASTER_SITES= http://dl.suckless.org/tools/
MAINTAINER= pkgsrc-users@NetBSD.org
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
MAKE_JOBS_SAFE= no
CONFLICTS= rc-[0-9]*
PKG_SHELL= bin/rc
.include "../../mk/bsd.prefs.mk"
# Darwin doesn't support static link.
# 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.[0-8]*)
BUILDLINK_TRANSFORM+= rm:-static
.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
.include "../../mk/bsd.pkg.mk"
|