1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

Remove #include <malloc.h>

Respect CFLAGS
This commit is contained in:
Kris Kennaway 2002-03-31 03:20:17 +00:00
parent de772a8373
commit df8c2fcc21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57010
2 changed files with 22 additions and 27 deletions

View File

@ -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}/

View File

@ -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)