From 585cd852ba5151f9983569368f585df1c1a4609f Mon Sep 17 00:00:00 2001 From: John Marino Date: Thu, 17 Sep 2015 12:09:53 +0000 Subject: [PATCH] games/scummvm: set jpeg base, support DragonFly Set the prefix for new jpeg dependenncy for those compilers that need it. While here, incorporate dports configure patch to support DragonFly. Approved by: maintainer (lme) --- games/scummvm/Makefile | 1 + games/scummvm/files/patch-configure | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 games/scummvm/files/patch-configure diff --git a/games/scummvm/Makefile b/games/scummvm/Makefile index 9940d6256e46..87453cf14859 100644 --- a/games/scummvm/Makefile +++ b/games/scummvm/Makefile @@ -15,6 +15,7 @@ HAS_CONFIGURE= yes USE_SDL= sdl CONFIGURE_ARGS= --with-sdl-prefix=${LOCALBASE} \ + --with-jpeg-prefix=${LOCALBASE} \ --disable-alsa \ --with-zlib-prefix=/usr \ --disable-debug \ diff --git a/games/scummvm/files/patch-configure b/games/scummvm/files/patch-configure new file mode 100644 index 000000000000..84b9cd8ac4a2 --- /dev/null +++ b/games/scummvm/files/patch-configure @@ -0,0 +1,25 @@ +--- configure.orig 2015-09-17 05:07:32 UTC ++++ configure +@@ -2300,9 +2300,9 @@ case $_host_os in + LDFLAGS="$LDFLAGS -L$DEVKITPRO/libnds/lib" + LIBS="$LIBS -lnds9" + ;; +- freebsd*) +- LDFLAGS="$LDFLAGS -L/usr/local/lib" +- CXXFLAGS="$CXXFLAGS -I/usr/local/include" ++ dragonfly*|freebsd*) ++ LDFLAGS="$LDFLAGS -L$(prefix)/lib" ++ CXXFLAGS="$CXXFLAGS -I$(prefix)/include" + ;; + gamecube) + _optimization_level=-Os +@@ -3106,6 +3106,9 @@ case $_host_os in + android | beos* | bsd* | darwin* | freebsd* | gnu* | gph-linux | haiku* | hpux* | iphone | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | solaris* | sunos* | uclinux* | webos) + _posix=yes + ;; ++ dragonfly*) ++ _posix=yes ++ ;; + os2-emx*) + _posix=yes # FIXME: Really??? + ;;