aboutsummaryrefslogtreecommitdiff
path: root/textproc/filepp
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-26 20:37:49 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-26 20:37:49 +0000
commit98ecf04adc218109958379b49fd18dfca31d297e (patch)
tree59ae565ab3d4f00668ad2e6073c0fe4203da0280 /textproc/filepp
parent8d08190886bf364ea4c72dfcb95da010ea278c04 (diff)
downloadports-98ecf04adc218109958379b49fd18dfca31d297e.tar.gz
ports-98ecf04adc218109958379b49fd18dfca31d297e.zip
Convert to staging.
Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=341281
Diffstat (limited to 'textproc/filepp')
-rw-r--r--textproc/filepp/Makefile8
-rw-r--r--textproc/filepp/files/patch-Makefile.in19
-rw-r--r--textproc/filepp/pkg-plist1
3 files changed, 25 insertions, 3 deletions
diff --git a/textproc/filepp/Makefile b/textproc/filepp/Makefile
index 1a592b5b64de..340ab96d4383 100644
--- a/textproc/filepp/Makefile
+++ b/textproc/filepp/Makefile
@@ -9,11 +9,13 @@ MASTER_SITES= http://www-users.york.ac.uk/~dm26/filepp/
MAINTAINER= ports@FreeBSD.org
COMMENT= A generic file preprocessor
-USES= perl5
+USES= perl5 shebangfix
GNU_CONFIGURE= yes
NO_BUILD= yes
+CONFIGURE_ENV= PERL=${PERL}
-MAN1= filepp.1
+post-patch:
+ @${REINPLACE_CMD} -e 's|$$(moduledir)|$$(DESTDIR)$$(moduledir)|' \
+ ${WRKSRC}/modules/*/Makefile.in
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/textproc/filepp/files/patch-Makefile.in b/textproc/filepp/files/patch-Makefile.in
new file mode 100644
index 000000000000..8095ab5ca556
--- /dev/null
+++ b/textproc/filepp/files/patch-Makefile.in
@@ -0,0 +1,19 @@
+--- ./Makefile.in.orig 2014-01-26 20:31:47.000000000 +0000
++++ ./Makefile.in 2014-01-26 20:32:23.000000000 +0000
+@@ -130,11 +130,11 @@
+
+ # installation
+ install: $(FILEPP) $(FILEPPMAN)
+- @$(MKDIR) $(bindir)
+- $(INSTALL) $(FILEPP) $(bindir)
+- @$(MKDIR) $(mandir)/man1
+- $(INSTALL) -m 644 $(FILEPPMAN) $(mandir)/man1
+- $(MKDIR) $(moduledir)
++ @$(MKDIR) $(DESTDIR)$(bindir)
++ $(INSTALL) $(FILEPP) $(DESTDIR)$(bindir)
++ @$(MKDIR) $(DESTDIR)$(mandir)/man1
++ $(INSTALL) -m 644 $(FILEPPMAN) $(DESTDIR)$(mandir)/man1
++ $(MKDIR) $(DESTDIR)$(moduledir)
+ $(MAKE) dirmake DIRECTORIES="$(module_subdirs)" TARGET=install
+
+ # distribution
diff --git a/textproc/filepp/pkg-plist b/textproc/filepp/pkg-plist
index 014abbb3fa43..eb0b3fda7d90 100644
--- a/textproc/filepp/pkg-plist
+++ b/textproc/filepp/pkg-plist
@@ -1,4 +1,5 @@
bin/filepp
+man/man1/filepp.1.gz
%%DATADIR%%/modules/bigdef.pm
%%DATADIR%%/modules/bigfunc.pm
%%DATADIR%%/modules/blc.pm