freebsd-ports/devel/cdialog/Makefile
takefu 76b6cd9452 devel/cdialog: Update to 1.3-20230209
ChangeLog: https://invisible-island.net/dialog/CHANGES

2023/02/09
 * install ".pc" files in the test-packages.
 * add pkg-config ".pc" file, for use with the development library.

2023/02/07
 * change shared-library configuration in test-packages to use the
  ABI version in the library filename to match its SONAME.
 * add sample scripts to test-packages, using new makefile rule
  "install-examples".
 * corrected cdialog*.install helper scripts in test-package for Debian
 * change ftp URLs in test-packages to https
 * updated configure script, e.g., for compiler-warning fixes.
 * updated fur.po, zh_TW.po from http://translationproject.org/latest/dialog/

PR:		271088
Reported by:	takefu@airport.fm
Approved by:	jcpierri@gmail.com (maintainer, timeout > 2 weeks)
2023-05-10 08:45:08 +02:00

40 lines
1.2 KiB
Makefile

PORTNAME= cdialog
DISTVERSION= 1.3-20230209
PORTEPOCH= 2
CATEGORIES= devel
MASTER_SITES= https://invisible-island.net/archives/${PORTNAME:S|^c||}/\
https://invisible-mirror.net/archives/${PORTNAME:S|^c||}/
DISTNAME= ${PORTNAME:S|^c||}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= jcpierri@gmail.com
COMMENT= Enhanced version of 'dialog' to work with ncurses
WWW= https://invisible-island.net/dialog/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool:build ncurses tar:tgz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-widec \
--includedir=${PREFIX}/include/${PORTNAME} \
--with-libtool \
--with-${NCURSES_IMPL} \
--with-package=${PORTNAME}\
--with-curses-dir=${NCURSESBASE}
MAKEFILE= makefile
INSTALL_TARGET= install-strip install-man install-lib
TEST_TARGET= check
OPTIONS_DEFINE= EXAMPLES
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.mk>