svn commit: r396956 - head/security/chntpw

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Sep 15 12:23:20 UTC 2015


Author: amdmi3
Date: Tue Sep 15 12:23:19 2015
New Revision: 396956
URL: https://svnweb.freebsd.org/changeset/ports/396956

Log:
  - Drop ARCH condition for removing -m32 flag: on i386 it's no-op anyway
  - Drop ONLY_FOR_ARCHS, it builds fine on arm, mips and mips64, however not sure if it's usable there
  - Switch to options helpers
  
  PR:		202870
  Submitted by:	amdmi3
  Approved by:	buganini at gmail.com (maintainer)

Modified:
  head/security/chntpw/Makefile

Modified: head/security/chntpw/Makefile
==============================================================================
--- head/security/chntpw/Makefile	Tue Sep 15 12:08:07 2015	(r396955)
+++ head/security/chntpw/Makefile	Tue Sep 15 12:23:19 2015	(r396956)
@@ -18,29 +18,21 @@ OPTIONS_DEFINE=	DOCS
 USE_OPENSSL=	yes
 USES=		gmake zip
 
-ONLY_FOR_ARCHS=	i386 amd64
-
 BIN_FILES=	chntpw cpnt reged
 PLIST_FILES=	${BIN_FILES:C|^|bin/|}
 PORTDOCS=	README.txt WinReg.txt regedit.txt
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e '/^CC=/d; /^OSSLPATH=/ s|=.*|=${OPENSSLBASE}|' ${WRKSRC}/Makefile
-.if ${ARCH} == "amd64"
 	@${REINPLACE_CMD} -e '/^CFLAGS=/ s| -m32||' ${WRKSRC}/Makefile
-.endif
 
 do-install:
 	${INSTALL_PROGRAM} ${BIN_FILES:C|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list