diff options
author | araujo <araujo@FreeBSD.org> | 2013-02-04 16:51:13 +0800 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2013-02-04 16:51:13 +0800 |
commit | 11c1fa97a1b8c4c58e505ae62f5ed45f8dd8145a (patch) | |
tree | b2dce53bf1369594a0842df6dcdf4411c2fc50f4 /misc | |
parent | a0cdb39d923f644248014a75ec25061f40eda1a5 (diff) | |
download | freebsd-ports-gnome-11c1fa97a1b8c4c58e505ae62f5ed45f8dd8145a.tar.gz freebsd-ports-gnome-11c1fa97a1b8c4c58e505ae62f5ed45f8dd8145a.tar.zst freebsd-ports-gnome-11c1fa97a1b8c4c58e505ae62f5ed45f8dd8145a.zip |
- Fix build using CLANG.
PR: ports/175013
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/aclgen/Makefile | 14 | ||||
-rw-r--r-- | misc/aclgen/files/patch-aa | 10 |
2 files changed, 8 insertions, 16 deletions
diff --git a/misc/aclgen/Makefile b/misc/aclgen/Makefile index 329254db1293..ed932a234704 100644 --- a/misc/aclgen/Makefile +++ b/misc/aclgen/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: aclgen -# Date created: 17 September 1999 -# Whom: igor@zynaps.ru -# +# Created by: igor@zynaps.ru # $FreeBSD$ -# PORTNAME= aclgen PORTVERSION= 2.02 @@ -14,13 +10,19 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//} MAINTAINER= ports@FreeBSD.org COMMENT= Optimize Cisco routers IP access lists -NO_WRKSUBDIR= YES +NO_WRKSUBDIR= yes + MAKEFILE= /usr/share/mk/bsd.prog.mk MAKE_ARGS= PROG=aclgen MAN1= aclgen.1 PLIST_FILES= bin/aclgen +post-patch: + @${REINPLACE_CMD} -e \ + 's|<malloc.h>|<unistd.h>| ; \ + s|^void main|int main|' ${WRKSRC}/aclgen.c + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/aclgen ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/aclgen.1 ${MANPREFIX}/man/man1 diff --git a/misc/aclgen/files/patch-aa b/misc/aclgen/files/patch-aa deleted file mode 100644 index f35c352144a0..000000000000 --- a/misc/aclgen/files/patch-aa +++ /dev/null @@ -1,10 +0,0 @@ ---- aclgen.c.orig Thu Jul 3 11:35:57 1997 -+++ aclgen.c Fri Sep 17 18:08:28 1999 -@@ -15,7 +15,6 @@ - #include <stdio.h> - #include <string.h> - #include <ctype.h> --#include <malloc.h> - #include <stdlib.h> - - /*#define P(x) ()*/ |