nanotodon: Avoid using Makefile.bsd, which assumes the linker supports
RPATH (not true for all pkgsrc platforms). Instead, let pkgsrc set the correct linker arguments itself. Add some commented out examples of how to get this to compile with NetBSD libcurses (it works, but not perfectly, and I don't want to make life more difficult for japanese users)
This commit is contained in:
parent
32a5047f42
commit
417f271fae
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.16 2023/11/08 13:20:31 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.17 2024/03/17 14:00:52 nia Exp $
|
||||
|
||||
GITHUB_TAG= 0.3.1
|
||||
DISTNAME= nanotodon-${GITHUB_TAG}
|
||||
|
@ -16,19 +16,20 @@ USE_LANGUAGES= c99
|
|||
INSTALLATION_DIRS+= bin share/doc/nanotodon
|
||||
|
||||
BUILD_TARGET= default
|
||||
MAKE_FILE= Makefile.bsd
|
||||
MAKE_FILE= Makefile.base
|
||||
MAKE_FLAGS+= NCURSES=ncursesw
|
||||
|
||||
SUBST_CLASSES+= prefix
|
||||
SUBST_MESSAGE.prefix= Fixing hardcoded paths and link options in Makefiles.
|
||||
SUBST_STAGE.prefix= pre-configure
|
||||
SUBST_FILES.prefix= Makefile.bsd
|
||||
SUBST_SED.prefix+= -e 's|/usr/pkg/|${PREFIX}/|g'
|
||||
# problems rendering UTF-8
|
||||
#MAKE_FLAGS+= NCURSES=${BUILDLINK_LIBNAME.curses}
|
||||
#FAKE_NCURSES= yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/nanotodon ${DESTDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md \
|
||||
${DESTDIR}${PREFIX}/share/doc/nanotodon
|
||||
|
||||
.include "../../devel/ncursesw/buildlink3.mk"
|
||||
.include "../../www/curl/buildlink3.mk"
|
||||
.include "../../devel/ncursesw/buildlink3.mk"
|
||||
# problems rendering UTF-8
|
||||
#.include "../../mk/curses.buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in New Issue