2003-07-28 08:38:37 +02:00
|
|
|
# New ports collection makefile for: garlic
|
|
|
|
# Date created: 28 July 2003
|
|
|
|
# Whom: maho@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= garlic
|
2011-05-11 07:55:27 +02:00
|
|
|
PORTVERSION= 1.6
|
2003-07-28 08:38:37 +02:00
|
|
|
CATEGORIES= biology
|
2011-05-11 07:55:27 +02:00
|
|
|
MASTER_SITES= http://www.zucic.org/sources/garlic-${PORTVERSION}/
|
2003-07-28 08:38:37 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DISTFILES+= ${DISTNAME}-doc${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= maho@FreeBSD.org
|
2012-07-25 08:32:06 +02:00
|
|
|
COMMENT= Molecular viewer, editor, and visualization program
|
2003-07-28 08:38:37 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-03-24 14:03:55 +01:00
|
|
|
USE_XORG= x11
|
2004-05-06 21:49:54 +02:00
|
|
|
ALL_TARGET= # empty
|
2003-07-28 08:38:37 +02:00
|
|
|
|
|
|
|
.if defined(WITH_OPTIMIZED_FLAGS)
|
|
|
|
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double
|
2006-03-15 09:10:49 +01:00
|
|
|
.if (${ARCH} == "i386")
|
2003-12-28 09:02:14 +01:00
|
|
|
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3
|
2003-07-28 08:38:37 +02:00
|
|
|
.endif # i386
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ;\
|
2003-07-28 08:38:37 +02:00
|
|
|
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
|
2003-12-28 09:02:14 +01:00
|
|
|
@(cd ${WRKDIR}/doc ; ${TAR} xfz ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} )
|
2003-07-28 08:38:37 +02:00
|
|
|
@${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \
|
|
|
|
${TAR} -C ${DOCSDIR} -xf -
|
|
|
|
@${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
|
|
@${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|