Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= glpk |
8 |
PORTNAME= glpk |
9 |
PORTVERSION= 4.21 |
9 |
PORTVERSION= 4.24 |
10 |
CATEGORIES= math |
10 |
CATEGORIES= math |
11 |
MASTER_SITES= ${MASTER_SITE_GNU} |
11 |
MASTER_SITES= ${MASTER_SITE_GNU} |
12 |
MASTER_SITE_SUBDIR= glpk |
12 |
MASTER_SITE_SUBDIR= glpk |
Lines 23-33
Link Here
|
23 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
24 |
CFLAGS+= -trigraphs |
24 |
CFLAGS+= -trigraphs |
25 |
|
25 |
|
|
|
26 |
GMPL_H= glpavl.h glpdmp.h glplib.h glpmpl.h glprng.h glpstd.h |
27 |
GMPLDIR= ${LOCALBASE}/include/gmpl |
28 |
|
26 |
.if !defined(NOPORTDOCS) |
29 |
.if !defined(NOPORTDOCS) |
27 |
PORTDOCS= bench.txt bench1.txt glpk.ps glpk_faq.txt gmpl.ps opb.txt |
30 |
PORTDOCS= bench.txt bench1.txt glpk.ps glpk_faq.txt gmpl.ps opb.txt |
28 |
.endif |
31 |
.endif |
29 |
|
32 |
|
30 |
post-install: |
33 |
post-install: |
|
|
34 |
@${MKDIR} ${GMPLDIR} |
35 |
for incfile in ${GMPL_H} ; do \ |
36 |
${INSTALL_DATA} ${WRKSRC}/include/$${incfile} ${GMPLDIR} ; \ |
37 |
done |
38 |
|
31 |
.if !defined(NOPORTDOCS) |
39 |
.if !defined(NOPORTDOCS) |
32 |
@${MKDIR} ${DOCSDIR} |
40 |
@${MKDIR} ${DOCSDIR} |
33 |
for docfile in ${PORTDOCS} ; do \ |
41 |
for docfile in ${PORTDOCS} ; do \ |
Lines 35-44
Link Here
|
35 |
done |
43 |
done |
36 |
.endif |
44 |
.endif |
37 |
|
45 |
|
38 |
.include <bsd.port.pre.mk> |
46 |
.include <bsd.port.mk> |
39 |
|
|
|
40 |
.if ${ARCH} == "amd64" |
41 |
CFLAGS+= -fPIC |
42 |
.endif |
43 |
|
44 |
.include <bsd.port.post.mk> |