aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--biology/mopac/Makefile13
-rw-r--r--biology/mopac/pkg-plist18
2 files changed, 19 insertions, 12 deletions
diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile
index 71187b3240cd..6a48c12db050 100644
--- a/biology/mopac/Makefile
+++ b/biology/mopac/Makefile
@@ -10,23 +10,28 @@ PORTVERSION= 7.${MOPAC_SUBVERSION}
PORTEPOCH= 1
CATEGORIES= biology
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= mopac7
+MASTER_SITE_SUBDIR= mopac7
DISTNAME= mopac7-${MOPAC_SUBVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Semi-empirical (MNDO, etc.) molecular orbital calculation
-BUILD_DEPENDS= f2c:${PORTSDIR}/lang/f2c
-LIB_DEPENDS= f2c:${PORTSDIR}/lang/f2c
+BUILD_DEPENDS= f2c:${PORTSDIR}/lang/f2c
+LIB_DEPENDS= f2c:${PORTSDIR}/lang/f2c
MOPAC_SUBVERSION= 1.10
WRKSRC= ${WRKDIR}/mopac7-${MOPAC_SUBVERSION}
-GNU_CONFIGURE= yes
+GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ENV+= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+post-patch:
+ @${REINPLACE_CMD} -e \
+ "s,pkgconfigdir = .*,pkgconfigdir = $$\{exec_prefix\}/libdata/pkgconfig," \
+ ${WRKSRC}/Makefile.in
+
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/run_mopac7 ${PREFIX}/bin/mopac7
.if !defined(NOPORTDOCS)
diff --git a/biology/mopac/pkg-plist b/biology/mopac/pkg-plist
index 1459d9f32fec..43e463b4fd1c 100644
--- a/biology/mopac/pkg-plist
+++ b/biology/mopac/pkg-plist
@@ -1,17 +1,18 @@
bin/mopac7
include/mopac7/libmopac7.h
-lib/libmopac7.so.0
-lib/libmopac7.la
lib/libmopac7.a
-lib/pkgconfig/libmopac7.pc
+lib/libmopac7.la
+lib/libmopac7.so
+lib/libmopac7.so.0
+libdata/pkgconfig/libmopac7.pc
%%PORTDOCS%%%%EXAMPLESDIR%%/test/1scf.dat
%%PORTDOCS%%%%EXAMPLESDIR%%/test/elements.dat
-%%PORTDOCS%%%%EXAMPLESDIR%%/test/force.dat
+%%PORTDOCS%%%%EXAMPLESDIR%%/test/force.dat
%%PORTDOCS%%%%EXAMPLESDIR%%/test/geometry.dat
-%%PORTDOCS%%%%EXAMPLESDIR%%/test/keys.dat
-%%PORTDOCS%%%%EXAMPLESDIR%%/test/nch34+.dat
-%%PORTDOCS%%%%EXAMPLESDIR%%/test/oldgeo.dat
-%%PORTDOCS%%%%EXAMPLESDIR%%/test/paras.dat
+%%PORTDOCS%%%%EXAMPLESDIR%%/test/keys.dat
+%%PORTDOCS%%%%EXAMPLESDIR%%/test/nch34+.dat
+%%PORTDOCS%%%%EXAMPLESDIR%%/test/oldgeo.dat
+%%PORTDOCS%%%%EXAMPLESDIR%%/test/paras.dat
%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_cos.dat
%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_ef_.dat
%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_gre.dat
@@ -22,3 +23,4 @@ lib/pkgconfig/libmopac7.pc
%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_pol.OUT
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/test
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+@dirrm include/mopac7