aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-02-08 19:20:10 +0800
committerleeym <leeym@FreeBSD.org>2004-02-08 19:20:10 +0800
commitad91ce974531875f9913bb3af40dc3010e0a279f (patch)
tree4fc2a06ab3a085e621823f13cc887d5f2f39972b /textproc
parent970dc6b901a650d5ddefc0caa974df1ef5af1de3 (diff)
downloadfreebsd-ports-gnome-ad91ce974531875f9913bb3af40dc3010e0a279f.tar.gz
freebsd-ports-gnome-ad91ce974531875f9913bb3af40dc3010e0a279f.tar.zst
freebsd-ports-gnome-ad91ce974531875f9913bb3af40dc3010e0a279f.zip
add USE_GCC=2.95 and unbreak this port.
utilize PORTDOCS.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/sp/Makefile29
-rw-r--r--textproc/sp/pkg-plist22
2 files changed, 17 insertions, 34 deletions
diff --git a/textproc/sp/Makefile b/textproc/sp/Makefile
index cc59acd9b38c..82635e05eac2 100644
--- a/textproc/sp/Makefile
+++ b/textproc/sp/Makefile
@@ -13,24 +13,29 @@ MASTER_SITES= ftp://ftp.jclark.com/pub/sp/
MAINTAINER= ports@FreeBSD.org
COMMENT= An object-oriented toolkit for SGML parsing and entity management
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 501000
-BROKEN= "Does not compile"
-.endif
-
.if ${MACHINE_ARCH} == sparc64
BROKEN= does not compile on ${MACHINE_ARCH}
.endif
USE_SUBMAKE= yes
INSTALLS_SHLIB= yes
+USE_GCC= 2.95
+USE_REINPLACE= yes
+PORTDOCS= Makefile archform.htm build.htm catalog catalog.htm \
+ charset.htm features.htm generic.htm ideas.htm index.htm \
+ new.htm nsgmls.htm sgmldecl.htm sgmlnorm.htm sgmlsout.htm \
+ spam.htm spent.htm sx.htm sysdecl.htm sysid.htm xml.htm
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,=/usr/local,=${PREFIX},g' ${WRKSRC}/Makefile*
post-install:
- $(MKDIR) $(PREFIX)/include/sp
- $(MKDIR) $(PREFIX)/share/doc/sp
- $(RM) -f $(WRKSRC)/include/*.orig
- for file in $(WRKSRC)/include/*;do $(INSTALL_DATA) $$file $(PREFIX)/include/sp;done
- for file in $(WRKSRC)/doc/*;do $(INSTALL_DATA) $$file $(PREFIX)/share/doc/sp;done
+ ${MKDIR} ${PREFIX}/include/sp
+ ${RM} -f ${WRKSRC}/include/*.orig
+ for f in ${WRKSRC}/include/*;do ${INSTALL_DATA} $$f ${PREFIX}/include/sp;done
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/textproc/sp/pkg-plist b/textproc/sp/pkg-plist
index 65a9c3711ee0..ea55cf09db27 100644
--- a/textproc/sp/pkg-plist
+++ b/textproc/sp/pkg-plist
@@ -142,26 +142,4 @@ include/sp/xnew.h
lib/libsp.a
lib/libsp.so.1
@comment lib/libsp.so.1.4
-share/doc/sp/Makefile
-share/doc/sp/archform.htm
-share/doc/sp/build.htm
-share/doc/sp/catalog
-share/doc/sp/catalog.htm
-share/doc/sp/charset.htm
-share/doc/sp/features.htm
-share/doc/sp/generic.htm
-share/doc/sp/ideas.htm
-share/doc/sp/index.htm
-share/doc/sp/new.htm
-share/doc/sp/nsgmls.htm
-share/doc/sp/sgmldecl.htm
-share/doc/sp/sgmlnorm.htm
-share/doc/sp/sgmlsout.htm
-share/doc/sp/spam.htm
-share/doc/sp/spent.htm
-share/doc/sp/sx.htm
-share/doc/sp/sysdecl.htm
-share/doc/sp/sysid.htm
-share/doc/sp/xml.htm
@dirrm include/sp
-@dirrm share/doc/sp