pkgsrc/lang/hugs/package.mk
rodent e5b2fdbc78 'Please use ${ECHO} instead of "echo".'
'Please use ${ECHO_N} instead of "echo -n".'
2013-04-06 14:58:18 +00:00

46 lines
1.2 KiB
Makefile

# $NetBSD: package.mk,v 1.5 2013/04/06 14:58:19 rodent Exp $
#
PKGNAME= hugs98-${DISTNAME}
MASTER_SITES= http://cvs.haskell.org/Hugs/downloads/2006-09/packages/
COMMENT+= (Hugs package)
HUGS_RUN= ${BUILDLINK_PREFIX.hugs98}/bin/runhugs
HUGS_CPPHS= ${BUILDLINK_PREFIX.hugs98}/bin/cpphs-hugs
HUGS_HSC2HS= ${BUILDLINK_PREFIX.hugs98}/bin/hsc2hs-hugs
.include "../../lang/hugs/buildlink3.mk"
.include "../../mk/bsd.fast.prefs.mk"
do-configure:
cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
configure \
--verbose \
--prefix=${PREFIX:Q} \
--hugs \
--with-cpphs=${HUGS_CPPHS:Q} \
--with-hsc2hs=${HUGS_HSC2HS:Q}
do-build:
cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
build \
--verbose
.if ${_USE_DESTDIR} != "no"
do-install:
cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
copy --verbose --destdir=${DESTDIR}
cd ${WRKSRC} && \
pkg=`awk '{ print $$2; nextfile }' < .installed-pkg-config` && \
${ECHO} $$pkg && \
${INSTALL_DATA_DIR} \
${DESTDIR}${PREFIX}/lib/hugs/packages/$$pkg/packages/$$pkg && \
${INSTALL_DATA} .installed-pkg-config \
${DESTDIR}${PREFIX}/lib/hugs/packages/$$pkg/packages/$$pkg/package.conf
.else
do-install:
cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
install --verbose
.endif