1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/science/openbabel/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

46 lines
1.0 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: openbabel
# Date created: Jan 5, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= openbabel
PORTVERSION= 2.1.0
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Chemistry file translation program
USE_GCC= 3.4+
USE_GNOME= gnomehack gnometarget libxml2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAN1= obchiral.1 obfit.1 obgrep.1 obprop.1 obrotate.1 openbabel.1
PLIST_SUB= VERSION="${PORTVERSION}"
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= does not compile on ia64 (gcc internal error)
.endif
post-extract:
@${LN} -sf babel.1 ${WRKSRC}/doc/openbabel.1
post-patch:
@${REINPLACE_CMD} -e \
'/test/s| == | = |g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|= babel|= openbabel|g' ${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e 's| babel| openbabel|g ; \
s|"babel|"openbabel|g' ${WRKSRC}/doc/o*.1
@${REINPLACE_CMD} -e 's|babel$$(EXEEXT)|openbabel$$(EXEEXT)|g' ${WRKSRC}/tools/Makefile.in
.include <bsd.port.post.mk>