diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-13 21:55:48 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-13 21:55:48 +0000 |
commit | 5ed70723a16c9d248441ee0cedddf4df808bc46f (patch) | |
tree | 0f75c1c3bccc3d9406b429ccb2211313a42f7ada /devel/ruby-curses/Makefile | |
parent | 4e11bb7035edfbd1e31201af2a87ed88161ce2c0 (diff) | |
download | pkgsrc-5ed70723a16c9d248441ee0cedddf4df808bc46f.tar.gz |
+ Support user-destdir installation.
+ Include termcap.buildlink3.mk because curses.so is linked against
-ltermcap, so we need it to be transformed into the right library
depending on the platform and PREFER_* settings.
Bump the PKGREVISION to 1.
+ Because we are asking for ncurses (by include ncurses/buildlink3.mk),
check for <ncurses.h> and -lncurses instead of <curses.h> and
-lcurses. The curses.c file gets it wrong otherwise.
Diffstat (limited to 'devel/ruby-curses/Makefile')
-rw-r--r-- | devel/ruby-curses/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/devel/ruby-curses/Makefile b/devel/ruby-curses/Makefile index f6d98d92630..e4faa3c34fd 100644 --- a/devel/ruby-curses/Makefile +++ b/devel/ruby-curses/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.11 2007/03/15 16:42:32 taca Exp $ +# $NetBSD: Makefile,v 1.12 2008/03/13 21:55:48 jlam Exp $ # DISTNAME= ${RUBY_DISTNAME} PKGNAME= ${RUBY_PKGPREFIX}-curses-${RUBY_VERSION_SUFFIX} +PKGREVISION= 1 CATEGORIES= devel ruby MASTER_SITES= ${MASTER_SITE_RUBY} @@ -10,6 +11,8 @@ MAINTAINER= taca@NetBSD.org HOMEPAGE= ${RUBY_HOMEPAGE} COMMENT= Ruby extension to curses library +PKG_DESTDIR_SUPPORT= user-destdir + RUBY_HAS_ARCHLIB= yes USE_RUBY_EXTCONF= yes EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/curses @@ -19,12 +22,13 @@ CURSES_EXAMPLES= hello.rb rain.rb view.rb view2.rb REPLACE_RUBY= ${CURSES_EXAMPLES} post-install: - ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/curses + ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/curses .for f in ${CURSES_EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/curses + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_EXAMPLESDIR}/curses .endfor .include "../../lang/ruby/modules.mk" .include "../../lang/ruby/Makefile.common" .include "../../devel/ncurses/buildlink3.mk" +.include "../../mk/termcap.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |