diff options
author | joerg <joerg> | 2010-01-29 18:52:09 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-01-29 18:52:09 +0000 |
commit | 517d39bdb56176227622a9128b5dfa68e87579f0 (patch) | |
tree | 6af58b4ce059d92f6f0a56697b540b81f9ca8209 /lang/hugs | |
parent | 23278e63f9001dfcc45e2d4f5c685963b764ff7f (diff) | |
download | pkgsrc-517d39bdb56176227622a9128b5dfa68e87579f0.tar.gz |
Use copy and manual messing with the package.conf in the DESTDIR case.
XXX Needs a better way to do this
Diffstat (limited to 'lang/hugs')
-rw-r--r-- | lang/hugs/package.mk | 20 |
1 files changed, 17 insertions, 3 deletions
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 |