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
|
2009-12-26 00:07:37 +01:00
|
|
|
PORTVERSION= 2.0.18
|
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
|
|
|
|
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
|
|
|
|
|
2009-09-27 14:54:38 +02:00
|
|
|
OPTIONS= LZO2 "Enable external lzo2 compresssion support" off
|
|
|
|
|
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
|
|
|
|
|
2009-09-27 14:54:38 +02:00
|
|
|
.if defined(WITH_LZO2)
|
|
|
|
LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --with-included-lzo
|
|
|
|
.endif
|
|
|
|
|
2003-07-11 07:17:09 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
2009-09-27 14:54:38 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-x11-textmode
|
2003-07-11 07:17:09 +02:00
|
|
|
.else
|
2008-03-24 18:02:27 +01:00
|
|
|
USE_XORG= x11
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/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>
|