Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2013 13:20:09 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337414 - in head/security/sectok: . files
Message-ID:  <201312251320.rBPDK9w0032746@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <tkato432@yahoo.com>

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 <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312251320.rBPDK9w0032746>