Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2015 12:23:20 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396956 - head/security/chntpw
Message-ID:  <201509151223.t8FCNKik065737@repo.freebsd.org>

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



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