summaryrefslogtreecommitdiff
path: root/lang/objc/Makefile
blob: e29d7fb0a364caff9d855bcbd8bd123908a86c7e (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
# $NetBSD: Makefile,v 1.5 2005/05/15 19:28:37 jlam Exp $

DISTNAME=	objc-3.2.6
CATEGORIES=	lang
MASTER_SITES=	http://users.pandora.be/stes/
DISTFILES=	${DIST_BS}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://users.pandora.be/stes/compiler.html
COMMENT=	Portable Object Compiler

DIST_BS=	objc-bootstrap-3.1.33
WRKSRC_BS=	${WRKDIR}/${DIST_BS}

CONFIGURE_DIRS=		${WRKSRC_BS} ${WRKSRC}
PREPEND_PATH+=		${WRKSRC_BS}
BUILD_TARGET=		default

USE_GNU_TOOLS+=		lex
USE_TOOLS+=		yacc
CONFIGURE_ENV+=		YACC=${TOOLS_YACC:Q}
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes

pre-configure:
	${ECHO} >> ${WRKSRC_BS}/configure \
	'${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKEFILE} ${BUILD_TARGET}'

post-configure:
	${LN} -s . ${WRKSRC_BS}/bin
	${SED} < ${WRKSRC_BS}/objc > ${WRKDIR}/oc.tmp \
		-e 's|${PREFIX}|${WRKSRC_BS}|g'
	${MV} ${WRKDIR}/oc.tmp ${WRKSRC_BS}/objc
	${CHMOD} +x ${WRKSRC_BS}/objc

.include "../../mk/bsd.pkg.mk"