37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2006/09/09 02:43:09 obache Exp $
|
|
|
|
DISTNAME= objc-3.2.6
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://users.pandora.be/stes/
|
|
DISTFILES= ${DIST_BS}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= pkgsrc-users@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}
|
|
CONFIG_GUESS_OVERRIDE= ${WRKSRC_BS}/util/config.guess util/config.guess
|
|
CONFIG_SUB_OVERRIDE= ${WRKSRC_BS}/util/config.sub util/config.sub
|
|
BUILD_DIRS= ${WRKSRC}
|
|
PREPEND_PATH+= ${WRKSRC_BS}
|
|
BUILD_TARGET= default
|
|
|
|
USE_TOOLS+= lex yacc
|
|
USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
pre-configure:
|
|
${ECHO} >> ${WRKSRC_BS}/configure \
|
|
'${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${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"
|