Bug 206589

Summary: multimedia/openh264 not prefix-safe
Product: Ports & Packages Reporter: Mikhail Teterin <mi>
Component: Individual Port(s)Assignee: freebsd-gecko (Nobody) <gecko>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: easy, patch-ready
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Mikhail Teterin freebsd_committer freebsd_triage 2016-01-25 01:03:48 UTC
Vendor's code needs to have PREFIX explicitly specified, otherwise /usr/local is assumed, which breaks staging on systems with a different prefix. The following patch fixes the problem:

Index: Makefile
===================================================================
--- Makefile    (revision 407188)
+++ Makefile    (working copy)
@@ -22,7 +22,7 @@
 ASFLAGS_arm64_clang=   -no-integrated-as
 MAKE_ARGS=     OS=bsd ARCH="${ARCH:S/amd64/x86_64/}" \
                CCASFLAGS='$$(CFLAGS) ${ASFLAGS}' \
-               CFLAGS_OPT="" CFLAGS_DEBUG=""
+               CFLAGS_OPT="" CFLAGS_DEBUG="" PREFIX="${PREFIX}"
 ALL_TARGET=    all
 
 OPTIONS_DEFINE=        DEBUG PLUGINS TEST
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-02-09 00:54:00 UTC
A commit references this bug:

Author: jbeich
Date: Tue Feb  9 00:53:14 UTC 2016
New revision: 408520
URL: https://svnweb.freebsd.org/changeset/ports/408520

Log:
  multimedia/openh264: partially unbreak PREFIX != LOCALBASE

  PR:		206589
  Submitted by:	mi

Changes:
  head/multimedia/openh264/Makefile
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-02-09 00:58:01 UTC
A commit references this bug:

Author: jbeich
Date: Tue Feb  9 00:57:34 UTC 2016
New revision: 408521
URL: https://svnweb.freebsd.org/changeset/ports/408521

Log:
  MFH: r408520

  multimedia/openh264: partially unbreak PREFIX != LOCALBASE

  PR:		206589
  Submitted by:	mi
  Approved by:	ports-secteam blanket

Changes:
_U  branches/2016Q1/
  branches/2016Q1/multimedia/openh264/Makefile