From b7325ee02c531c4be4077ad3a225d278097f9ea8 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sun, 28 Jan 2001 04:03:31 +0000 Subject: - Fix MASTER_SITES - Support PREFIX properly PR: 24670 Submitted by: tkato@prontomail.ne.jp --- devel/qtk/Makefile | 23 ++++++++++++++--------- devel/qtk/distinfo | 2 +- 2 files changed, 15 insertions(+), 10 deletions(-) (limited to 'devel/qtk') diff --git a/devel/qtk/Makefile b/devel/qtk/Makefile index f167b452e306..c2c67a7ad866 100644 --- a/devel/qtk/Makefile +++ b/devel/qtk/Makefile @@ -8,26 +8,31 @@ PORTNAME= qtk PORTVERSION= 0.50 CATEGORIES= devel tk82 -MASTER_SITES= http://www.psn.net/~andrews/dist/ +MASTER_SITES= http://www.jump.net/~brooke/qtk/ DISTNAME= ${PORTNAME} +EXTRACT_SUFX= # empty MAINTAINER= ports@FreeBSD.org RUN_DEPENDS= ${LOCALBASE}/bin/wish8.2:${PORTSDIR}/x11-toolkits/tk82 -NO_BUILD= YES +EXTRACT_CMD= ${CP} +EXTRACT_BEFORE_ARGS= # empty +EXTRACT_AFTER_ARGS= . -USE_X_PREFIX= YES +NO_WRKSUBDIR= yes +NO_BUILD= yes + +USE_X_PREFIX= yes WISH= ${LOCALBASE}/bin/wish8.2 -post-patch: - @${SED} 's:/usr/bin/wish:${WISH}:' \ - ${WRKSRC}/qtk > ${WRKSRC}/qtk.new - @${SED} 's:keepnewline wish:keepnewline ${WISH}:' \ - ${WRKSRC}/qtk.new > ${WRKSRC}/qtk.new2 +do-configure: + @${PERL} -pi.dist \ + -e 's|/usr/bin/wish|${WISH}|;' \ + -e 's|keepnewline wish|keepnewline ${WISH}|' ${WRKSRC}/qtk do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/qtk.new2 ${X11BASE}/bin/qtk + ${INSTALL_SCRIPT} ${WRKSRC}/qtk ${PREFIX}/bin .include diff --git a/devel/qtk/distinfo b/devel/qtk/distinfo index 8e511df563cb..f73fb0892afb 100644 --- a/devel/qtk/distinfo +++ b/devel/qtk/distinfo @@ -1 +1 @@ -MD5 (qtk.tar.gz) = 14dbb6e5af3ac096b1bb8465d1111cfd +MD5 (qtk) = 70035459034168a625463bdce3fa45cc -- cgit v1.2.3