aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ltxml/Makefile
blob: fd088472f12d1f145c483abeeaae93f98ea7580d (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
# Created by: Samuel Tardieu <sam@inf.enst.fr>
# $FreeBSD$

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    XML Toolkit

LICENSE=    GPLv2

OPTIONS_DEFINE= OPTIMIZED_CFLAGS

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

USES=       gmake perl5
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-zlib=/usr --datadir=${STAGEDIR}${PREFIX}/lib/ltxml12

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+=    -Wuninitialized -ffast-math -finline-functions \
        -fomit-frame-pointer -fexpensive-optimizations -O3
.endif

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \
         s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|@prefix@|${STAGEDIR}${PREFIX}|' \
        ${WRKSRC}/src/Makefile.sub.in

.include <bsd.port.post.mk>