88c67cd38c
- Patch libtool so it uses the same library version specification as on Darwin, Linux and other systems. Given the version current:revision:age a library will be given the extension .so.major.age.revision with major equal to current-age. Before libtool would use .so.current on FreeBSD. - Patch libtoolize to remove two cases of umask 0 that caused libltdl files to be copied world writable (--ltdl option) - Let USES=libtool patch this new version correctly - Adjust all ports with USES=libtool:build and bump PORTREVISION on their dependent ports if a library version changed PR: 194068 Exp-run by: antoine Approved by: portmgr (antoine)
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cdialog
|
|
PORTVERSION= 1.2.20140219
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://invisible-island.net/${PORTNAME:S|^c||}/
|
|
DISTNAME= ${PORTNAME:S|^c||}-${PORTVERSION:R}-${PORTVERSION:E}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Enhanced version of 'dialog' to work with ncurses
|
|
|
|
LICENSE= LGPL21
|
|
|
|
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>
|