mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Stagify.
2: use options helper. Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
2b9653c763
commit
b90486d5d3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359875
@ -1,26 +1,28 @@
|
||||
# Created by: Martin Kammerhofer
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= perl2html
|
||||
PORTVERSION= 0.9.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc www
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
PORTNAME= perl2html
|
||||
PORTVERSION= 0.9.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc www
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= apps/www/converters
|
||||
|
||||
MAINTAINER= mkamm@gmx.net
|
||||
MAINTAINER= mkamm@gmx.net
|
||||
COMMENT= Perl sources to HTML converter
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USE_AUTOTOOLS= autoconf213
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
MAN1= perl2html.1
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for file in AUTHORS NEWS README
|
||||
${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
|
58
textproc/perl2html/files/patch-Makefile.in
Normal file
58
textproc/perl2html/files/patch-Makefile.in
Normal file
@ -0,0 +1,58 @@
|
||||
--- Makefile.in.orig 2000-05-03 01:14:04.000000000 +0800
|
||||
+++ Makefile.in 2014-06-30 23:46:37.906409781 +0800
|
||||
@@ -27,7 +27,7 @@ SHELL = /bin/sh
|
||||
# for gzip because otherwise the load on the web server
|
||||
# grows without having big benefits.
|
||||
# COMPRESSION = -DCOMPRESSION=4
|
||||
-COMPRESSION = -DCOMPRESSION=1
|
||||
+COMPRESSION ?= -DCOMPRESSION=1
|
||||
|
||||
# Dont change things beyond this line.
|
||||
TARGET = @PROJECT_NAME@
|
||||
@@ -59,7 +59,7 @@ srcdir = @srcdir@
|
||||
docdir = @DOCDIR@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
|
||||
-CFLAGS += -O2 -Wall
|
||||
+CFLAGS ?= -O2 -Wall
|
||||
ALL_CFLAGS = $(CFLAGS) -I$(srcdir) -I. $(COMPRESSION)
|
||||
|
||||
all: $(TARGET)
|
||||
@@ -70,24 +70,25 @@ $(TARGET): $(CONFIGIN) $(CONFIGS) $(LEXO
|
||||
$(LEXOUTPUT): $(CONFIGS) $(LEXSRCS) $(HDRS)
|
||||
$(LEX) $(LEXSRCS)
|
||||
|
||||
-install: $(TARGET) install-doc
|
||||
+install: $(TARGET)
|
||||
@echo "Installing" $(TARGET) "to" $(bindir)
|
||||
- -mkdir -p $(bindir)
|
||||
- $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
|
||||
+ -mkdir -p $(DESTDIR)$(bindir)
|
||||
+ $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
|
||||
+ -mkdir -p $(DESTDIR)$(man1dir)
|
||||
+ $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(DESTDIR)$(man1dir)/$(MANPAGE)
|
||||
|
||||
install-strip: $(TARGET) install-doc
|
||||
@echo "Installing" $(TARGET) "to" $(bindir)
|
||||
- -mkdir -p $(bindir)
|
||||
- $(INSTALL_PROGRAM) -s $(TARGET) $(bindir)/$(TARGET)
|
||||
+ -mkdir -p $(DESTDIR)$(bindir)
|
||||
+ $(INSTALL_PROGRAM) -s $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
|
||||
|
||||
install-doc:
|
||||
- -mkdir -p $(man1dir) $(docdir)
|
||||
- $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
|
||||
- $(INSTALL_DATA) $(srcdir)/AUTHORS $(docdir)/AUTHORS
|
||||
- $(INSTALL_DATA) $(srcdir)/COPYING $(docdir)/COPYING
|
||||
- $(INSTALL_DATA) $(srcdir)/NEWS $(docdir)/NEWS
|
||||
- $(INSTALL_DATA) $(srcdir)/README $(docdir)/README
|
||||
- $(INSTALL_DATA) $(srcdir)/$(LSM) $(docdir)/$(LSM)
|
||||
+ -mkdir -p $(DESTDIR)$(docdir)
|
||||
+ $(INSTALL_DATA) $(srcdir)/AUTHORS $(DESTDIR)$(docdir)/AUTHORS
|
||||
+ $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(docdir)/COPYING
|
||||
+ $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(docdir)/NEWS
|
||||
+ $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(docdir)/README
|
||||
+ $(INSTALL_DATA) $(srcdir)/$(LSM) $(DESTDIR)$(docdir)/$(LSM)
|
||||
|
||||
uninstall:
|
||||
rm -f $(bindir)/$(TARGET)
|
@ -1,44 +0,0 @@
|
||||
--- Makefile.in.orig Sat Apr 15 17:16:42 2000
|
||||
+++ Makefile.in Sun Apr 23 15:58:22 2000
|
||||
@@ -27,7 +27,7 @@
|
||||
# for gzip because otherwise the load on the web server
|
||||
# grows without having big benefits.
|
||||
# COMPRESSION = -DCOMPRESSION=4
|
||||
-COMPRESSION = -DCOMPRESSION=1
|
||||
+COMPRESSION ?= -DCOMPRESSION=1
|
||||
|
||||
# Dont change things beyond this line.
|
||||
TARGET = @PROJECT_NAME@
|
||||
@@ -59,7 +59,7 @@
|
||||
docdir = @DOCDIR@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
|
||||
-CFLAGS += -O2 -Wall
|
||||
+CFLAGS ?= -O2 -Wall
|
||||
ALL_CFLAGS = $(CFLAGS) -I$(srcdir) -I. $(COMPRESSION)
|
||||
|
||||
all: $(TARGET)
|
||||
@@ -70,10 +70,12 @@
|
||||
$(LEXOUTPUT): $(CONFIGS) $(LEXSRCS) $(HDRS)
|
||||
$(LEX) $(LEXSRCS)
|
||||
|
||||
-install: $(TARGET) install-doc
|
||||
+install: $(TARGET)
|
||||
@echo "Installing" $(TARGET) "to" $(bindir)
|
||||
-mkdir -p $(bindir)
|
||||
$(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
|
||||
+ -mkdir -p $(man1dir)
|
||||
+ $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
|
||||
|
||||
install-strip: $(TARGET) install-doc
|
||||
@echo "Installing" $(TARGET) "to" $(bindir)
|
||||
@@ -81,8 +83,7 @@
|
||||
$(INSTALL_PROGRAM) -s $(TARGET) $(bindir)/$(TARGET)
|
||||
|
||||
install-doc:
|
||||
- -mkdir -p $(man1dir) $(docdir)
|
||||
- $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
|
||||
+ -mkdir -p $(docdir)
|
||||
$(INSTALL_DATA) $(srcdir)/AUTHORS $(docdir)/AUTHORS
|
||||
$(INSTALL_DATA) $(srcdir)/COPYING $(docdir)/COPYING
|
||||
$(INSTALL_DATA) $(srcdir)/NEWS $(docdir)/NEWS
|
@ -1,4 +1,5 @@
|
||||
bin/perl2html
|
||||
man/man1/perl2html.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
|
Loading…
Reference in New Issue
Block a user