aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-09-15 20:23:19 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-09-15 20:23:19 +0800
commit01270104f79059abbc51195e1d74c9db41ae948b (patch)
tree9917c53caa14f6d666890b9761d0bc19c0fa21fe /security
parent92d7256db6144c5f697bc0c50e977daf7acac2ce (diff)
downloadfreebsd-ports-gnome-01270104f79059abbc51195e1d74c9db41ae948b.tar.gz
freebsd-ports-gnome-01270104f79059abbc51195e1d74c9db41ae948b.tar.zst
freebsd-ports-gnome-01270104f79059abbc51195e1d74c9db41ae948b.zip
- 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)
Diffstat (limited to 'security')
-rw-r--r--security/chntpw/Makefile12
1 files changed, 2 insertions, 10 deletions
diff --git a/security/chntpw/Makefile b/security/chntpw/Makefile
index c02a7e7f9db0..a8cf72f131dc 100644
--- a/security/chntpw/Makefile
+++ b/security/chntpw/Makefile
@@ -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>