From 80a3d3b854ce5897a58bd093b976afa09e9af197 Mon Sep 17 00:00:00 2001 From: mharo Date: Fri, 24 Mar 2000 00:09:50 +0000 Subject: - Support PREFIX properly - Fix pkg/PLIST - Add WWW: line into pkg/DESCR PR: 17570 Submitted by: tkato@prontomail.ne.jp --- editors/biew/Makefile | 8 ++++++-- editors/biew/files/patch-aa | 2 +- editors/biew/pkg-descr | 2 ++ editors/biew/pkg-plist | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) (limited to 'editors/biew') diff --git a/editors/biew/Makefile b/editors/biew/Makefile index 725bb2c19133..5d48b51c67c5 100644 --- a/editors/biew/Makefile +++ b/editors/biew/Makefile @@ -26,6 +26,10 @@ MAKE_ARGS+= "CSYSFLAGS=-D__FreeBSD_version=${OSVERSION} -I${LOCALBASE}/include" MAKE_ARGS+= "OSLDEF=-L${LOCALBASE}/lib" .endif +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" \ + ${WRKSRC}/lib/sysdep/generic/unix/os_dep.c + pre-build: ${LN} -sf ${WRKSRC}/makefile ${WRKSRC}/Makefile @@ -40,8 +44,8 @@ post-build: ${LN} -sf ../tools/lzss/lzss ./;./biewhlp biewhlp.prj) do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin @ ${MKDIR} ${PREFIX}/share/biew - @ ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${PREFIX}/share/biew + ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${PREFIX}/share/biew .include diff --git a/editors/biew/files/patch-aa b/editors/biew/files/patch-aa index 7b014716d6f0..17fd9b7dcc8a 100644 --- a/editors/biew/files/patch-aa +++ b/editors/biew/files/patch-aa @@ -5,7 +5,7 @@ char * __get_help_name(void) { - return "/usr/lib/biew/biew.hlp"; -+ return "/usr/local/share/biew/biew.hlp"; ++ return "%%PREFIX%%/share/biew/biew.hlp"; } static void cleanup(int sig) diff --git a/editors/biew/pkg-descr b/editors/biew/pkg-descr index bf3a9af2fbed..34d4491b3de7 100644 --- a/editors/biew/pkg-descr +++ b/editors/biew/pkg-descr @@ -3,3 +3,5 @@ hexadecimal and disassembler modes. The program also has text viewer with different Russia codepages support (Windows-1251, MSDOS-866, etc.). Run the program with -? or without arguments for help on program switches. + +WWW: http://biew.sourceforge.net/ diff --git a/editors/biew/pkg-plist b/editors/biew/pkg-plist index b7e36ea78a28..e7ee9de87cee 100644 --- a/editors/biew/pkg-plist +++ b/editors/biew/pkg-plist @@ -1,2 +1,3 @@ bin/biew share/biew/biew.hlp +@dirrm share/biew -- cgit