From owner-svn-ports-head@FreeBSD.ORG Wed Dec 25 13:20:09 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4F8C21D; Wed, 25 Dec 2013 13:20:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AED4B15A5; Wed, 25 Dec 2013 13:20:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBPDK9Jw032747; Wed, 25 Dec 2013 13:20:09 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBPDK9w0032746; Wed, 25 Dec 2013 13:20:09 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312251320.rBPDK9w0032746@svn.freebsd.org> From: Pawel Pekala Date: Wed, 25 Dec 2013 13:20:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337414 - in head/security/sectok: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 13:20:09 -0000 Author: pawel Date: Wed Dec 25 13:20:09 2013 New Revision: 337414 URL: http://svnweb.freebsd.org/changeset/ports/337414 Log: - Respect CC/CFLAGS - Support staging PR: ports/184845 Submitted by: KATO Tsuguru Deleted: head/security/sectok/files/patch-Makefile Modified: head/security/sectok/Makefile (contents, props changed) Modified: head/security/sectok/Makefile ============================================================================== --- head/security/sectok/Makefile Wed Dec 25 13:13:02 2013 (r337413) +++ head/security/sectok/Makefile Wed Dec 25 13:20:09 2013 (r337414) @@ -5,21 +5,32 @@ PORTNAME= sectok PORTVERSION= 20030825 CATEGORIES= security MASTER_SITES= http://www.citi.umich.edu/projects/smartcard/ -DISTNAME= sectok-${PORTVERSION} EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= ISO 7816 Smartcard Utility -LIB_DEPENDS= sectok.3:${PORTSDIR}/security/libsectok +LIB_DEPENDS= libsectok.so:${PORTSDIR}/security/libsectok USE_OPENSSL= yes - USE_LDCONFIG= yes -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -MAN1= sectok.1 -PLIST_FILES= bin/sectok +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz + +post-patch: + @${REINPLACE_CMD} -e \ + '/^INCLUDES=/s|$$| $${CPPFLAGS}| ; \ + /^LIBS=/s|$$| $${LDFLAGS}| ; \ + s|^CC=|CC?=| ; \ + s|^CFLAGS=|CFLAGS?=|' ${WRKSRC}/Makefile + +do-install: + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) -NO_STAGE= yes .include