diff -ur orig/skinenigmang-0.1.1/Makefile skinenigmang-0.1.1/Makefile --- orig/skinenigmang-0.1.1/Makefile 2010-03-13 16:33:20.000000000 +0100 +++ skinenigmang-0.1.1/Makefile 2010-04-07 13:38:45.000000000 +0200 @@ -16,15 +16,15 @@ # If you are using the epgsearch plugin and want to see the number of # timer conflicts in the main menu's info area. -SKINENIGMA_USE_PLUGIN_EPGSEARCH = 1 +#SKINENIGMA_USE_PLUGIN_EPGSEARCH = 1 # If you use the mailbox plugin this will include support for it. -SKINENIGMA_USE_PLUGIN_MAILBOX = 1 +#SKINENIGMA_USE_PLUGIN_MAILBOX = 1 # Include code to support the Avards plugin: # - Dynamic OSD size depending on current WSS mode. # - Display current WSS mode in channel info and replay OSDs. -SKINENIGMA_USE_PLUGIN_AVARDS = 1 +#SKINENIGMA_USE_PLUGIN_AVARDS = 1 # Disable code to show signal strength and signal-to-noise ratio # in channel info OSD. @@ -32,7 +32,7 @@ # Strip debug symbols? Set eg. to /bin/true if not #STRIP = strip -STRIP = /bin/true +STRIP = /usr/bin/true # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -191,7 +191,11 @@ ifndef SKINENIGMA_DEBUG @$(STRIP) $@ endif +ifdef FREEBSD + @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) +else @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) +endif dist: clean @-rm -rf $(TMPDIR)/$(ARCHIVE) diff -ur orig/skinenigmang-0.1.1/enigma.c skinenigmang-0.1.1/enigma.c --- orig/skinenigmang-0.1.1/enigma.c 2010-04-05 10:33:42.000000000 +0200 +++ skinenigmang-0.1.1/enigma.c 2010-04-07 13:38:07.000000000 +0200 @@ -256,6 +256,18 @@ #define ScrollbarHeight 20 #define ScrollbarWidth 16 +#if defined(__FreeBSD__) && __FreeBSD_version < 1000029 +/* XXX Implement strchrnul for FreeBSD. */ +static char * +strchrnul (const char *s, int c_in) +{ + char c = c_in; + while (*s && (*s != c)) + s++; + + return (char *) s; +} +#endif // --- cSkinEnigmaDisplayChannel --------------------------------------------