summaryrefslogtreecommitdiff
path: root/devel/gnustep-base/Makefile
blob: 2fbd8e92c5ac8cb6862b821806b4899b3a2d64ce (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
# $NetBSD: Makefile,v 1.20 2004/11/16 01:16:06 rh Exp $

DISTNAME=		gnustep-base-1.10.1
PKGREVISION=		1
CATEGORIES=		devel gnustep
MASTER_SITES=		ftp://ftp.gnustep.org/pub/gnustep/core/

MAINTAINER=		rh@NetBSD.org
HOMEPAGE=		http://www.gnustep.org/
COMMENT=		GNUstep foundation classes

PTHREAD_LIBS=		-lpthread

USE_BUILDLINK3=		yes
USE_X11=		yes
CONFIGURE_ARGS+=	--exec-prefix=${PREFIX}/libexec/GNUstep
CONFIGURE_ENV+=		INSTALL_PROGRAM="${INSTALL_SCRIPT}"

pre-configure:
	${SED} 's|@PREFIX@|${PREFIX}|g' <${FILESDIR}/openapp >${WRKDIR}/openapp
.for pfile in configure base.make.in
	${CP} ${WRKSRC}/${pfile} ${WRKSRC}/${pfile}.tmpl
	${SED} 's|@PTHREAD_LIBS@|${PTHREAD_LIBS}|g'			\
		<${WRKSRC}/${pfile}.tmpl >${WRKSRC}/${pfile}
.endfor

post-install:
	${INSTALL_SCRIPT} ${WRKDIR}/openapp ${PREFIX}/bin

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/ffcall/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/gnustep-make/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"

.include "../../mk/compiler.mk"

.if empty(CC_VERSION:Mgcc-3*)
.include "../../devel/gnustep-objc/buildlink3.mk"
.endif

.include "../../mk/pthread.buildlink3.mk"

.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
PTHREAD_LIBS+=		-lpth
.endif

.include "../../devel/gnustep-make/gnustep.mk"
.include "../../mk/bsd.pkg.mk"