Bug 184845 - security/sectok: Support CC/CFLAGS properly
Summary: security/sectok: Support CC/CFLAGS properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-25 13:30 UTC (History)
0 users

See Also:


Attachments
file.diff (2.47 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:12 UTC
- Support CC/CFLAGS properly

Remove file:
files/patch-Makefile
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 13:15:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 13:20:17 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-12-25 13:20:22 UTC
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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"