- Support CC/CFLAGS properly Remove file: files/patch-Makefile
Responsible Changed From-To: freebsd-ports-bugs->pawel I'll take it.
State Changed From-To: open->closed Committed. Thanks!
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"