diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-05 07:46:52 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-05 07:46:52 +0800 |
commit | 73941d6bd5b9c69e49d3a407953bfda14d957355 (patch) | |
tree | f4aa1e809f7ffc1ee1c2b39a9df3d26d36f980ed /biology | |
parent | f752662bec27fe882ebf132dd71d39f8c0eec656 (diff) | |
download | freebsd-ports-gnome-73941d6bd5b9c69e49d3a407953bfda14d957355.tar.gz freebsd-ports-gnome-73941d6bd5b9c69e49d3a407953bfda14d957355.tar.zst freebsd-ports-gnome-73941d6bd5b9c69e49d3a407953bfda14d957355.zip |
Remove NOPORTDOCS and NOPORTEXAMPLES from unstaged ports. Stage a couple while
we're here. Remove any other references to NOPORT*.
Approved by: portmgr (blanket for modernization)
Diffstat (limited to 'biology')
-rw-r--r-- | biology/garlic/Makefile | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/biology/garlic/Makefile b/biology/garlic/Makefile index c59284dcd0fd..3579c61f84c0 100644 --- a/biology/garlic/Makefile +++ b/biology/garlic/Makefile @@ -18,38 +18,36 @@ USES= gmake USE_XORG= x11 ALL_TARGET= # empty -.if defined(WITH_OPTIMIZED_FLAGS) +OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_CFLAGS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double .if (${ARCH} == "i386") CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 .endif # i386 .endif -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ;\ s|%%CC%%|${CC}|g ; \ s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Makefile -.if !defined(WITH_OPTIMIZED_FLAGS) - @${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes." -.endif do-install: - ${MKDIR} ${DATADIR} - ${INSTALL_PROGRAM} ${WRKSRC}/garlic ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/.garlicrc ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/residues.pdb ${DATADIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/*.pdb ${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/*.script ${EXAMPLESDIR} - @${MKDIR} ${DOCSDIR} - @${MKDIR} ${WRKDIR}/doc - @(cd ${WRKDIR}/doc ; ${TAR} xfz ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} ) - @${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \ - ${TAR} -C ${DOCSDIR} -xf - - @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} - @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} -.endif + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/garlic ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/.garlicrc ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/residues.pdb ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/*.pdb ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/*.script ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${WRKDIR}/doc + (cd ${WRKDIR}/doc ; ${TAR} xfz ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} ) + ${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \ + ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf - + ${FIND} ${STAGEDIR}${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} + ${FIND} ${STAGEDIR}${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} .include <bsd.port.mk> |