mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
805a54b025
- Strip library
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mopac
|
|
PORTVERSION= 7.${MOPAC_SUBVERSION}
|
|
PORTREVISION= 3
|
|
PORTEPOCH= 1
|
|
CATEGORIES= biology
|
|
MASTER_SITES= SF/${PORTNAME}7/${PORTNAME}7/${PORTNAME}7-1.00
|
|
DISTNAME= ${PORTNAME}7-${MOPAC_SUBVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Semi-empirical (MNDO, etc.) molecular orbital calculation
|
|
|
|
LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c
|
|
|
|
USES= gmake
|
|
USE_AUTOTOOLS= aclocal automake autoconf libtool
|
|
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
|
|
AUTOMAKE_ARGS= --add-missing --copy
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
MOPAC_SUBVERSION= 1.11
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/pkgconfig/s|$$(libdir)|$$(prefix)/libdata|g' \
|
|
${WRKSRC}/Makefile.am
|
|
@${REINPLACE_CMD} -e '/usage/s|run_||g' \
|
|
-e 's|./src/mopac7|${PREFIX}/libexec/mopac7|g' \
|
|
${WRKSRC}/run_${PORTNAME}7
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run_${PORTNAME}7 \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}7
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}7 \
|
|
${STAGEDIR}${PREFIX}/libexec/${PORTNAME}7
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/test
|
|
${INSTALL_DATA} ${WRKSRC}/tests/*.dat ${STAGEDIR}${EXAMPLESDIR}/test
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmopac7.so.0
|
|
|
|
.include <bsd.port.mk>
|