mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
718e3b7ed8
This fixes ugly black bars that show up with cdialog 1.3-20180621 PR: 242613 Submitted by: takefu@airport.fm Reported by: Serge Volkov <sv@ulstu.ru> Approved by: tcberner (ports) Approved by: Josmar <jcpierri@gmail.com> (maintainer)
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cdialog
|
|
DISTVERSION= 1.3.20200327
|
|
PORTEPOCH= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.invisible-island.net/${PORTNAME:S|^c||}/
|
|
DISTNAME= ${PORTNAME:S|^c||}-${PORTVERSION:R}-${PORTVERSION:E}
|
|
|
|
MAINTAINER= jcpierri@gmail.com
|
|
COMMENT= Enhanced version of 'dialog' to work with ncurses
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= libtool:build ncurses tar:tgz
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --enable-widec \
|
|
--includedir=${PREFIX}/include/${PORTNAME} \
|
|
--with-libtool \
|
|
--with-${NCURSES_IMPL} \
|
|
--with-package=${PORTNAME}
|
|
MAKEFILE= makefile
|
|
|
|
INSTALL_TARGET= install-strip install-man install-lib
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${NCURSESBASE} != /usr
|
|
CONFIGURE_ARGS+= --with-curses-dir=${NCURSESBASE}
|
|
.endif
|
|
|
|
pre-patch-EXAMPLES-on:
|
|
@${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;
|
|
|
|
pre-install:
|
|
@${STRIP_CMD} ${WRKSRC}/.libs/libcdialog.so.15.0.0
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.post.mk>
|