aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-05-19 08:43:17 +0800
committerpetef <petef@FreeBSD.org>2003-05-19 08:43:17 +0800
commit9d459086014b2da1e3438ff3ff41e055838a1b26 (patch)
tree7466a9d75a8e814d4cc081e42f9238b5402158d0 /textproc
parent7c13855e9aeff3254cfe7c366b1d074ed3cfd64b (diff)
downloadfreebsd-ports-gnome-9d459086014b2da1e3438ff3ff41e055838a1b26.tar.gz
freebsd-ports-gnome-9d459086014b2da1e3438ff3ff41e055838a1b26.tar.zst
freebsd-ports-gnome-9d459086014b2da1e3438ff3ff41e055838a1b26.zip
- unbreak
- just set WRKSRC, not {CONFIGURE,BUILD,INSTALL}_WRKSRC - respect CFLAGS/CXXFLAGS - use a .for loop to strip files after install - bump PORTREVISION PR: 52141 Submitted by: Ports Fury
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ltxml/Makefile59
1 files changed, 22 insertions, 37 deletions
diff --git a/textproc/ltxml/Makefile b/textproc/ltxml/Makefile
index 91e8affe87b5..5216b2abbb89 100644
--- a/textproc/ltxml/Makefile
+++ b/textproc/ltxml/Makefile
@@ -7,51 +7,36 @@
PORTNAME= ltxml
PORTVERSION= 1.2.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/
MAINTAINER= ports@FreeBSD.org
COMMENT= XML Toolkit
-.include <bsd.port.pre.mk>
+WRKSRC= ${WRKDIR}/${DISTNAME}/XML
-.if ${OSVERSION} >= 500113
-BROKEN= "Installation fails"
-.endif
+USE_PERL5= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-zlib=/usr --enable-multi-byte
-CONFIGURE_WRKSRC= ${WRKSRC}/XML
-BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
-INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
+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
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-zlib=/usr --enable-multi-byte
-USE_GMAKE= yes
+PROGRAMS= getindex intersect knit nslshowddb nslwhere pesis sgcount \
+ sggrep sgmlsb sgmlseg sgmltrans sgrpg sgsort simple simpleq \
+ textonly unknit xmlnorm
+
+post-patch:
+ @${PERL} -pi -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \
+ s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure
post-install:
- ${STRIP_CMD} ${PREFIX}/bin/unknit
- ${STRIP_CMD} ${PREFIX}/bin/sgmlsb
- ${STRIP_CMD} ${PREFIX}/bin/simple
- ${STRIP_CMD} ${PREFIX}/bin/textonly
- ${STRIP_CMD} ${PREFIX}/bin/simpleq
- ${STRIP_CMD} ${PREFIX}/bin/sggrep
- ${STRIP_CMD} ${PREFIX}/bin/sgcount
- ${STRIP_CMD} ${PREFIX}/bin/sgmltrans
- ${STRIP_CMD} ${PREFIX}/bin/getindex
- ${STRIP_CMD} ${PREFIX}/bin/sgsort
- ${STRIP_CMD} ${PREFIX}/bin/xmlnorm
- ${STRIP_CMD} ${PREFIX}/bin/knit
- ${STRIP_CMD} ${PREFIX}/bin/nslwhere
- ${STRIP_CMD} ${PREFIX}/bin/pesis
- ${STRIP_CMD} ${PREFIX}/bin/sgrpg
- ${STRIP_CMD} ${PREFIX}/bin/nslshowddb
- ${STRIP_CMD} ${PREFIX}/bin/intersect
-
-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
-
-.include <bsd.port.post.mk>
+.for file in ${PROGRAMS:S/sgmlseg//}
+ ${STRIP_CMD} ${PREFIX}/bin/${file}
+.endfor
+
+.include <bsd.port.mk>