f6bafd7cf9
PR: ports/111357 Submitted by: Marcus von Appen <mva at sysfault.org> (maintainer)
54 lines
1.2 KiB
Makefile
54 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.2
|
|
CATEGORIES= editors
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ht-${PORTVERSION}
|
|
|
|
MAINTAINER= mva@sysfault.org
|
|
COMMENT= A file editor/viewer/analyzer for executables
|
|
|
|
USE_BZIP2= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
PLIST_FILES= bin/ht
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITHOUT_X11)
|
|
PKGNAMESUFFIX= -nox11
|
|
CONFIGURE_ARGS=--disable-x11-textmode
|
|
.else
|
|
USE_XLIB= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" LDFLAGS="-L${X11BASE}/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
|
|
@${REINPLACE_CMD} -e \
|
|
's|typedef unsigned int uint;||g' ${WRKSRC}/global.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ht ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|