svn commit: r337414 - in head/security/sectok: . files

Pawel Pekala pawel at FreeBSD.org
Wed Dec 25 13:20:09 UTC 2013


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 at 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 at 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>


More information about the svn-ports-head mailing list