aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ltxml/Makefile
blob: 6cc346dce9da883d4194ff60eff295158434c581 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    LT XML
# Date created:     20 Oct 2000
# Whom:         Samuel Tardieu <sam@inf.enst.fr>
#
# $FreeBSD$
#

PORTNAME=   ltxml
PORTVERSION=    1.2.6
CATEGORIES= textproc
MASTER_SITES=   ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/

MAINTAINER= ports@FreeBSD.org
COMMENT=    XML Toolkit

WRKSRC=     ${WRKDIR}/${DISTNAME}/XML

USE_PERL5=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-zlib=/usr --enable-multi-byte
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

MAN1=       ltxml.1 xmlnorm.1 pesis.1 sgcount.1 sggrep.1 sgmlsb.1 \
        sgmlseg.1 sgmltoken.1 sgmltrans.1 sgrpg.1 textonly.1 \
        unknit.1 sgsort.1 nslwhere.1 knit.1 nslshowddb.1 getindex.1
MAN5=       ltxml-query.5

PROGRAMS=   getindex intersect knit nslshowddb nslwhere pesis sgcount \
        sggrep sgmlsb sgmlseg sgmltrans sgrpg sgsort simple simpleq \
        textonly unknit xmlnorm

OPTIONS=    OPTIMIZED_CFLAGS "Extra optimizations" off

.include <bsd.port.pre.mk>

.ifdef WITH_OPTIMIZED_CFLAGS
CFLAGS+=    -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations -O3
.endif

post-install:
.for file in ${PROGRAMS:S/sgmlseg//}
    ${STRIP_CMD} ${PREFIX}/bin/${file}
.endfor

post-patch:
    @${PERL} -pi -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \
         s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure

.include <bsd.port.post.mk>