media-libs/compface: fix configure
authorAkinori Hattori <hattya@gentoo.org>
Wed, 27 May 2020 12:37:57 +0000 (21:37 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 27 May 2020 12:37:57 +0000 (21:37 +0900)
Closes: https://bugs.gentoo.org/720850
Closes: https://bugs.gentoo.org/724730
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
media-libs/compface/files/compface-gentoo.patch

index 2cfea742c981adc8341772b01a4fd35341156bc5..d8754fd3d60bcea21e6ff784aa614073dfcab813 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -1,10 +1,10 @@
+@@ -1,15 +1,16 @@
  prefix          = @prefix@
  exec_prefix     = @exec_prefix@
  srcdir          = @srcdir@
  
  @SET_MAKE@
  
-@@ -77,10 +77,8 @@
+ RM              = rm -f
+ LN_S            = @LN_S@
++AR              = @AR@
+ RANLIB          = @RANLIB@
+ INSTALL         = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -52,7 +53,7 @@
+               $(CC) $(LDFLAGS) -o $@ uncmain.o $(LIBNAME)
+ $(LIBNAME) :  $(OBJECTS)
+-              ar rc $(LIBNAME) $(OBJECTS)
++              $(AR) rc $(LIBNAME) $(OBJECTS)
+               -$(RANLIB) $(LIBNAME)
+ lint :
+@@ -77,10 +78,8 @@
                $(INSTALL_PROGRAM) -d $(BINDIR) $(LIBDIR) $(MAN1DIR) $(MAN3DIR) $(INCLUDEDIR)
                $(INSTALL_PROGRAM) $(srcdir)/$(NAMEEXE) $(EXECUTABLE) 
                -chmod 0755 $(EXECUTABLE)
                $(INSTALL_DATA) $(srcdir)/$(NAME).1 $(MAN1DIR)/$(NAME).1
                cd $(MAN1DIR) && $(RM) ./$(UNNAME).1 && $(LN_S) $(NAME).1 $(UNNAME).1
                $(INSTALL_DATA) $(srcdir)/$(NAME).3 $(MAN3DIR)/$(NAME).3
+--- a/configure.ac
++++ b/configure.ac
+@@ -8,6 +8,7 @@
+ AC_PROG_RANLIB
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
++AC_CHECK_TOOL(AR, ar)
+ dnl Checks for libraries.