blob: 6f3a5467ea89293243deb3f6835090427eee3836 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.42 2007/12/09 19:09:48 wiz Exp $
DISTNAME= icon.v942src
PKGNAME= icon-9.4.2
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www.cs.arizona.edu/icon/ftp/packages/unix/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.arizona.edu/icon/index.htm
COMMENT= The Icon programming language
CONFIGURE_TARGET= X-Configure
BUILD_TARGET= All
TEST_TARGET= Test
MAKE_JOBS_SAFE= no
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if ${OPSYS} == "NetBSD"
NAME= netbsd
. if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "mipseb") || (${MACHINE_ARCH} == "mipsel") || \
(${MACHINE_ARCH} == "m68k") || (${MACHINE_ARCH} == "vax")
. else
PTHREAD_OPTS+= require native
. include "../../mk/pthread.buildlink3.mk"
. endif
.elif ${OPSYS} == "DragonFly"
NAME= freebsd
.elif ${OPSYS} == "SunOS"
. if !empty(CC_VERSION:M*gcc*)
NAME= sun_gcc
. elif !empty(CC_VERSION:MSun)
NAME= sun_sunc
. else
PKG_FAIL_REASON+= "${PKGNAME} does not know about "${CC_VERSION:Q}
. endif
. if ${MACHINE_ARCH} == "sparc"
. else
PTHREAD_OPTS+= require native
. include "../../mk/pthread.buildlink3.mk"
. endif
.else
PKG_FAIL_REASON+= "${PKGNAME} does not have the correct config name for this system"
.endif
pre-build:
${MKDIR} ${WRKSRC}/lib/icon
do-configure:
cd ${WRKSRC}/config/netbsd && \
${SED} -e 's:@X11BASE@:${X11BASE}:g' define.h.in \
> define.h
cd ${WRKSRC} && ${MAKE} ${CONFIGURE_TARGET} name=${NAME}
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} dest=${PREFIX} Install
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|