aboutsummaryrefslogtreecommitdiff
path: root/editors/biew
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2000-03-24 00:09:50 +0000
committerMichael Haro <mharo@FreeBSD.org>2000-03-24 00:09:50 +0000
commit837a4626c4d65380bf7bc51703e152c18c640f80 (patch)
tree290d080245ad8a2318924a92774263f330b1f64f /editors/biew
parenta05a46eb47637d0925a4d89ec48bdd511defebc2 (diff)
downloadports-837a4626c4d65380bf7bc51703e152c18c640f80.tar.gz
ports-837a4626c4d65380bf7bc51703e152c18c640f80.zip
- Support PREFIX properly
- Fix pkg/PLIST - Add WWW: line into pkg/DESCR PR: 17570 Submitted by: tkato@prontomail.ne.jp
Notes
Notes: svn path=/head/; revision=26997
Diffstat (limited to 'editors/biew')
-rw-r--r--editors/biew/Makefile8
-rw-r--r--editors/biew/files/patch-aa2
-rw-r--r--editors/biew/pkg-descr2
-rw-r--r--editors/biew/pkg-plist1
4 files changed, 10 insertions, 3 deletions
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 <bsd.port.post.mk>
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