freebsd-ports/editors/hte/Makefile

67 lines
1.5 KiB
Makefile
Raw Normal View History

# ex:ts=8
# New ports collection makefile for: HT Editor
# Date created: Jun 12, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= hte
PORTVERSION= 0.8.0
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ht-${PORTVERSION}
2001-09-09 15:50:57 +02:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:12:51 +01:00
COMMENT= A file editor/viewer/analyzer for executables
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
2002-10-21 13:01:42 +02:00
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
2002-10-21 13:01:42 +02:00
CONFIGURE_ARGS= --enable-release
PORTDOCS= README
PLIST_FILES= bin/ht
2001-11-15 10:03:03 +01:00
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not build on FreeBSD >= 5.x"
.endif
2001-11-15 10:03:03 +01:00
.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|^CXXFLAGS=.*$$|CXXFLAGS="$$CXXFLAGS"|g ; \
s|^CFLAGS=.*$$|CFLAGS="$$CFLAGS"|g ; \
s|-L/usr/X11/lib -L/usr/X11R6/lib|$$LDFLAGS|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|typedef unsigned int uint;||g' ${WRKSRC}/global.h
@${REINPLACE_CMD} -e \
's|uint |UINT |g' ${WRKSRC}/htdata.h
@${REINPLACE_CMD} -e \
's|#include <malloc.h>||g' ${WRKSRC}/cp-demangle.c
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
2001-11-15 10:03:03 +01:00
.include <bsd.port.post.mk>