pkgsrc/devel/adacurses/Makefile
marino f9de260343 Add devel/adacurses to pkgsrc
The ncurses Ada95 binding was originally written by Juergen Pfeifer in
1996.  It has been improved several times by Juergen, as wll as
Eugen V. Melaragno and Nicolas Boulenguez.
2016-12-12 00:36:19 +00:00

57 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2016/12/12 00:36:19 marino Exp $
PKGNAME= adacurses-${ACVERSION}
CATEGORIES= devel
MASTER_SITES= ftp://invisible-island.net/AdaCurses/
DISTFILES= AdaCurses-${ACVERSION}.tgz
MAINTAINER= draco@marino.st
HOMEPAGE= http://invisible-island.net/ncurses/ncurses-Ada95.html
COMMENT= Ada95 bindings for ncurses
LICENSE= mit
ACVERSION= 20150808
WRKSRC= ${WRKDIR}/AdaCurses-${ACVERSION}
USE_LANGUAGES= c ada
MAKE_JOBS_SAFE= no
USE_TOOLS= gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ada-include=${PREFIX}/include/adacurses \
--with-ada-objects=${PREFIX}/lib/adacurses \
--with-curses-dir=${LOCALBASE} \
--libdir=${PREFIX}/lib/adacurses \
--enable-widec
PLIST_SUBST= atic=adacurses/terminal_interface-curses
USE_BUILTIN.ncurses= no
SUBST_CLASSES= adagen pragma sample
SUBST_STAGE.adagen= post-patch
SUBST_FILES.adagen= gen/Makefile.in
SUBST_SED.adagen= -e '/(INSTALL_PROG)/d' -e 's|@ADAGEN_LDFLAGS@||'
SUBST_MESSAGE.adagen= Adjust gen Makefile
SUBST_STAGE.sample= post-patch
SUBST_FILES.sample= samples/Makefile.in
SUBST_SED.sample= -e 's|@LIBS@|@LIBS@ -lmenu -lform -lpanel|'
SUBST_MESSAGE.sample= Adjust samples Makefile
SUBST_STAGE.pragma= post-patch
SUBST_FILES.pragma= gen/terminal_interface-curses.ads.m4 \
gen/terminal_interface-curses-menus.ads.m4 \
gen/terminal_interface-curses-forms.ads.m4 \
gen/terminal_interface-curses-panels.ads.m4
SUBST_SED.pragma= -e '/pragma Linker_Options/d'
SUBST_MESSAGE.pragma= Explicitly link form, panel and menu libraries
post-install:
@${MKDIR} ${DESTDIR}${PREFIX}/lib/gnat
${INSTALL_SCRIPT} ${WRKSRC}/gen/adacurses-config \
${DESTDIR}${PREFIX}/bin/
${SED} "s|@PREFIX@|${LOCALBASE}|g" ${FILESDIR}/adacurses.gpr.in > \
${DESTDIR}${PREFIX}/lib/gnat/adacurses.gpr
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"