blob: 8d3710f7df1d5e51aa592f0045e22dd8ecf222ae (
plain)
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
51
52
53
54
55
|
# New ports collection makefile for: OpenJade
# Date created: May 19, 2000
# Whom: kuriyama
#
# $FreeBSD$
#
PORTNAME= openjade
PORTVERSION= 1.3.3p1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/p/-pre/}
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Object-oriented SGML/XML parser toolkit and DSSSL engine
LIB_DEPENDS= osp.5:${PORTSDIR}/textproc/opensp
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \
--datadir=${DATADIR}
INSTALL_TARGET= install install-man
PLIST_SUB= XMLCATMGR=${XMLCATMGR} \
CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
MAN1= openjade.1
DATADIR= ${PREFIX}/share/sgml/openjade
post-install:
@${CAT} ${PLIST} | \
${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} | \
${AWK} '/^@comment INSTALL_DATA:/ \
{printf "if ! ${GREP} -q \"%s\" ${PLIST}; then ${ECHO_CMD} \"%s\" >> %s; fi; %s %s/%s %s/%s\n", \
$$4, $$4, "${TMPPLIST}", "${INSTALL_DATA}", \
"${WRKSRC}", $$3, "${PREFIX}", $$4}' | \
${SH}
@${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG openjade/catalog
.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*}
.include <bsd.port.post.mk>
|