mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Stagify.
Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
82d49f7eb2
commit
8599e9c93f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359868
@ -21,14 +21,13 @@ USE_LDCONFIG= yes
|
|||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
MAN3= pcrs.3
|
|
||||||
PLIST_FILES= bin/pcrsed \
|
PLIST_FILES= bin/pcrsed \
|
||||||
lib/libpcrs.a \
|
lib/libpcrs.a \
|
||||||
lib/libpcrs.so \
|
lib/libpcrs.so \
|
||||||
lib/libpcrs.so.0
|
lib/libpcrs.so.0 \
|
||||||
|
man/man3/pcrs.3.gz
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-install:
|
post-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/pcrsed ${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/pcrsed ${STAGEDIR}${PREFIX}/bin
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- Makefile.in.orig Mon Mar 11 08:56:16 2002
|
--- Makefile.in.orig 2002-03-11 05:56:16.000000000 +0800
|
||||||
+++ Makefile.in Sun Nov 27 00:07:10 2005
|
+++ Makefile.in 2014-06-30 23:39:01.951429627 +0800
|
||||||
@@ -19,6 +19,7 @@
|
@@ -19,6 +19,7 @@ exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
BINDIR = @bindir@
|
BINDIR = @bindir@
|
||||||
LIBDIR = @libdir@
|
LIBDIR = @libdir@
|
||||||
@ -8,7 +8,7 @@
|
|||||||
MANDIR = @mandir@/man3
|
MANDIR = @mandir@/man3
|
||||||
|
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@
|
@@ -47,6 +48,7 @@ LIBS = @LIBS@
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -Wshadow -Wconversion -pedantic \
|
CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -Wshadow -Wconversion -pedantic \
|
||||||
@ -16,7 +16,7 @@
|
|||||||
@PARANOID_FU@ -Wunreachable-code -Wmissing-prototypes \
|
@PARANOID_FU@ -Wunreachable-code -Wmissing-prototypes \
|
||||||
-Waggregate-return -W -Wfloat-equal -Wsign-compare \
|
-Waggregate-return -W -Wfloat-equal -Wsign-compare \
|
||||||
-Wwrite-strings
|
-Wwrite-strings
|
||||||
@@ -66,29 +68,25 @@
|
@@ -66,29 +68,25 @@ pcrsed@EXEEXT@: pcrs.@OBJEXT@
|
||||||
$(CC) $(CFLAGS) pcrsed.c pcrs.@OBJEXT@ -o pcrsed@EXEEXT@ $(LIBS)
|
$(CC) $(CFLAGS) pcrsed.c pcrs.@OBJEXT@ -o pcrsed@EXEEXT@ $(LIBS)
|
||||||
|
|
||||||
shared: pcrs.@OBJEXT@
|
shared: pcrs.@OBJEXT@
|
||||||
@ -31,15 +31,16 @@
|
|||||||
- $(INSTALL) -m 755 libpcrs.so.$(VERSION) $(LIBDIR)
|
- $(INSTALL) -m 755 libpcrs.so.$(VERSION) $(LIBDIR)
|
||||||
- $(LN_S) -f libpcrs.so.$(VERSION) $(LIBDIR)/libpcrs.so
|
- $(LN_S) -f libpcrs.so.$(VERSION) $(LIBDIR)/libpcrs.so
|
||||||
- $(INSTALL) -m 644 libpcrs.a $(LIBDIR)
|
- $(INSTALL) -m 644 libpcrs.a $(LIBDIR)
|
||||||
+ $(INSTALL) -m 755 libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib
|
- $(INSTALL) -m 644 pcrs.3 $(MANDIR)
|
||||||
+ $(LN_S) -f libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib/libpcrs.so
|
-
|
||||||
+ $(INSTALL) -m 644 libpcrs.a $(prefix)/lib
|
|
||||||
$(INSTALL) -m 644 pcrs.3 $(MANDIR)
|
|
||||||
|
|
||||||
- if test "$(HAVE_GZIP)" = "yes"; then \
|
- if test "$(HAVE_GZIP)" = "yes"; then \
|
||||||
- gzip -f $(MANDIR)/pcrs.3; \
|
- gzip -f $(MANDIR)/pcrs.3; \
|
||||||
- fi
|
- 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" \
|
@echo -e " ***************************************************\n" \
|
||||||
- "** Libraries have been installed in $(LIBDIR). \n" \
|
- "** Libraries have been installed in $(LIBDIR). \n" \
|
||||||
+ "** Libraries have been installed in $(prefix)/lib. \n" \
|
+ "** Libraries have been installed in $(prefix)/lib. \n" \
|
||||||
@ -49,7 +50,7 @@
|
|||||||
@if test -f pcrsed@EXEEXT@; then\
|
@if test -f pcrsed@EXEEXT@; then\
|
||||||
echo -e "\nRebuilding pcrsed to use the installed shared library"; \
|
echo -e "\nRebuilding pcrsed to use the installed shared library"; \
|
||||||
- $(CC) $(CFLAGS) -L$(LIBDIR) pcrsed.c -o pcrsed@EXEEXT@ $(LIBS) -lpcrs; \
|
- $(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
|
fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user