From 517d39bdb56176227622a9128b5dfa68e87579f0 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 29 Jan 2010 18:52:09 +0000 Subject: Use copy and manual messing with the package.conf in the DESTDIR case. XXX Needs a better way to do this --- lang/hugs/package.mk | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'lang/hugs') diff --git a/lang/hugs/package.mk b/lang/hugs/package.mk index 667d05c50b2..fcce7b04523 100644 --- a/lang/hugs/package.mk +++ b/lang/hugs/package.mk @@ -1,4 +1,4 @@ -# $NetBSD: package.mk,v 1.3 2009/06/14 22:58:02 joerg Exp $ +# $NetBSD: package.mk,v 1.4 2010/01/29 18:52:09 joerg Exp $ # PKGNAME= hugs98-${DISTNAME} @@ -12,6 +12,8 @@ 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 \ @@ -26,7 +28,19 @@ do-build: build \ --verbose +.if ${_USE_DESTDIR} != "no" do-install: cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \ - install \ - --verbose + 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 -- cgit v1.2.3