1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/textproc/opensp/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

72 lines
1.9 KiB
Makefile

# New ports collection makefile for: OpenSP
# Date created: Jan 6, 2003
# Whom: kuriyama
#
# $FreeBSD$
#
PORTNAME= OpenSP
PORTVERSION= 1.5
PORTREVISION= 6
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openjade
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= This package is a collection of SGML/XML tools called OpenSP
USE_GETTEXT= yes
USE_GMAKE= YES
USE_ICONV= yes
USE_REINPLACE= YES
USE_AUTOTOOLS= libtool:15
USE_PERL5= yes
CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \
--datadir=${PREFIX}/share/sgml/openjade
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
MAN1= onsgmls.1 osgmlnorm.1 ospam.1 ospent.1 osx.1
DOC_FILES= archform.htm autoconf.htm build.htm catalog.htm charset.htm \
features.htm generic.htm ideas.htm index.htm new.htm \
nsgmls.htm sgmldecl.htm sgmlnorm.htm sgmlsout.htm spam.htm \
spcat.htm spent.htm sx.htm sysdecl.htm sysid.htm xml.htm \
xmlwarn.htm
DOC_FILES2= NEWS AUTHORS README \
releasenotes.html releasenotes.pdf releasenotes.ps
# Perhaps this better should be somewhere under ${PREFIX}/share/doc ?
DOCSDIR2= ${PREFIX}/share/sgml/openjade/doc/OpenSP
.include <bsd.port.pre.mk>
# This port cannot be CFLAGS safe, using optimizations such as
# 'march=-mpentium -Os' produces core dumps with certain input files
# Therefore, we'd better remove all machine optimizations and any -O
# other than -O{0,1,}. Idea taken from palm/prc-tools-gcc.
CPPFLAGS:= -O ${CFLAGS:N-O*:N-m*}
pre-install:
@${REINPLACE_CMD} -e \
's|install-man install-pkgdocDATA|install-man|g' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}
.endfor
@${MKDIR} ${DOCSDIR2}
.for doc in ${DOC_FILES2}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR2}
.endfor
.endif
.include <bsd.port.post.mk>