diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2010-10-06 13:13:52 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2010-10-06 13:13:52 +0000 |
commit | a6445bc16c2e60274dd965a60004c8ab1c195f4f (patch) | |
tree | c8012b0dc71f1e5b5a4fbbc753f63655662481f5 /editors/biew | |
parent | a944d85d4e07c7f0e3de795431f339f1c0689eb5 (diff) | |
download | ports-a6445bc16c2e60274dd965a60004c8ab1c195f4f.tar.gz ports-a6445bc16c2e60274dd965a60004c8ab1c195f4f.zip |
Notes
Diffstat (limited to 'editors/biew')
-rw-r--r-- | editors/biew/Makefile | 46 | ||||
-rw-r--r-- | editors/biew/pkg-plist | 44 |
2 files changed, 67 insertions, 23 deletions
diff --git a/editors/biew/Makefile b/editors/biew/Makefile index e2cd7187425e..164f5a2eb5d9 100644 --- a/editors/biew/Makefile +++ b/editors/biew/Makefile @@ -7,6 +7,7 @@ PORTNAME= biew PORTVERSION= 6.1.0 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= SF/beye/biew/${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-src @@ -21,18 +22,10 @@ CONFIGURE_ARGS= --cc="${CC}" --with-extraincdir="${LOCALBASE}/include" \ USE_BZIP2= yes USE_GMAKE= yes USE_ICONV= yes +USE_DOS2UNIX= ${PORTDOCS} MAKEFILE= makefile WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g} -PLIST_FILES= bin/biew \ - %%DATADIR%%/assembly.skn \ - %%DATADIR%%/biew.hlp \ - %%DATADIR%%/golded.skn \ - %%DATADIR%%/insight.skn \ - %%DATADIR%%/light.skn \ - %%DATADIR%%/standard.skn -PLIST_DIRS= %%DATADIR%% - 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 @@ -41,6 +34,10 @@ OPTIONS= SLANG "Use S-Lang based display renderer" on .include <bsd.port.pre.mk> +.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64" +BROKEN= Does not compile +.endif + .if defined(WITH_SLANG) LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2 CONFIGURE_ARGS+= --enable-slang @@ -48,26 +45,29 @@ CONFIGURE_ARGS+= --enable-slang CONFIGURE_ARGS+= --enable-curses .endif -.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" -BROKEN= Does not compile -.endif - post-patch: @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' ${WRKSRC}/configure +# 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 -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) +# 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) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/bin_rc/skn/*.skn ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${DATADIR} + @${MKDIR} ${DATADIR}/skn ${DATADIR}/syntax ${DATADIR}/xlt + ${INSTALL_DATA} ${WRKSRC}/bin_rc/biew.hlp ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/bin_rc/skn/* ${DATADIR}/skn + ${INSTALL_DATA} ${WRKSRC}/bin_rc/syntax/* ${DATADIR}/syntax + ${INSTALL_DATA} ${WRKSRC}/bin_rc/xlt/russian/* ${DATADIR}/xlt ${INSTALL_MAN} ${WRKSRC}/doc/biew.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff --git a/editors/biew/pkg-plist b/editors/biew/pkg-plist new file mode 100644 index 000000000000..4f6c37d818dd --- /dev/null +++ b/editors/biew/pkg-plist @@ -0,0 +1,44 @@ +bin/biew +%%DATADIR%%/biew.hlp +%%DATADIR%%/skn/assembly.skn +%%DATADIR%%/skn/golded.skn +%%DATADIR%%/skn/insight.skn +%%DATADIR%%/skn/light.skn +%%DATADIR%%/skn/standard.skn +%%DATADIR%%/syntax/awk.stx +%%DATADIR%%/syntax/c.stx +%%DATADIR%%/syntax/cpp.stx +%%DATADIR%%/syntax/cxx.stx +%%DATADIR%%/syntax/diff.stx +%%DATADIR%%/syntax/fortran.stx +%%DATADIR%%/syntax/html.stx +%%DATADIR%%/syntax/java.stx +%%DATADIR%%/syntax/makefile.stx +%%DATADIR%%/syntax/pascal.stx +%%DATADIR%%/syntax/perl.stx +%%DATADIR%%/syntax/python.stx +%%DATADIR%%/syntax/sh.stx +%%DATADIR%%/syntax/sql.stx +%%DATADIR%%/syntax/syntax.stx +%%DATADIR%%/syntax/template.stx +%%DATADIR%%/syntax/xml.stx +%%DATADIR%%/xlt/alt2koi.xlt +%%DATADIR%%/xlt/alt2mac.xlt +%%DATADIR%%/xlt/alt2win.xlt +%%DATADIR%%/xlt/e2a.xlt +%%DATADIR%%/xlt/gost872a.xlt +%%DATADIR%%/xlt/ibm2alt.xlt +%%DATADIR%%/xlt/iso2alt.xlt +%%DATADIR%%/xlt/koi02alt.xlt +%%DATADIR%%/xlt/koi2alt.xlt +%%DATADIR%%/xlt/koi72alt.xlt +%%DATADIR%%/xlt/koi82_2a.xlt +%%DATADIR%%/xlt/koi8a2a.xlt +%%DATADIR%%/xlt/koi8e2a.xlt +%%DATADIR%%/xlt/mac2alt.xlt +%%DATADIR%%/xlt/mik2alt.xlt +%%DATADIR%%/xlt/win2alt.xlt +@dirrm %%DATADIR%%/xlt +@dirrm %%DATADIR%%/syntax +@dirrm %%DATADIR%%/skn +@dirrm %%DATADIR%% |