2000-03-20 23:51:37 +00:00
|
|
|
# New ports collection makefile for: biew
|
|
|
|
# Date created: 04 February 2000
|
|
|
|
# Whom: Michael Vasilenko <acid@stu.cn.ua>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 00:25:54 +00:00
|
|
|
PORTNAME= biew
|
2000-06-09 19:24:36 +00:00
|
|
|
PORTVERSION= 5.1.0
|
2000-03-20 23:51:37 +00:00
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ftp://biew.sourceforge.net/pub/biew/5.x/src/ \
|
|
|
|
http://download.sourceforge.net/biew/
|
2000-06-09 05:56:12 +00:00
|
|
|
DISTNAME= ${PORTNAME}-510
|
2000-03-20 23:51:37 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-06-09 05:56:12 +00:00
|
|
|
HOST_CFLAGS= ${CFLAGS}
|
|
|
|
HOST_LD= ${CC}
|
|
|
|
MAKEFILE= makefile
|
|
|
|
|
2000-03-20 23:51:37 +00:00
|
|
|
.if ${OSVERSION} < 400010
|
2000-06-09 05:56:12 +00:00
|
|
|
LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
|
|
|
|
HOST_CFLAGS+= -D__FreeBSD_version=${OSVERSION} -I${LOCALBASE}/include
|
|
|
|
HOST_LD+= -L${LOCALBASE}/lib
|
2000-03-20 23:51:37 +00:00
|
|
|
.endif
|
|
|
|
|
2000-06-09 05:56:12 +00:00
|
|
|
MAKE_ARGS+= HOST_CFLAGS="${HOST_CFLAGS}" LD="${HOST_LD}" \
|
|
|
|
TARGET_OS=unix TARGET_SCREEN_LIB=curses \
|
|
|
|
USE_MOUSE=y
|
|
|
|
|
2000-03-24 00:09:50 +00:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" \
|
|
|
|
${WRKSRC}/lib/sysdep/generic/unix/os_dep.c
|
|
|
|
|
2000-03-20 23:51:37 +00:00
|
|
|
post-build:
|
2000-06-09 05:56:12 +00:00
|
|
|
@ ${LN} -sf ../../lib ${WRKSRC}/tools/biewhlp/lib
|
|
|
|
cd ${WRKSRC}/tools/biewhlp; ${GMAKE} ${MAKE_ARGS}
|
|
|
|
@ ${LN} -sf ../../lib ${WRKSRC}/tools/lzss/lib
|
|
|
|
cd ${WRKSRC}/tools/lzss; ${GMAKE} ${MAKE_ARGS}
|
2000-03-20 23:51:37 +00:00
|
|
|
@ (cd ${WRKSRC}/hlp;${LN} -sf ../tools/biewhlp/biewhlp ./;\
|
|
|
|
${LN} -sf ../tools/lzss/lzss ./;./biewhlp biewhlp.prj)
|
|
|
|
|
|
|
|
do-install:
|
2000-03-24 00:09:50 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin
|
2000-03-20 23:51:37 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/biew
|
2000-06-09 05:56:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${WRKSRC}/bin_rc/standard.skn \
|
|
|
|
${PREFIX}/share/biew
|
2000-03-20 23:51:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|