--- files/patch-CMakeLists.txt.orig 2014-08-31 23:27:40.000000000 +0800 +++ files/patch-CMakeLists.txt 2014-08-31 23:33:25.867625864 +0800 @@ -27,3 +27,12 @@ endif() include(CPackConfig) +@@ -161,7 +161,7 @@ + if(XRANDR_FOUND) + add_executable(xbmc-xrandr xbmc-xrandr.c) + target_link_libraries(xbmc-xrandr ${CONFIG_LIBRARY_XRANDR} ${CONFIG_LIBRARY_X11} -lm) +- install(TARGETS xbmc-xrandr DESTINATION ${BINPATH}) ++ install(TARGETS xbmc-xrandr DESTINATION ${LIBPATH}) + endif() + + include(CPackConfig) --- pkg-plist.orig 2014-08-31 22:52:09.952621641 +0800 +++ pkg-plist 2014-08-31 23:18:24.217623563 +0800 @@ -1,6 +1,5 @@ bin/plexhometheater bin/plexhometheater.sh -bin/xbmc-xrandr lib/plexhometheater/system/ImageLib-%%ARCH%%-freebsd.so lib/plexhometheater/system/libcpluff-%%ARCH%%-freebsd.so lib/plexhometheater/system/players/dvdplayer/avcodec-53-%%ARCH%%-freebsd.so @@ -10,6 +9,8 @@ lib/plexhometheater/system/players/dvdplayer/postproc-52-%%ARCH%%-freebsd.so lib/plexhometheater/system/players/dvdplayer/swresample-0-%%ARCH%%-freebsd.so lib/plexhometheater/system/players/dvdplayer/swscale-2-%%ARCH%%-freebsd.so +lib/plexhometheater/xbmc-xrandr +share/applications/plexhometheatersh.desktop %%DATADIR%%/Credits.html %%DATADIR%%/addons/repository.pvr-android.xbmc.org/addon.xml %%DATADIR%%/addons/repository.pvr-android.xbmc.org/icon.png --- files/plexhometheater.sh.in.orig 2014-08-31 23:27:50.000000000 +0800 +++ files/plexhometheater.sh.in 2014-08-31 23:33:59.631624885 +0800 @@ -2,4 +2,5 @@ export XBMC_HOME=%%PREFIX%%/share/plexhometheater export XBMC_BIN_HOME=%%PREFIX%%/lib/plexhometheater +export XBMC_BIN_HOME=%%PREFIX%%/lib/plexhometheater exec %%PREFIX%%/bin/plexhometheater