diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2012-01-19 09:12:04 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2012-01-19 09:12:04 +0000 |
commit | 32e4bf8c06acf31acffd9dd287c04fd0aa76070a (patch) | |
tree | 3a9a5311cb435e85e39cd92bc537822e5d7c41b4 /editors/biew | |
parent | e8e564c7ca304289af3f8234f4a6cb76250a1acb (diff) | |
download | ports-32e4bf8c06acf31acffd9dd287c04fd0aa76070a.tar.gz ports-32e4bf8c06acf31acffd9dd287c04fd0aa76070a.zip |
Notes
Diffstat (limited to 'editors/biew')
-rw-r--r-- | editors/biew/Makefile | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/editors/biew/Makefile b/editors/biew/Makefile index 164f5a2eb5d9..000511213e83 100644 --- a/editors/biew/Makefile +++ b/editors/biew/Makefile @@ -1,4 +1,4 @@ -# New ports collection makefile for: BIEW +# New ports collection makefile for: BIEW (now called BEYE, Binary EYE) # Date created: 04 February 2000 # Whom: Michael Vasilenko <acid@stu.cn.ua> # @@ -7,7 +7,7 @@ PORTNAME= biew PORTVERSION= 6.1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= editors MASTER_SITES= SF/beye/biew/${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-src @@ -15,6 +15,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-src MAINTAINER= danfe@FreeBSD.org COMMENT= Binary file viewer and editor +LICENSE= GPLv2 + HAS_CONFIGURE= yes CONFIGURE_ARGS= --cc="${CC}" --with-extraincdir="${LOCALBASE}/include" \ --ld="${CC}" --with-extralibdir="${LOCALBASE}/lib" \ @@ -28,7 +30,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g} MAN1= biew.1 PORTDOCS= biew_en.txt biew_ru.txt develop.en develop.ru file_ini.en \ - file_ini.ru licence.en licence.ru release.txt unix.txt + file_ini.ru release.txt unix.txt OPTIONS= SLANG "Use S-Lang based display renderer" on @@ -50,16 +52,17 @@ post-patch: # Allow it to find definition of `uintmax_t' (required at least for ia64) @${REINPLACE_CMD} -e 's,<sys/types,<stdint,' \ ${WRKSRC}/biewlib/sysdep/generic/__config.h +# Fix BTx group of x86 opcodes disasm bug (sf.net bug id 3150304) + @${REINPLACE_CMD} -e 's,DisP->codelen++),++DisP->codelen),' \ + ${WRKSRC}/plugins/disasm/ix86/ix86_fun.c -# Rebuilding of help file does not work at least on ia64; use precompiled -# file provided by original vendor (MD5 sums of both match) -#post-build: -# ${LN} -sf ../../biewlib ${WRKSRC}/tools/biewhlp/biewlib -# cd ${WRKSRC}/tools/biewhlp && ${GMAKE} ${MAKE_ARGS} -# ${LN} -sf ../../biewlib ${WRKSRC}/tools/lzss/biewlib -# cd ${WRKSRC}/tools/lzss && ${GMAKE} ${MAKE_ARGS} -# (cd ${WRKSRC}/hlp; ${LN} -sf ../tools/biewhlp/biewhlp; \ -# ${LN} -sf ../tools/lzss/lzss; ./biewhlp biewhlp.prj) +post-build: +# Convert Russian text files to UTF-8 encoding (doing it in post-build +# ensures we have iconv(1) installed, and seems more logical since these +# files could theoretically also be [re]built) + @${SH} -c '${FIND} ${WRKSRC}/doc/*ru* -type f | while read f ; \ + do iconv -f cp866 -t utf-8 "$${f}" > "$${f}.tmp" && \ + ${MV} "$${f}.tmp" "$${f}" ; done' do-install: ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin |