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
|
2005-01-08 22:40:29 +00:00
|
|
|
PORTVERSION= 5.6.2
|
2000-03-20 23:51:37 +00:00
|
|
|
CATEGORIES= editors
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2005-01-08 22:40:29 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
2000-03-20 23:51:37 +00:00
|
|
|
|
2001-12-18 05:04:31 +00:00
|
|
|
MAINTAINER= ryan@sasknow.com
|
2003-02-21 11:38:28 +00:00
|
|
|
COMMENT= Binary vIEWer + editor for binary, hexadecimal and dis-asm modes
|
2000-03-20 23:51:37 +00:00
|
|
|
|
2005-01-08 22:40:29 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}
|
|
|
|
|
2000-03-20 23:51:37 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2004-04-01 08:47:24 +00:00
|
|
|
PORTDOCS= biew_en.txt biew_ru.txt develop.en develop.ru file_ini.en \
|
2000-08-01 23:43:35 +00:00
|
|
|
file_ini.ru licence.en licence.ru release.txt unix.txt
|
|
|
|
|
2005-01-08 22:40:29 +00:00
|
|
|
PLIST_FILES= bin/biew \
|
|
|
|
share/biew/assembly.skn \
|
|
|
|
share/biew/biew.hlp \
|
|
|
|
share/biew/golded.skn \
|
|
|
|
share/biew/insight.skn \
|
|
|
|
share/biew/standard.skn \
|
2000-03-20 23:51:37 +00:00
|
|
|
|
2005-01-08 22:40:29 +00:00
|
|
|
PLIST_DIRS= share/biew
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2000-06-09 05:56:12 +00:00
|
|
|
|
2000-03-20 23:51:37 +00:00
|
|
|
.if ${OSVERSION} < 400010
|
2001-01-16 17:33:20 +00:00
|
|
|
LIB_DEPENDS= ncurses.5:${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
|
|
|
|
|
2005-01-08 22:40:29 +00:00
|
|
|
OST_CFLAGS= ${CFLAGS} -DPREFIX="\'\"${PREFIX}\"\'"
|
|
|
|
MAKEFILE= makefile
|
|
|
|
|
2000-08-01 23:43:35 +00:00
|
|
|
MAKE_ARGS+= HOST_CFLAGS="${HOST_CFLAGS}" CC="${CC}" LD="${CC}" \
|
2000-06-09 05:56:12 +00:00
|
|
|
TARGET_OS=unix TARGET_SCREEN_LIB=curses \
|
|
|
|
USE_MOUSE=y
|
|
|
|
|
2005-01-08 22:40:29 +00:00
|
|
|
.if ${ARCH} != "i386"
|
2003-07-09 16:01:17 +00:00
|
|
|
MAKE_ARGS+= TARGET_PLATFORM=generic
|
|
|
|
.endif
|
|
|
|
|
2000-03-20 23:51:37 +00:00
|
|
|
post-build:
|
2000-08-01 23:43:35 +00:00
|
|
|
@ ${LN} -sf ../../biewlib ${WRKSRC}/tools/biewhlp/biewlib
|
2000-06-09 05:56:12 +00:00
|
|
|
cd ${WRKSRC}/tools/biewhlp; ${GMAKE} ${MAKE_ARGS}
|
2000-08-01 23:43:35 +00:00
|
|
|
@ ${LN} -sf ../../biewlib ${WRKSRC}/tools/lzss/biewlib
|
2000-06-09 05:56:12 +00:00
|
|
|
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
|
2001-11-17 10:24:59 +00:00
|
|
|
@ ${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin_rc/skn/*.skn ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${DATADIR}
|
2000-08-01 23:43:35 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-17 10:24:59 +00:00
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2004-04-01 08:47:24 +00:00
|
|
|
.for file in ${PORTDOCS}
|
2001-11-17 10:24:59 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
2000-08-01 23:43:35 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2000-03-20 23:51:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|