When there is a do-install target, do not use a post-install target, do

everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold
2016-07-19 11:04:13 +00:00
parent 74d26774f8
commit f899c758a6
174 changed files with 121 additions and 326 deletions
+3 -7
View File
@@ -28,8 +28,6 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e "s/gcc/${CC}/g" \
${WRKSRC}/j3d-core/src/native/ogl/build-freebsd.xml
@@ -41,12 +39,12 @@ do-build:
-Dis${OPSYS}=yes \
-Dports.localbase=${LOCALBASE} \
jar-opt
.if ${PORT_OPTIONS:MDOCS}
post-build-DOCS-on:
cd ${WRKSRC}/j3d-core \
&& ${SETENV} ${MAKE_ENV} ${ANT} -Dbuild.type=fcs \
-Dis${OPSYS}=yes \
docs-public
.endif
do-install:
@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/ext
@@ -60,10 +58,8 @@ do-install:
${WRKSRC}/j3d-core/build/default/opt/native/libj3dcore-ogl.so \
${STAGEDIR}${JAVA_HOME}/jre/lib/${ARCH}
post-install:
.if ${PORT_OPTIONS:MDOCS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${DOCSSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>