1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/x11/xdialog/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

55 lines
1.2 KiB
Makefile

# 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= 5
CATEGORIES= x11
MASTER_SITES= http://thgodef.nerim.net/xdialog/ \
http://xdialog.free.fr/
DISTNAME= ${PORTNAME:S/x/X/}-${PORTVERSION}
MAINTAINER= sylvio@FreeBSD.org
COMMENT= A drop in replacement for the "dialog" or "cdialog" programs
USE_BZIP2= yes
USE_GNOME= gtk12
GNU_CONFIGURE= yes
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>