diff options
author | mharo <mharo@FreeBSD.org> | 2000-03-24 08:09:50 +0800 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 2000-03-24 08:09:50 +0800 |
commit | 80a3d3b854ce5897a58bd093b976afa09e9af197 (patch) | |
tree | bb313164359f7b16eeae8d3996e84e5a847e3f3d /editors/biew | |
parent | 29383f85315c95784740dbae333a293f0c81a6b3 (diff) | |
download | freebsd-ports-gnome-80a3d3b854ce5897a58bd093b976afa09e9af197.tar.gz freebsd-ports-gnome-80a3d3b854ce5897a58bd093b976afa09e9af197.tar.zst freebsd-ports-gnome-80a3d3b854ce5897a58bd093b976afa09e9af197.zip |
- Support PREFIX properly
- Fix pkg/PLIST
- Add WWW: line into pkg/DESCR
PR: 17570
Submitted by: tkato@prontomail.ne.jp
Diffstat (limited to 'editors/biew')
-rw-r--r-- | editors/biew/Makefile | 8 | ||||
-rw-r--r-- | editors/biew/files/patch-aa | 2 | ||||
-rw-r--r-- | editors/biew/pkg-descr | 2 | ||||
-rw-r--r-- | editors/biew/pkg-plist | 1 |
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 |