2001-06-12 09:34:44 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: HT Editor
|
|
|
|
# Date created: Jun 12, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hte
|
2007-09-05 17:04:16 +02:00
|
|
|
PORTVERSION= 2.0.10
|
2001-06-12 09:34:44 +02:00
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ht-${PORTVERSION}
|
|
|
|
|
2006-09-07 14:18:26 +02:00
|
|
|
MAINTAINER= mva@sysfault.org
|
2003-02-20 18:12:51 +01:00
|
|
|
COMMENT= A file editor/viewer/analyzer for executables
|
2001-06-12 09:34:44 +02:00
|
|
|
|
2003-05-19 01:42:48 +02:00
|
|
|
USE_BZIP2= yes
|
2001-06-12 09:34:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2001-06-12 09:34:44 +02:00
|
|
|
|
2004-03-20 18:24:13 +01:00
|
|
|
PLIST_FILES= bin/ht
|
|
|
|
|
2001-11-15 10:03:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-06-09 14:59:33 +02:00
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
BROKEN= Does not build on ia64
|
|
|
|
.endif
|
|
|
|
|
2003-07-11 07:17:09 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
2006-09-07 14:18:26 +02:00
|
|
|
CONFIGURE_ARGS=--disable-x11-textmode
|
2003-07-11 07:17:09 +02:00
|
|
|
.else
|
|
|
|
USE_XLIB= yes
|
2007-03-08 12:47:01 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" LDFLAGS="-L${X11BASE}/lib"
|
2003-07-11 07:17:09 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-22 19:42:53 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= README
|
|
|
|
.endif
|
|
|
|
|
2003-05-19 01:42:48 +02:00
|
|
|
post-patch:
|
2004-08-10 20:26:27 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^CXXFLAGS=.*$$|CXXFLAGS="$$CXXFLAGS"|g ; \
|
|
|
|
s|^CFLAGS=.*$$|CFLAGS="$$CFLAGS"|g ; \
|
2003-07-11 07:17:09 +02:00
|
|
|
s|-L/usr/X11/lib -L/usr/X11R6/lib|$$LDFLAGS|g' \
|
2003-07-06 12:28:50 +02:00
|
|
|
${WRKSRC}/configure
|
2003-05-19 01:42:48 +02:00
|
|
|
|
2004-12-23 10:51:14 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ht ${PREFIX}/bin
|
2003-05-19 01:42:48 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2001-11-15 10:03:03 +01:00
|
|
|
.include <bsd.port.post.mk>
|