1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/editors/hte/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

64 lines
1.2 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: HT Editor
# Date created: Jun 12, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= hte
PORTVERSION= 2.0.18
CATEGORIES= editors
MASTER_SITES= SF/${PORTNAME}/ht-source
DISTNAME= ht-${PORTVERSION}
MAINTAINER= mva@FreeBSD.org
COMMENT= A file editor/viewer/analyzer for executables
USE_BZIP2= yes
GNU_CONFIGURE= yes
PLIST_FILES= bin/ht
OPTIONS= LZO2 "Enable external lzo2 compresssion support" off
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Does not build on ia64
.endif
.if defined(WITH_LZO2)
LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2
.else
CONFIGURE_ARGS= --with-included-lzo
.endif
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
CONFIGURE_ARGS+=--disable-x11-textmode
.else
USE_XORG= x11
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
post-patch:
@${REINPLACE_CMD} -e 's|^CXXFLAGS=.*$$|CXXFLAGS="$$CXXFLAGS"|g ; \
s|^CFLAGS=.*$$|CFLAGS="$$CFLAGS"|g ; \
s|-L/usr/X11/lib -L/usr/X11R6/lib|$$LDFLAGS|g' \
${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ht ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>