mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- 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)
This commit is contained in:
parent
8dddf1cd08
commit
3a8ea1224e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396956
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user