freebsd-ports/editors/hte/Makefile
Marcus von Appen 114dae7914 - Enable stagedir support
- minor non-functional OPTIONS cleanup
2014-01-16 20:18:15 +00:00

52 lines
1.2 KiB
Makefile

# Created by: Ying-Chieh Liao
# $FreeBSD$
PORTNAME= hte
PORTVERSION= 2.0.22
CATEGORIES= editors
MASTER_SITES= SF/${PORTNAME}/ht-source
DISTNAME= ht-${PORTVERSION}
MAINTAINER= mva@FreeBSD.org
COMMENT= A file editor/viewer/analyzer for executables
LICENSE= GPLv2
USE_BZIP2= yes
GNU_CONFIGURE= yes
PLIST_FILES= bin/ht
OPTIONS_DEFINE= DOCS LZO2 X11
OPTIONS_DEFAULT= X11
LZO2_DESC= External lzo2 compression support
X11_DESC= X11 textmode support
NOT_FOR_ARCHS= ia64
NOT_FOR_ARCHS_REASON= does not build on ia64
LZO2_LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
LZO2_CONFIGURE_OFF= --with-included-lzo
X11_USE= XORG=x11
X11_CPPFLAGS= -I${LOCALBASE}/include
X11_LDFLAGS= -L${LOCALBASE}/lib
X11_CONFIGURE_ENABLE= x11-textmode
PORTDOCS= README
INFO= ht
post-patch:
@${REINPLACE_CMD} -e 's|^CXXFLAGS=.*$$|CXXFLAGS="$$CXXFLAGS"|g ; \
s|^CFLAGS=.*$$|CFLAGS="$$CFLAGS"|g ; \
s|-L/usr/X11/lib -L/usr/X11R6/lib|$$LDFLAGS|g' \
${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ht ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/hthelp.info \
${STAGEDIR}${PREFIX}/${INFO_PATH}/ht.info
.include <bsd.port.mk>