Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ltxml |
8 |
PORTNAME= ltxml |
9 |
PORTVERSION= 1.2.5 |
9 |
PORTVERSION= 1.2.6 |
10 |
PORTREVISION= 3 |
|
|
11 |
CATEGORIES= textproc |
10 |
CATEGORIES= textproc |
12 |
MASTER_SITES= ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/ |
11 |
MASTER_SITES= ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/ |
13 |
|
12 |
|
Lines 20-25
Link Here
|
20 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
21 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ARGS= --with-zlib=/usr --enable-multi-byte |
21 |
CONFIGURE_ARGS= --with-zlib=/usr --enable-multi-byte |
|
|
22 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
23 |
|
23 |
|
24 |
MAN1= ltxml.1 xmlnorm.1 pesis.1 sgcount.1 sggrep.1 sgmlsb.1 \ |
24 |
MAN1= ltxml.1 xmlnorm.1 pesis.1 sgcount.1 sggrep.1 sgmlsb.1 \ |
25 |
sgmlseg.1 sgmltoken.1 sgmltrans.1 sgrpg.1 textonly.1 \ |
25 |
sgmlseg.1 sgmltoken.1 sgmltrans.1 sgrpg.1 textonly.1 \ |
Lines 30-42
Link Here
|
30 |
sggrep sgmlsb sgmlseg sgmltrans sgrpg sgsort simple simpleq \ |
30 |
sggrep sgmlsb sgmlseg sgmltrans sgrpg sgsort simple simpleq \ |
31 |
textonly unknit xmlnorm |
31 |
textonly unknit xmlnorm |
32 |
|
32 |
|
33 |
post-patch: |
33 |
.include <bsd.port.pre.mk> |
34 |
@${PERL} -pi -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \ |
34 |
.ifdef WITH_OPTIMIZED_CFLAGS |
35 |
s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure |
35 |
CFLAGS+= -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations -O3 |
|
|
36 |
.endif |
37 |
|
38 |
pre-everything:: |
39 |
.ifndef(WITH_OPTIMIZED_CFLAGS) |
40 |
@${ECHO_MSG} '===>' |
41 |
@${ECHO_MSG} '===> You can enable extra optimizations by defining WITH_O PTIMIZED_CFLAGS' |
42 |
@${ECHO_MSG} "===> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'" |
43 |
.endif |
36 |
|
44 |
|
37 |
post-install: |
45 |
post-install: |
38 |
.for file in ${PROGRAMS:S/sgmlseg//} |
46 |
.for file in ${PROGRAMS:S/sgmlseg//} |
39 |
${STRIP_CMD} ${PREFIX}/bin/${file} |
47 |
${STRIP_CMD} ${PREFIX}/bin/${file} |
40 |
.endfor |
48 |
.endfor |
41 |
|
49 |
|
42 |
.include <bsd.port.mk> |
50 |
post-patch: |
|
|
51 |
@${PERL} -pi -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \ |
52 |
s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure |
53 |
|
54 |
.include <bsd.port.post.mk> |