summaryrefslogtreecommitdiffstats
path: root/editors/biew/Makefile
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2000-08-01 23:43:35 +0000
committerjedgar <jedgar@FreeBSD.org>2000-08-01 23:43:35 +0000
commit0021df038ef171131f33bea7db323dfaa81e4321 (patch)
tree18c2400643f7add84c0147af59b16ec54d6f0f25 /editors/biew/Makefile
parent3a667dbcbb987496d8ed4f9693c1a3f03cc06026 (diff)
downloadFreeBSD-ports-0021df038ef171131f33bea7db323dfaa81e4321.zip
FreeBSD-ports-0021df038ef171131f33bea7db323dfaa81e4321.tar.gz
Update port to 5.1.2
PR: 20150 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'editors/biew/Makefile')
-rw-r--r--editors/biew/Makefile33
1 files changed, 19 insertions, 14 deletions
diff --git a/editors/biew/Makefile b/editors/biew/Makefile
index a2fcd61..a4a8bfc 100644
--- a/editors/biew/Makefile
+++ b/editors/biew/Makefile
@@ -6,22 +6,24 @@
#
PORTNAME= biew
-PORTVERSION= 5.1.0
+PORTVERSION= 5.1.2
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-510
+DISTNAME= ${PORTNAME}-512
MAINTAINER= ports@FreeBSD.org
USE_BZIP2= yes
USE_GMAKE= yes
+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
+
.include <bsd.port.pre.mk>
-HOST_CFLAGS= ${CFLAGS}
-HOST_LD= ${CC}
-MAKEFILE= makefile
+HOST_CFLAGS= ${CFLAGS} -DLIBDIR="\'\"${PREFIX}/share\"\'"
+MAKEFILE= makefile
.if ${OSVERSION} < 400010
LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
@@ -29,18 +31,14 @@ HOST_CFLAGS+= -D__FreeBSD_version=${OSVERSION} -I${LOCALBASE}/include
HOST_LD+= -L${LOCALBASE}/lib
.endif
-MAKE_ARGS+= HOST_CFLAGS="${HOST_CFLAGS}" LD="${HOST_LD}" \
+MAKE_ARGS+= HOST_CFLAGS="${HOST_CFLAGS}" CC="${CC}" LD="${CC}" \
TARGET_OS=unix TARGET_SCREEN_LIB=curses \
USE_MOUSE=y
-post-patch:
- @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" \
- ${WRKSRC}/lib/sysdep/generic/unix/os_dep.c
-
post-build:
- @ ${LN} -sf ../../lib ${WRKSRC}/tools/biewhlp/lib
+ @ ${LN} -sf ../../biewlib ${WRKSRC}/tools/biewhlp/biewlib
cd ${WRKSRC}/tools/biewhlp; ${GMAKE} ${MAKE_ARGS}
- @ ${LN} -sf ../../lib ${WRKSRC}/tools/lzss/lib
+ @ ${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)
@@ -48,7 +46,14 @@ post-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin
@ ${MKDIR} ${PREFIX}/share/biew
- ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${WRKSRC}/bin_rc/standard.skn \
- ${PREFIX}/share/biew
+.for file in bin_rc/assembly.skn bin_rc/standard.skn hlp/biew.hlp
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/biew
+.endfor
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/biew
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/biew
+.endfor
+.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud