aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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