From b541c75aaabc03ca634839601dccb5c02c3f8348 Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Sat, 12 Jan 2008 16:31:19 +0000 Subject: [PATCH] Avoid the need for running autotools by replacing the patch to Makefile.am with REINPLACE_CMDs on Makefile.in --- security/poc/Makefile | 9 +++++++-- security/poc/files/patch-src_Makefile.am | 12 ------------ 2 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 security/poc/files/patch-src_Makefile.am diff --git a/security/poc/Makefile b/security/poc/Makefile index ba69f56fc710..2200867424ee 100644 --- a/security/poc/Makefile +++ b/security/poc/Makefile @@ -7,7 +7,7 @@ PORTNAME= poc PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR=poc @@ -20,8 +20,13 @@ LIB_DEPENDS= towitoko.2:${PORTSDIR}/devel/towitoko PLIST_FILES= bin/poc USE_GETOPT_LONG=yes USE_GMAKE= yes -USE_AUTOTOOLS= automake:14 autoconf:213 +GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +post-patch: + ${REINPLACE_CMD} -e "s,^CFLAGS,#CFLAGS,; \ + s,^CPPFLAGS =,CPPFLAGS = ${CPPFLAGS} -I${LOCALBASE}/include," \ + ${WRKSRC}/src/Makefile.in + .include diff --git a/security/poc/files/patch-src_Makefile.am b/security/poc/files/patch-src_Makefile.am deleted file mode 100644 index 24959c9bcc62..000000000000 --- a/security/poc/files/patch-src_Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ - -$FreeBSD$ - ---- src/Makefile.am.orig Thu Jul 25 16:35:09 2002 -+++ src/Makefile.am Thu Jul 25 16:35:18 2002 -@@ -30,6 +30,4 @@ - - # debugging - #CFLAGS = -g -Wall --CFLAGS = -Wall -O2 --CPPFLAGS = -