1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/editors/hte/Makefile
Kirill Ponomarev 28b3650875 - Update to version 0.7.5
PR:		ports/64504
Submitted by:	Ports Fury
2004-03-20 17:24:13 +00:00

56 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= 0.7.5
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ht-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A file editor/viewer/analyzer for executables
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-release
PORTDOCS= README
PLIST_FILES= bin/ht
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.endif
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
CONFIGURE_ARGS+= --disable-x11-textmode
.else
USE_XLIB= yes
CPPFLAGS= -I${X11BASE}/include
LDFLAGS= -L${X11BASE}/lib
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$$FLAGS_PIPE $$FLAGS_ALL|$$CFLAGS|g ; \
s|-L/usr/X11/lib -L/usr/X11R6/lib|$$LDFLAGS|g' \
${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>