mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
64e3e1352c
jcpierri@gmail.com takes maintainership Port changes: * Use DISTVERSION * Update MASTER_SITES * Add LICENSE_FILE PR: 230078 Submitted by: Josmar <jcpierri@gmail.com>
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cdialog
|
|
DISTVERSION= 1.3.20180621
|
|
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
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
USES= libtool:build ncurses tar:tgz
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --enable-widec \
|
|
--includedir=${PREFIX}/include/${PORTNAME} \
|
|
--with-libtool \
|
|
--with-ncursesw \
|
|
--with-package=${PORTNAME}
|
|
MAKEFILE= makefile
|
|
|
|
INSTALL_TARGET= install-strip install-man install-lib
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${NCURSESBASE} != /usr
|
|
CONFIGURE_ARGS+= --with-curses-dir=${NCURSESBASE}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;
|
|
@${REINPLACE_CMD} -e 's|$$(INSTALL_DATA) $$(LIB)|$$(INSTALL_DATA) -s $$(LIB)|'\
|
|
${WRKSRC}/${MAKEFILE}.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.post.mk>
|