blob: 5041504a6cb51126a3f378e7f77c8fb0e10f6782 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# ex:ts=8
# New ports collection makefile for: xdialog
# Date created: Jan 8, 2001
# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= xdialog
PORTVERSION= 2.3.1
PORTREVISION= 2
CATEGORIES= x11
MASTER_SITES= http://thgodef.nerim.net/xdialog/ \
LOCAL/chinsan
DISTNAME= ${PORTNAME:S/x/X/}-${PORTVERSION}
MAINTAINER= chinsan@FreeBSD.org
COMMENT= A drop in replacement for the "dialog" or "cdialog" programs
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GNOME= gnometarget gtk12
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= Xdialog.1
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|m4 lib src|m4 src|g ; \
s|-I../lib||g ; \
s|-L../lib -lgetopt||g ; \
s| install-docDATA||g'
@${REINPLACE_CMD} -e 's,Xdialog\\-%%version%%,xdialog,' \
${WRKSRC}/doc/Xdialog.man
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/samples
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${DOCSDIR}/samples
.endif
.include <bsd.port.mk>
|