Modified to build on 4-current
PR: 13744 Submiited by: maintainer
This commit is contained in:
parent
45b34d86d4
commit
418136972c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21818
@ -10,11 +10,11 @@ DISTNAME= iv-3.1
|
||||
PKGNAME= ja-iv-3.1
|
||||
CATEGORIES= japanese graphics
|
||||
MASTER_SITES= ftp://interviews.stanford.edu/pub/ \
|
||||
ftp://ports.jp.freebsd.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/
|
||||
${MASTER_SITE_PORTS_JP}
|
||||
DISTFILES= 3.1.tar.Z iv3_1j_gamma.tar.gz
|
||||
|
||||
PATCH_SITES= ftp://ports.jp.freebsd.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/
|
||||
PATCHFILES= iv-3.1j-gamma-fixcmpfont.patch
|
||||
PATCH_SITES= ${MASTER_SITE_PORTS_JP}
|
||||
PATCHFILES= iv-3.1j-gamma-fixcmpfont.patch
|
||||
PATCH_DIST_STRIP= -p1
|
||||
|
||||
MAINTAINER= sanpei@sanpei.org
|
||||
@ -72,6 +72,12 @@ IV_LIB_VER= 3.1
|
||||
pre-patch:
|
||||
${PATCH} ${PATCH_DIST_ARGS} < ${WRKDIR}/diff-2.0gamma
|
||||
|
||||
.if ${OSVERSION} >= 400002
|
||||
post-patch:
|
||||
@(cd ${WRKSRC}/src/config/InterViews; ${MV} -f iv-freebsd.cf \
|
||||
iv-freebsd.cf~; ${SED} -e 's/\-lg\+\+//' iv-freebsd.cf~ > iv-freebsd.cf)
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${WRKDIR}/idraw-3_1j.ad ${PREFIX}/interviews/lib/all/app-defaults/idraw
|
||||
# need these in ${PREFIX}/lib so that ldconfig can find them
|
||||
|
@ -1,16 +1,28 @@
|
||||
*** src/bin/iclass/dialogs.c Wed Sep 23 09:45:09 1992
|
||||
--- /usr/oports/x11/iv/src/bin/iclass/dialogs.c Tue Apr 26 17:01:39 1994
|
||||
--- /usr/oports/x11/iv/src/bin/iclass/dialogs.c Sat Sep 11 09:55:17 1999
|
||||
***************
|
||||
*** 45,51 ****
|
||||
#if !defined(AIXV3) && !defined(hpux) && !(defined(sun) && OSMajorVersion >= 5)
|
||||
*** 40,51 ****
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <osfcn.h>
|
||||
|
||||
#if !defined(AIXV3) && !defined(hpux) && !(defined(sun) && OSMajorVersion >= 5) && !defined(__386BSD__) && !defined(linux)
|
||||
/* sigh, not all systems have this prototype */
|
||||
extern "C" {
|
||||
! char* getcwd(char*, int);
|
||||
}
|
||||
#endif
|
||||
|
||||
--- 45,51 ----
|
||||
#if !defined(AIXV3) && !defined(hpux) && !(defined(sun) && OSMajorVersion >= 5)
|
||||
--- 40,53 ----
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+ #if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+ #endif
|
||||
|
||||
#if !defined(AIXV3) && !defined(hpux) && !(defined(sun) && OSMajorVersion >= 5) && !defined(__386BSD__) && !defined(linux)
|
||||
/* sigh, not all systems have this prototype */
|
||||
extern "C" {
|
||||
! char* getcwd(char*, unsigned int);
|
||||
@ -227,7 +239,19 @@
|
||||
#define DECLARE2(f,t1,a1,t2,a2) f(t1 a1, t2 a2)
|
||||
#define DECLARE3(f,t1,a1,t2,a2,t3,a3) f(t1 a1, t2 a2, t3 a3)
|
||||
*** src/bin/ibuild/ibcmds.c.old Fri Dec 11 20:33:25 1992
|
||||
--- src/bin/ibuild/ibcmds.c Wed Nov 13 06:38:33 1996
|
||||
--- src/bin/ibuild/ibcmds.c Sat Sep 11 09:52:51 1999
|
||||
***************
|
||||
*** 86,92 ****
|
||||
--- 86,94 ----
|
||||
#undef FileChooser
|
||||
#define FileChooser _lib_iv(FileChooser)
|
||||
|
||||
+ #if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+ #endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stream.h>
|
||||
***************
|
||||
*** 2407,2415 ****
|
||||
EditorInfo* installed = (EditorInfo*) toolsdialog.Installed();
|
||||
@ -239,7 +263,7 @@
|
||||
ToolPanel* itoolpanel = iEd->GetToolPanel();
|
||||
|
||||
for (int i = 0; i < installed->Count(); i++) {
|
||||
--- 2407,2415 ----
|
||||
--- 2409,2417 ----
|
||||
EditorInfo* installed = (EditorInfo*) toolsdialog.Installed();
|
||||
EditorInfo* removed = (EditorInfo*) toolsdialog.Removed();
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
/* TIFF not included because it can't use the same flags */
|
||||
LIB = IV
|
||||
-VERSION = 3.1
|
||||
+.if ${PORTOBJFORMAT} == "elf"
|
||||
+.if defined(PORTOBJFORMAT) && ($(PORTOBJFORMAT) == "elf")
|
||||
+VERSION = 3
|
||||
+.else
|
||||
+VERSION = 3.1
|
||||
|
@ -4,7 +4,7 @@
|
||||
#ifdef InObjectCodeDir
|
||||
|
||||
LIB = Unidraw
|
||||
+.if ${PORTOBJFORMAT} == "elf"
|
||||
+.if defined(PORTOBJFORMAT) && ($(PORTOBJFORMAT) == "elf")
|
||||
+VERSION = 3
|
||||
+.else
|
||||
VERSION = 3.1
|
||||
|
12
japanese/iv/files/patch-bd
Normal file
12
japanese/iv/files/patch-bd
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/lib/Unidraw/catalog.c.orig Thu May 27 20:04:40 1999
|
||||
+++ src/lib/Unidraw/catalog.c Thu May 27 20:06:39 1999
|
||||
@@ -57,7 +57,9 @@
|
||||
#include <IV-2_6/_enter.h>
|
||||
|
||||
#include <ctype.h>
|
||||
+#if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
12
japanese/iv/files/patch-be
Normal file
12
japanese/iv/files/patch-be
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/lib/Unidraw/catcmds.c.orig Thu May 27 20:08:11 1999
|
||||
+++ src/lib/Unidraw/catcmds.c Thu May 27 20:08:33 1999
|
||||
@@ -42,7 +42,9 @@
|
||||
#include <InterViews/window.h>
|
||||
#include <OS/string.h>
|
||||
|
||||
+#if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stream.h>
|
11
japanese/iv/files/patch-bf
Normal file
11
japanese/iv/files/patch-bf
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/bin/dclock/clocktime.c.orig Thu May 27 21:32:07 1999
|
||||
+++ src/bin/dclock/clocktime.c Thu May 27 21:33:07 1999
|
||||
@@ -55,7 +55,7 @@
|
||||
#if defined(hpux) || defined(AIXV3)
|
||||
local = * localtime((time_t*) &gmt.tv_sec);
|
||||
#else
|
||||
-#ifdef __DECCXX
|
||||
+#if defined(__DECCXX) || defined(__FreeBSD__)
|
||||
local = * localtime((time_t*)&gmt.tv_sec);
|
||||
#else
|
||||
local = * localtime(&gmt.tv_sec);
|
12
japanese/iv/files/patch-bg
Normal file
12
japanese/iv/files/patch-bg
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/bin/ibuild/ibcode.c.orig Thu May 27 21:37:28 1999
|
||||
+++ src/bin/ibuild/ibcode.c Thu May 27 21:38:01 1999
|
||||
@@ -41,7 +41,9 @@
|
||||
#include <Unidraw/Graphic/pspaint.h>
|
||||
#include <InterViews/shape.h>
|
||||
#include <InterViews/transformer.h>
|
||||
+#if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+#endif
|
||||
#include <stdlib.h>
|
||||
#include <stream.h>
|
||||
#include <string.h>
|
12
japanese/iv/files/patch-bh
Normal file
12
japanese/iv/files/patch-bh
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/bin/ibuild/ibdialogs.c.orig Thu May 27 21:41:29 1999
|
||||
+++ src/bin/ibuild/ibdialogs.c Thu May 27 21:41:59 1999
|
||||
@@ -60,7 +60,9 @@
|
||||
#include <InterViews/tray.h>
|
||||
#include <OS/types.h>
|
||||
|
||||
+#if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
12
japanese/iv/files/patch-bi
Normal file
12
japanese/iv/files/patch-bi
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/bin/iclass/direct.c.orig Thu May 27 21:46:51 1999
|
||||
+++ src/bin/iclass/direct.c Thu May 27 21:47:19 1999
|
||||
@@ -30,7 +30,9 @@
|
||||
#include <OS/string.h>
|
||||
#include <OS/types.h>
|
||||
#include <stddef.h>
|
||||
+#if __FreeBSD_cc_version < 400002
|
||||
#include <osfcn.h>
|
||||
+#endif
|
||||
#include <pwd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
Loading…
Reference in New Issue
Block a user