2013-06-16 13:52:55 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2013/06/16 13:52:55 benoit Exp $
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
COMMENT = file editor/viewer/analyzer for executables
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2013-06-16 13:52:55 +00:00
|
|
|
DISTNAME = ht-2.0.22
|
2009-11-23 10:48:30 +00:00
|
|
|
CATEGORIES = editors
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
HOMEPAGE = http://hte.sourceforge.net/
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-05-24 20:03:47 +00:00
|
|
|
# GPLv2
|
2009-11-23 10:48:30 +00:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
2008-05-04 20:43:55 +00:00
|
|
|
|
2012-04-15 18:38:53 +00:00
|
|
|
WANTLIB = c m ncursesw stdc++
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=hte/}
|
2009-05-24 20:03:47 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
USE_GMAKE = Yes
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
FLAVORS = no_x11
|
|
|
|
FLAVOR ?=
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2010-11-15 23:22:07 +00:00
|
|
|
LIB_DEPENDS = archivers/lzo2
|
2010-11-07 18:50:57 +00:00
|
|
|
WANTLIB += lzo2
|
2008-05-04 20:43:55 +00:00
|
|
|
|
2009-11-23 10:48:30 +00:00
|
|
|
CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include" \
|
2008-05-04 20:43:55 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2009-11-23 10:48:30 +00:00
|
|
|
CONFIGURE_ARGS = --program-transform-name='s/ht/hte/'
|
2008-05-04 20:43:55 +00:00
|
|
|
|
2003-05-17 07:29:33 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2009-11-23 10:48:30 +00:00
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
CONFIGURE_ARGS += --disable-x11-textmode
|
2003-11-02 01:34:46 +00:00
|
|
|
.else
|
2009-11-23 10:48:30 +00:00
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
2008-05-04 20:43:55 +00:00
|
|
|
X11BASE=${X11BASE}
|
2009-11-23 10:48:30 +00:00
|
|
|
CONFIGURE_ARGS += --enable-x11-textmode
|
|
|
|
WANTLIB += X11
|
2003-11-02 01:34:46 +00:00
|
|
|
.endif
|
2003-05-17 07:29:33 +00:00
|
|
|
|
2009-01-11 17:02:09 +00:00
|
|
|
do-install:
|
|
|
|
chmod +x ${WRKSRC}/install-sh
|
|
|
|
|
2003-05-17 07:29:33 +00:00
|
|
|
post-install:
|
2009-01-11 17:02:09 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/ht ${PREFIX}/bin/hte
|
2003-05-17 07:29:33 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ht
|
2008-05-04 20:43:55 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/{README,ht.html} ${PREFIX}/share/doc/ht
|
2003-05-17 07:29:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|