diff options
-rw-r--r-- | multimedia/acme/Makefile | 2 | ||||
-rw-r--r-- | multimedia/acme/files/patch-src_acme.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/multimedia/acme/Makefile b/multimedia/acme/Makefile index e5b7a5063..9a60f5371 100644 --- a/multimedia/acme/Makefile +++ b/multimedia/acme/Makefile @@ -33,5 +33,7 @@ CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/src/acme.c .include <bsd.port.mk> diff --git a/multimedia/acme/files/patch-src_acme.c b/multimedia/acme/files/patch-src_acme.c index 9d05cccac..3a46a7e34 100644 --- a/multimedia/acme/files/patch-src_acme.c +++ b/multimedia/acme/files/patch-src_acme.c @@ -5,11 +5,11 @@ return; - if (g_file_test ("/usr/bin/esdplay", -+ if (g_file_test ("/usr/local/bin/esdplay", ++ if (g_file_test ("%%LOCALBASE%%/bin/esdplay", (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_EXECUTABLE))) { - command = g_strdup_printf ("/usr/bin/esdplay %s", -+ command = g_strdup_printf ("/usr/local/bin/esdplay %s", ++ command = g_strdup_printf ("%%LOCALBASE%%/bin/esdplay %s", soundfile); } else if (g_file_test ("/usr/bin/play", (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_EXECUTABLE))) |