mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
c151a8243e
for static library target - Unbreak configure script against Clang's cpp(1): suppress harmless warning that was treated as an error (=> missing pcre.h) - While here, trim Makefile header, remove defunct mirrors from the MASTER_SITES, convert LIB_DEPENDS and USE_GMAKE, kill spaces at EOL of port description, define LICENSE (LGPL21) Reported by: marino Approved by: miwi, bapt (portmgr, implicit)
56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
--- Makefile.in.orig Mon Mar 11 08:56:16 2002
|
|
+++ Makefile.in Sun Nov 27 00:07:10 2005
|
|
@@ -19,6 +19,7 @@
|
|
|
|
BINDIR = @bindir@
|
|
LIBDIR = @libdir@
|
|
+INCLUDEDIR = @includedir@
|
|
MANDIR = @mandir@/man3
|
|
|
|
|
|
@@ -47,6 +48,7 @@
|
|
#############################################################################
|
|
|
|
CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -Wshadow -Wconversion -pedantic \
|
|
+ -I$(INCLUDEDIR) -L$(LIBDIR) \
|
|
@PARANOID_FU@ -Wunreachable-code -Wmissing-prototypes \
|
|
-Waggregate-return -W -Wfloat-equal -Wsign-compare \
|
|
-Wwrite-strings
|
|
@@ -66,29 +68,25 @@
|
|
$(CC) $(CFLAGS) pcrsed.c pcrs.@OBJEXT@ -o pcrsed@EXEEXT@ $(LIBS)
|
|
|
|
shared: pcrs.@OBJEXT@
|
|
- $(CC) $(CLFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION) pcrs.@OBJEXT@ $(LIBS)
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION_MAJOR) pcrs.@OBJEXT@ $(LIBS)
|
|
|
|
-static:
|
|
+static: pcrs.@OBJEXT@
|
|
$(AR) libpcrs.a pcrs.@OBJEXT@
|
|
|
|
install: all
|
|
- $(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)
|
|
|
|
- if test "$(HAVE_GZIP)" = "yes"; then \
|
|
- gzip -f $(MANDIR)/pcrs.3; \
|
|
- fi
|
|
-
|
|
@echo -e " ***************************************************\n" \
|
|
- "** Libraries have been installed in $(LIBDIR). \n" \
|
|
+ "** Libraries have been installed in $(prefix)/lib. \n" \
|
|
"** Don't forget to run ldconfig. \n" \
|
|
"***************************************************"
|
|
|
|
@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; \
|
|
fi
|
|
|
|
clean:
|