Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= metis4 |
4 |
PORTNAME= metis4 |
5 |
PORTVERSION= 4.0.3 |
5 |
PORTVERSION= 4.0.3 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= math |
7 |
CATEGORIES= math |
8 |
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/ |
8 |
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/ |
9 |
DISTNAME= metis-${PORTVERSION} |
9 |
DISTNAME= metis-${PORTVERSION} |
Lines 34-51
Link Here
|
34 |
PICFLAG?= -fpic |
34 |
PICFLAG?= -fpic |
35 |
.endif |
35 |
.endif |
36 |
|
36 |
|
37 |
post-patch: |
|
|
38 |
${CP} -R ${WRKSRC} ${WRKSRC}_SHARED |
39 |
|
40 |
do-build: |
37 |
do-build: |
41 |
@cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} \ |
38 |
@cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} \ |
42 |
COPTIONS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" \ |
39 |
COPTIONS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" \ |
43 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} |
40 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} |
44 |
@cd ${WRKSRC}_SHARED ; ${SETENV} ${MAKE_ENV} \ |
|
|
45 |
COPTIONS="${CFLAGS} ${PICFLAG}" LDOPTIONS="${LDFLAGS} ${PICFLAG}" \ |
46 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} ; \ |
47 |
${LD} -Bshareable -o libmetis.so.1 -x -soname libmetis.so.1 \ |
48 |
--whole-archive libmetis.a --no-whole-archive |
49 |
|
41 |
|
50 |
check regression-test test: build |
42 |
check regression-test test: build |
51 |
cd ${WRKSRC}/Graphs ; ./mtest 4elt.graph |
43 |
cd ${WRKSRC}/Graphs ; ./mtest 4elt.graph |
Lines 52-63
Link Here
|
52 |
|
44 |
|
53 |
do-install: |
45 |
do-install: |
54 |
cd ${WRKSRC} ; ${INSTALL_PROGRAM} ${PROGRAMS} ${STAGEDIR}${PREFIX}/bin |
46 |
cd ${WRKSRC} ; ${INSTALL_PROGRAM} ${PROGRAMS} ${STAGEDIR}${PREFIX}/bin |
55 |
@${MKDIR} ${STAGEDIR}${PREFIX}/include/metis |
47 |
@${MKDIR} ${STAGEDIR}${PREFIX}/include/metis4 |
56 |
${INSTALL_DATA} ${WRKSRC}/Lib/*.h ${STAGEDIR}${PREFIX}/include/metis |
48 |
${INSTALL_DATA} ${WRKSRC}/Lib/*.h ${STAGEDIR}${PREFIX}/include/metis4 |
57 |
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${STAGEDIR}${PREFIX}/lib |
49 |
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${STAGEDIR}${PREFIX}/lib/libmetis4.a |
58 |
${INSTALL_DATA} ${WRKSRC}_SHARED/libmetis.so.1 ${STAGEDIR}${PREFIX}/lib |
|
|
59 |
${LN} -sf libmetis.so.1 ${STAGEDIR}${PREFIX}/lib/libmetis.so |
60 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmetis.so |
61 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
50 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
62 |
${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${STAGEDIR}${DOCSDIR} |
51 |
${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${STAGEDIR}${DOCSDIR} |
63 |
|
52 |
|