2012-12-09 10:13:05 +01:00
|
|
|
# Created By: Ying-Chieh Liao
|
2001-06-12 09:34:44 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hte
|
2012-12-09 10:13:05 +01:00
|
|
|
PORTVERSION= 2.0.21
|
2001-06-12 09:34:44 +02:00
|
|
|
CATEGORIES= editors
|
2009-12-26 00:07:37 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/ht-source
|
2001-06-12 09:34:44 +02:00
|
|
|
DISTNAME= ht-${PORTVERSION}
|
|
|
|
|
2009-02-19 22:45:43 +01:00
|
|
|
MAINTAINER= mva@FreeBSD.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
|
|
|
|
2012-03-04 11:08:19 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2003-05-19 01:42:48 +02:00
|
|
|
USE_BZIP2= yes
|
2001-06-12 09:34:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2004-03-20 18:24:13 +01:00
|
|
|
PLIST_FILES= bin/ht
|
|
|
|
|
2012-12-09 10:13:05 +01:00
|
|
|
OPTIONS_DEFINE= DOCS LZO2 X11
|
|
|
|
OPTIONS_DEFAULT= X11
|
|
|
|
|
|
|
|
LZO2_DESC= External lzo2 compression support
|
|
|
|
X11_DESC= X11 textmode support
|
2009-09-27 14:54:38 +02:00
|
|
|
|
2012-03-04 11:08:19 +01:00
|
|
|
NOT_FOR_ARCHS= ia64
|
|
|
|
NOT_FOR_ARCHS_REASON= does not build on ia64
|
2001-11-15 10:03:03 +01:00
|
|
|
|
2012-03-04 11:08:19 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2007-06-09 14:59:33 +02:00
|
|
|
|
2012-12-09 10:13:05 +01:00
|
|
|
.if ${PORT_OPTIONS:MLZO2}
|
|
|
|
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
|
2009-09-27 14:54:38 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --with-included-lzo
|
|
|
|
.endif
|
|
|
|
|
2012-12-09 10:13:05 +01:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2008-03-24 18:02:27 +01:00
|
|
|
USE_XORG= x11
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-12-09 10:13:05 +01:00
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
CONFIGURE_ARGS+=--disable-x11-textmode
|
2003-07-11 07:17:09 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-09 10:13:05 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-06-22 19:42:53 +02:00
|
|
|
PORTDOCS= README
|
2012-03-04 11:08:19 +01:00
|
|
|
INFO= ht
|
2005-06-22 19:42:53 +02:00
|
|
|
.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
|
2012-12-09 10:13:05 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2003-05-19 01:42:48 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2012-03-04 11:08:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/hthelp.info ${PREFIX}/${INFO_PATH}/ht.info
|
2003-05-19 01:42:48 +02:00
|
|
|
.endif
|
|
|
|
|
2012-03-04 11:08:19 +01:00
|
|
|
.include <bsd.port.mk>
|