diff options
author | agc <agc> | 2002-05-09 14:36:49 +0000 |
---|---|---|
committer | agc <agc> | 2002-05-09 14:36:49 +0000 |
commit | 6c9ef6149a4910bd78fb2fa8d1f37c5a1fab0b2c (patch) | |
tree | b4dc9747e00689e6b2ef60029445c36c98e94717 /lang | |
parent | cfb743cfb045a8ce124220699fcffd0280f54a34 (diff) | |
download | pkgsrc-6c9ef6149a4910bd78fb2fa8d1f37c5a1fab0b2c.tar.gz |
Don't bother using EVAL_PREFIX to find the prefices of boehm-gc, tcl
or tk, since they are all installed into ${LOCALBASE}.
Weakly buildlink-ify this package.
When installing, install the files from ${WRKSRC} into ${PREFIX} and
then change the ownership, rather than doing it the other way around.
This allows non-root users to "make clean" in the package directory.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/sather/Makefile | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/lang/sather/Makefile b/lang/sather/Makefile index a590bd23a03..1c2bee01a8c 100644 --- a/lang/sather/Makefile +++ b/lang/sather/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2002/05/04 00:45:28 jtb Exp $ +# $NetBSD: Makefile,v 1.2 2002/05/09 14:36:49 agc Exp $ DISTNAME= sather-1.2.1 CATEGORIES= lang @@ -8,21 +8,10 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.gnu.org/software/sather/index.html COMMENT= Compiler for the Sather object oriented programming language -DEPENDS+= boehm-gc-[0-9]*:../../devel/boehm-gc -DEPENDS+= tcl-8.3.*:../../lang/tcl -DEPENDS+= tk-8.3.*:../../x11/tk - USE_GMAKE= # defined ALL_TARGET= full optional -GC_PREFIX_DEFAULT= ${LOCALBASE} -EVAL_PREFIX+= GC_PREFIX=boehm-gc -TCL_PREFIX_DEFAULT= ${LOCALBASE} -EVAL_PREFIX+= TCL_PREFIX=tcl -TK_PREFIX_DEFAULT= ${LOCALBASE} -EVAL_PREFIX+= TK_PREFIX=tk - INFO_FILES= sather.info sather-tutorial.info sather-mode.info do-configure: @@ -45,9 +34,9 @@ do-configure: -e 's:@GMAKE@:${GMAKE}:g' \ -e 's:@PREFIX@:${PREFIX}:g' \ -e 's:@X11BASE@:${X11BASE}:g' \ - -e 's:@GC_PREFIX@:${GC_PREFIX}:g' \ - -e 's:@TCL_PREFIX@:${TCL_PREFIX}:g' \ - -e 's:@TK_PREFIX@:${TK_PREFIX}:g' \ + -e 's:@GC_PREFIX@:${LOCALBASE}:g' \ + -e 's:@TCL_PREFIX@:${LOCALBASE}:g' \ + -e 's:@TK_PREFIX@:${LOCALBASE}:g' \ $$f > $$f.tmp && ${MV} -f $$f.tmp $$f; \ done @@ -64,8 +53,6 @@ do-install: ${INSTALL_SCRIPT} PP gen_html saprep ${PREFIX}/lib/sather/Bin ${INSTALL_SCRIPT} ${WRKSRC}/debian/bin-wrapper \ ${PREFIX}/lib/sather/Bin - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/Library \ - ${WRKSRC}/System cd ${PREFIX}/bin; \ ${LN} -sf ../lib/sather/Bin/bin-wrapper sacomp; \ ${LN} -sf ../lib/sather/Bin/bin-wrapper sabrowse; \ @@ -76,6 +63,8 @@ do-install: System/Platforms/X System/Platforms/dualgui \ System/Platforms/gui System/Platforms/tcltk \ Browser ${PREFIX}/lib/sather + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/sather/Library \ + ${PREFIX}/lib/sather/System ${FIND} ${PREFIX}/lib/sather -name \*.config -o -name Makefile \ -o -name \*.orig | ${XARGS} ${RM} -f ${INSTALL_DATA} ${WRKSRC}/Emacs/*.info* ${PREFIX}/info @@ -90,5 +79,8 @@ do-install: post-install: ${RM} -fr ${PREFIX}/lib/sather/System/Platforms/dualgui/dual_gui_server.code/ +.include "../../devel/boehm-gc/buildlink.mk" +.include "../../x11/tk/buildlink.mk" +.include "../../mk/x11.buildlink.mk" .include "../../mk/texinfo.mk" .include "../../mk/bsd.pkg.mk" |