aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--textproc/sgmls/Makefile11
-rw-r--r--textproc/sgmls/files/patch-Makefile31
-rw-r--r--textproc/sgmls/pkg-plist10
3 files changed, 36 insertions, 16 deletions
diff --git a/textproc/sgmls/Makefile b/textproc/sgmls/Makefile
index 06f3f168c254..7b5b11132afc 100644
--- a/textproc/sgmls/Makefile
+++ b/textproc/sgmls/Makefile
@@ -15,12 +15,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
HAS_CONFIGURE= yes
INSTALL_TARGET= install install.man
-MAN1= sgmls.1 sgmlsasp.1 rast.1
-
PROGS= sgmls sgmlsasp rast
-DOCS= ChangeLog INSTALL LICENSE NEWS README TODO
+PKGDOCS= ChangeLog INSTALL LICENSE NEWS README TODO
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/Makefile
@@ -33,9 +30,9 @@ post-build:
post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
- @-${MKDIR} ${DOCSDIR}
-.for f in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ @-${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PKGDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/textproc/sgmls/files/patch-Makefile b/textproc/sgmls/files/patch-Makefile
index 0917d64669bb..44922284b5b6 100644
--- a/textproc/sgmls/files/patch-Makefile
+++ b/textproc/sgmls/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig 2011-09-07 09:34:45.000000000 +0800
-+++ Makefile 2011-09-07 09:34:52.000000000 +0800
+--- Makefile.orig 1994-04-26 04:25:12.000000000 +0800
++++ Makefile 2014-06-11 20:24:14.438631971 +0800
@@ -15,7 +15,7 @@ MANDIR=$(PREFIX)/man/man$(MANEXT)
# Permissions mode to use for man pages.
MANMODE=444
@@ -9,3 +9,30 @@
PROFILE=
INCLUDE=
OPTIMIZE=-O
+@@ -143,20 +143,18 @@ lextabe.c: genlex
+ ./genlex >$@
+
+ install: $(PROGS)
+- -test -d $(BINDIR) || mkdir $(BINDIR)
++ -test -d $(DESTDIR)$(BINDIR) || mkdir $(DESTDIR)$(BINDIR)
+ for f in $(PROGS); do \
+- rm -f $(BINDIR)/$$f; \
+- cp $$f $(BINDIR)/$$f; \
+- chmod $(BINMODE) $(BINDIR)/$$f; \
++ cp $$f $(DESTDIR)$(BINDIR)/$$f; \
++ chmod $(BINMODE) $(DESTDIR)$(BINDIR)/$$f; \
+ done
+
+ install.man: $(MANPAGES)
+- -test -d $(MANDIR) || mkdir $(MANDIR)
++ -test -d $(DESTDIR)$(MANDIR) || mkdir $(DESTDIR)$(MANDIR)
+ for f in $(MANPAGES); do \
+ t=$(MANDIR)/`basename $$f .man`.$(MANEXT); \
+- rm -f $$t; \
+- cp $$f $$t; \
+- chmod $(MANMODE) $$t; \
++ cp $$f $(DESTDIR)$$t; \
++ chmod $(MANMODE) $(DESTDIR)$$t; \
+ done
+
+ clean:
diff --git a/textproc/sgmls/pkg-plist b/textproc/sgmls/pkg-plist
index 153ec6e04761..c3efa935609e 100644
--- a/textproc/sgmls/pkg-plist
+++ b/textproc/sgmls/pkg-plist
@@ -1,10 +1,6 @@
bin/rast
bin/sgmls
bin/sgmlsasp
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+man/man1/rast.1.gz
+man/man1/sgmls.1.gz
+man/man1/sgmlsasp.1.gz