aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-06-30 23:42:24 +0800
committervanilla <vanilla@FreeBSD.org>2014-06-30 23:42:24 +0800
commitf2e828c229cf4f57f7b9a7d92511fc7fa6fe04d8 (patch)
tree16d07ab1108066d6b585321715581082746f91f7 /textproc
parent7834951314827ba8eaf09d5f179058470f79e585 (diff)
downloadfreebsd-ports-gnome-f2e828c229cf4f57f7b9a7d92511fc7fa6fe04d8.tar.gz
freebsd-ports-gnome-f2e828c229cf4f57f7b9a7d92511fc7fa6fe04d8.tar.zst
freebsd-ports-gnome-f2e828c229cf4f57f7b9a7d92511fc7fa6fe04d8.zip
Stagify.
Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/pcrs/Makefile7
-rw-r--r--textproc/pcrs/files/patch-Makefile.in25
2 files changed, 16 insertions, 16 deletions
diff --git a/textproc/pcrs/Makefile b/textproc/pcrs/Makefile
index a3faae6fa669..1e620da981d3 100644
--- a/textproc/pcrs/Makefile
+++ b/textproc/pcrs/Makefile
@@ -21,14 +21,13 @@ USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-MAN3= pcrs.3
PLIST_FILES= bin/pcrsed \
lib/libpcrs.a \
lib/libpcrs.so \
- lib/libpcrs.so.0
+ lib/libpcrs.so.0 \
+ man/man3/pcrs.3.gz
-NO_STAGE= yes
post-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pcrsed ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/pcrsed ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/textproc/pcrs/files/patch-Makefile.in b/textproc/pcrs/files/patch-Makefile.in
index c1a72e1a4734..7fe08000c319 100644
--- a/textproc/pcrs/files/patch-Makefile.in
+++ b/textproc/pcrs/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig Mon Mar 11 08:56:16 2002
-+++ Makefile.in Sun Nov 27 00:07:10 2005
-@@ -19,6 +19,7 @@
+--- Makefile.in.orig 2002-03-11 05:56:16.000000000 +0800
++++ Makefile.in 2014-06-30 23:39:01.951429627 +0800
+@@ -19,6 +19,7 @@ exec_prefix = @exec_prefix@
BINDIR = @bindir@
LIBDIR = @libdir@
@@ -8,7 +8,7 @@
MANDIR = @mandir@/man3
-@@ -47,6 +48,7 @@
+@@ -47,6 +48,7 @@ LIBS = @LIBS@
#############################################################################
CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -Wshadow -Wconversion -pedantic \
@@ -16,7 +16,7 @@
@PARANOID_FU@ -Wunreachable-code -Wmissing-prototypes \
-Waggregate-return -W -Wfloat-equal -Wsign-compare \
-Wwrite-strings
-@@ -66,29 +68,25 @@
+@@ -66,29 +68,25 @@ pcrsed@EXEEXT@: pcrs.@OBJEXT@
$(CC) $(CFLAGS) pcrsed.c pcrs.@OBJEXT@ -o pcrsed@EXEEXT@ $(LIBS)
shared: pcrs.@OBJEXT@
@@ -31,15 +31,16 @@
- $(INSTALL) -m 755 libpcrs.so.$(VERSION) $(LIBDIR)
- $(LN_S) -f libpcrs.so.$(VERSION) $(LIBDIR)/libpcrs.so
- $(INSTALL) -m 644 libpcrs.a $(LIBDIR)
-+ $(INSTALL) -m 755 libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib
-+ $(LN_S) -f libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib/libpcrs.so
-+ $(INSTALL) -m 644 libpcrs.a $(prefix)/lib
- $(INSTALL) -m 644 pcrs.3 $(MANDIR)
-
+- $(INSTALL) -m 644 pcrs.3 $(MANDIR)
+-
- if test "$(HAVE_GZIP)" = "yes"; then \
- gzip -f $(MANDIR)/pcrs.3; \
- fi
--
++ $(INSTALL) -m 755 libpcrs.so.$(VERSION_MAJOR) $(DESTDIR)$(prefix)/lib
++ $(LN_S) -f libpcrs.so.$(VERSION_MAJOR) $(DESTDIR)$(prefix)/lib/libpcrs.so
++ $(INSTALL) -m 644 libpcrs.a $(DESTDIR)$(prefix)/lib
++ $(INSTALL) -m 644 pcrs.3 $(DESTDIR)$(MANDIR)
+
@echo -e " ***************************************************\n" \
- "** Libraries have been installed in $(LIBDIR). \n" \
+ "** Libraries have been installed in $(prefix)/lib. \n" \
@@ -49,7 +50,7 @@
@if test -f pcrsed@EXEEXT@; then\
echo -e "\nRebuilding pcrsed to use the installed shared library"; \
- $(CC) $(CFLAGS) -L$(LIBDIR) pcrsed.c -o pcrsed@EXEEXT@ $(LIBS) -lpcrs; \
-+ $(CC) $(CFLAGS) -L$(prefix)/lib pcrsed.c -o pcrsed@EXEEXT@ $(LIBS) -lpcrs; \
++ $(CC) $(CFLAGS) -L$(DESTDIR)$(prefix)/lib pcrsed.c -o pcrsed@EXEEXT@ $(LIBS) -lpcrs; \
fi
clean: