]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/dialog/package/freebsd/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / dialog / package / freebsd / Makefile
1 # New ports collection makefile for:    ncdialog
2 # Date created:         2003-01-11
3 # Whom:                 AlanE <alane@freebsd.org>
4 #
5 # $Carpetsmoker: ports/cdialog/Makefile,v 1.4 2007/04/22 11:30:53 carpetsmoker Exp $
6 # $FreeBSD$
7 #
8
9 PORTNAME=       cdialog
10 PORTVERSION=    1.2.20130923
11 PORTEPOCH=      1
12 CATEGORIES=     devel
13 MASTER_SITES=   ftp://invisible-island.net/${PORTNAME:S|^c||}/
14 DISTNAME=       ${PORTNAME:S|^c||}-${PORTVERSION:R}-${PORTVERSION:E}
15 EXTRACT_SUFX=   .tgz
16
17 MAINTAINER=     sylvio@FreeBSD.org
18 COMMENT=        An enhanced version of 'dialog' to work with ncurses
19
20 LICENSE=        LGPL21
21
22 USE_AUTOTOOLS=  libtool
23 GNU_CONFIGURE=  yes
24 USE_LDCONFIG=   yes
25 CONFIGURE_ARGS= --enable-widec \
26                 --includedir=${PREFIX}/include/${PORTNAME} \
27                 --with-libtool \
28                 --with-ncursesw \
29                 --with-package=${PORTNAME}
30 MAKEFILE=       makefile
31
32 MAN1=           cdialog.1
33 MAN3=           cdialog.3
34 MANCOMPRESSED=  no
35
36 INSTALL_TARGET= install-strip install-man install-lib
37
38 .if !defined(NOPORTEXAMPLES)
39 post-patch:
40         @${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;
41
42 post-install:
43         @${MKDIR} ${EXAMPLESDIR}
44         cd ${WRKSRC}/samples && ${FIND} . | \
45                 ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
46 .endif
47
48 .include <bsd.port.mk>