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