aboutsummaryrefslogtreecommitdiff
path: root/korean
diff options
context:
space:
mode:
Diffstat (limited to 'korean')
-rw-r--r--korean/hpscat/Makefile4
-rw-r--r--korean/hpscat/files/patch-aa45
2 files changed, 22 insertions, 27 deletions
diff --git a/korean/hpscat/Makefile b/korean/hpscat/Makefile
index c0a60caead6a..571a6bfa9e3c 100644
--- a/korean/hpscat/Makefile
+++ b/korean/hpscat/Makefile
@@ -20,6 +20,10 @@ MAINTAINER= cjh@FreeBSD.org
RUN_DEPENDS= hcode:${PORTSDIR}/korean/hcode
+pre-patch:
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/hpscat.h
+
pre-configure:
${CP} ${FILESDIR}/hpscat.sh ${WRKSRC}/
diff --git a/korean/hpscat/files/patch-aa b/korean/hpscat/files/patch-aa
index e8fbf3894bed..a20c03072edd 100644
--- a/korean/hpscat/files/patch-aa
+++ b/korean/hpscat/files/patch-aa
@@ -1,27 +1,18 @@
-*** Makefile.orig Thu Nov 23 00:42:41 1995
---- Makefile Fri Apr 4 13:44:29 1997
-***************
-*** 11,20 ****
- DADVHF = -DADV_HFONT
- #DADVHF =
- # define if you want to make the default paper size US letter instead of A4
-! DUS = -DUS_VERSION
-! #DUS =
- CFLAGS = -O $(DHPS) $(DADVHF) $(DUS)
- LDFLAGS = -s
-
- $(PRG): $(OBJ)
- $(CC) $(LDFLAGS) -o $@ $(OBJ)
---- 11,22 ----
- DADVHF = -DADV_HFONT
- #DADVHF =
- # define if you want to make the default paper size US letter instead of A4
-! #DUS = -DUS_VERSION
-! DUS =
- CFLAGS = -O $(DHPS) $(DADVHF) $(DUS)
- LDFLAGS = -s
-+
-+ all: $(PRG)
-
- $(PRG): $(OBJ)
- $(CC) $(LDFLAGS) -o $@ $(OBJ)
+--- Makefile.orig Wed Nov 22 07:42:41 1995
++++ Makefile Sat Mar 30 19:22:22 2002
+@@ -11,10 +11,12 @@
+ DADVHF = -DADV_HFONT
+ #DADVHF =
+ # define if you want to make the default paper size US letter instead of A4
+-DUS = -DUS_VERSION
+-#DUS =
+-CFLAGS = -O $(DHPS) $(DADVHF) $(DUS)
++#DUS = -DUS_VERSION
++DUS =
++CFLAGS += $(DHPS) $(DADVHF) $(DUS)
+ LDFLAGS = -s
++
++all: $(PRG)
+
+ $(PRG): $(OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(OBJ)