1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/biology/garlic/Makefile
John Marino dbb41fc2bf biology/garlic: Stage properly to unbreak
The main problem was the WRKDIR is not within STAGEDIR.  Fix this while
moving all the directory creation steps into one.  While here
set TAR to use switches as outlined in its man page.

Also, the permission setting in stagedir is not necessary, so it's simply
been removed.
2014-07-17 10:13:06 +00:00

53 lines
1.6 KiB
Makefile

# Created by: maho@FreeBSD.org
# $FreeBSD$
PORTNAME= garlic
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= biology
MASTER_SITES= http://www.zucic.org/sources/garlic-${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= maho@FreeBSD.org
COMMENT= Molecular viewer, editor, and visualization program
USES= gmake
USE_XORG= x11
ALL_TARGET= # empty
OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_CFLAGS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= ${DISTNAME}-doc${EXTRACT_SUFX}
.endif
.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
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ;\
s|%%CC%%|${CC}|g ; \
s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${EXAMPLESDIR} \
${STAGEDIR}${DOCSDIR} ${WRKDIR}/doc
${INSTALL_PROGRAM} ${WRKSRC}/garlic ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/.garlicrc ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/residues.pdb ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.pdb ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/*.script ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKDIR}/doc ; \
${TAR} -xzf ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} )
${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
.include <bsd.port.mk>